New module 'wcscasecmp'.
[pspp] / ChangeLog
1 2011-02-06  Bruno Haible  <bruno@clisp.org>
2
3         New module 'wcscasecmp'.
4         * modules/wcscasecmp: New file.
5         * lib/wchar.in.h (wcscasecmp): New declaration.
6         * lib/wcscasecmp.c: New file.
7         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8         * m4/wcscasecmp.m4: New file.
9         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12         HAVE_WCSCASECMP.
13         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15
16 2011-02-05  Bruno Haible  <bruno@clisp.org>
17
18         New module 'wcsncmp'.
19         * modules/wcsncmp: New file.
20         * lib/wchar.in.h (wcsncmp): New declaration.
21         * lib/wcsncmp.c: New file.
22         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23         * m4/wcsncmp.m4: New file.
24         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
26         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
27         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
28         * doc/posix-functions/wcsncmp.texi: Mention the new module.
29
30 2011-02-05  Bruno Haible  <bruno@clisp.org>
31
32         New module 'wcscmp'.
33         * modules/wcscmp: New file.
34         * lib/wchar.in.h (wcscmp): New declaration.
35         * lib/wcscmp.c: New file.
36         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
37         * m4/wcscmp.m4: New file.
38         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
39         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
41         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
42         * doc/posix-functions/wcscmp.texi: Mention the new module.
43
44 2011-02-05  Bruno Haible  <bruno@clisp.org>
45
46         New module 'wcsncat'.
47         * modules/wcsncat: New file.
48         * lib/wchar.in.h (wcsncat): New declaration.
49         * lib/wcsncat.c: New file.
50         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
51         * m4/wcsncat.m4: New file.
52         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
53         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
54         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56         * doc/posix-functions/wcsncat.texi: Mention the new module.
57
58 2011-02-05  Bruno Haible  <bruno@clisp.org>
59
60         New module 'wcscat'.
61         * modules/wcscat: New file.
62         * lib/wchar.in.h (wcscat): New declaration.
63         * lib/wcscat.c: New file.
64         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
65         * m4/wcscat.m4: New file.
66         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
67         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
68         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
69         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
70         * doc/posix-functions/wcscat.texi: Mention the new module.
71
72 2011-02-05  Bruno Haible  <bruno@clisp.org>
73
74         New module 'wcpncpy'.
75         * modules/wcpncpy: New file.
76         * lib/wchar.in.h (wcpncpy): New declaration.
77         * lib/wcpncpy.c: New file.
78         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
79         * m4/wcpncpy.m4: New file.
80         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
81         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
82         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
83         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
84         * doc/posix-functions/wcpncpy.texi: Mention the new module.
85
86 2011-02-05  Bruno Haible  <bruno@clisp.org>
87
88         New module 'wcsncpy'.
89         * modules/wcsncpy: New file.
90         * lib/wchar.in.h (wcsncpy): New declaration.
91         * lib/wcsncpy.c: New file.
92         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
93         * m4/wcsncpy.m4: New file.
94         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
95         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
96         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
97         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
98         * doc/posix-functions/wcsncpy.texi: Mention the new module.
99
100 2011-02-05  Bruno Haible  <bruno@clisp.org>
101
102         New module 'wcpcpy'.
103         * modules/wcpcpy: New file.
104         * lib/wchar.in.h (wcpcpy): New declaration.
105         * lib/wcpcpy.c: New file.
106         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
107         * m4/wcpcpy.m4: New file.
108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
110         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
111         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
112         * doc/posix-functions/wcpcpy.texi: Mention the new module.
113
114 2011-02-05  Bruno Haible  <bruno@clisp.org>
115
116         New module 'wcscpy'.
117         * modules/wcscpy: New file.
118         * lib/wchar.in.h (wcscpy): New declaration.
119         * lib/wcscpy.c: New file.
120         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
121         * m4/wcscpy.m4: New file.
122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
125         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
126         * doc/posix-functions/wcscpy.texi: Mention the new module.
127
128 2011-02-05  Bruno Haible  <bruno@clisp.org>
129
130         New module 'wcsnlen'.
131         * modules/wcsnlen: New file.
132         * lib/wchar.in.h (wcsnlen): New declaration.
133         * lib/wcsnlen.c: New file.
134         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
135         * m4/wcsnlen.m4: New file.
136         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
137         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
138         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
139         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
140         * doc/posix-functions/wcsnlen.texi: Mention the new module.
141
142 2011-02-05  Bruno Haible  <bruno@clisp.org>
143
144         New module 'wcslen'.
145         * modules/wcslen: New file.
146         * lib/wchar.in.h (wcslen): New declaration.
147         * lib/wcslen.c: New file.
148         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
149         * m4/wcslen.m4: New file.
150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
152         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
153         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
154         * doc/posix-functions/wcslen.texi: Mention the new module.
155
156 2011-02-05  Bruno Haible  <bruno@clisp.org>
157
158         New module 'wmemset'.
159         * modules/wmemset: New file.
160         * lib/wchar.in.h (wmemset): New declaration.
161         * lib/wmemset.c: New file.
162         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
163         * m4/wmemset.m4: New file.
164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
166         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
167         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
168         * doc/posix-functions/wmemset.texi: Mention the new module.
169
170 2011-02-05  Bruno Haible  <bruno@clisp.org>
171
172         New module 'wmemmove'.
173         * modules/wmemmove: New file.
174         * lib/wchar.in.h (wmemmove): New declaration.
175         * lib/wmemmove.c: New file.
176         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
177         * m4/wmemmove.m4: New file.
178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
180         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
181         HAVE_WMEMMOVE.
182         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
183         * doc/posix-functions/wmemmove.texi: Mention the new module.
184
185 2011-02-05  Bruno Haible  <bruno@clisp.org>
186
187         New module 'wmemcpy'.
188         * modules/wmemcpy: New file.
189         * lib/wchar.in.h (wmemcpy): New declaration.
190         * lib/wmemcpy.c: New file.
191         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
192         * m4/wmemcpy.m4: New file.
193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
195         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
196         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
197         * doc/posix-functions/wmemcpy.texi: Mention the new module.
198
199 2011-02-05  Bruno Haible  <bruno@clisp.org>
200
201         New module 'wmemcmp'.
202         * modules/wmemcmp: New file.
203         * lib/wchar.in.h (wmemcmp): New declaration.
204         * lib/wmemcmp.c: New file.
205         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
206         * m4/wmemcmp.m4: New file.
207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
209         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
210         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
211         * doc/posix-functions/wmemcmp.texi: Mention the new module.
212
213 2011-02-07  Jim Meyering  <meyering@redhat.com>
214
215         di-set, ino-map: new modules, from coreutils
216         * lib/di-set.c: New file.
217         * lib/di-set.h: Likewise.
218         * lib/ino-map.c: Likewise.
219         * lib/ino-map.h: Likewise.
220         * modules/di-set: Likewise.
221         * modules/di-set-tests: Likewise.
222         * modules/ino-map: Likewise.
223         * modules/ino-map-tests: Likewise.
224         * tests/test-di-set.c: Likewise.
225         * tests/test-ino-map.c: Likewise.
226
227 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
228
229         getloadavg: merge minor changes from Emacs
230
231         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
232         (getloadavg): Use memset, not bzero.
233
234         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
235         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
236         clash (bug#86).
237
238 2010-11-14  Bruno Haible  <bruno@clisp.org>
239
240         Allow multiple gnulib generated replacements to coexist.
241         * lib/getopt.in.h (struct option): Avoid identical redefinition.
242         * lib/inttypes.in.h (imaxdiv_t): Likewise.
243         * lib/langinfo.in.h (nl_item): Likewise.
244         * lib/math.in.h (_NaN, NAN): Likewise.
245         * lib/netdb.in.h (struct addrinfo): Likewise.
246         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
247         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
248         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
249         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
250         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
251         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
252         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
253         pthread_mutexattr_init, pthread_mutexattr_settype,
254         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
255         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
256         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
257         pthread_spin_trylock, pthread_spin_unlock): Likewise.
258         * lib/sched.in.h (struct sched_param): Likewise.
259         * lib/se-selinux.in.h (security_class_t, security_context_t,
260         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
261         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
262         lsetfilecon, fsetfilecon, security_check_context,
263         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
264         Likewise.
265         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
266         Likewise.
267         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
268         _gl_function_taking_int_returning_void_t, union sigval,
269         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
270         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
271         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
272         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
273         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
274         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
275         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
276         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
277         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
278         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
279         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
280         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
281         socklen_t, rpl_fd_isset): Likewise.
282         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
283         * lib/sys_time.in.h (struct timeval): Likewise.
284         * lib/sys_times.in.h (struct tms): Likewise.
285         * lib/sys_utsname.in.h (struct utsname):
286         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
287         * lib/unistd.in.h (getpagesize): Likewise.
288         * lib/wchar.in.h (mbstate_t): Likewise.
289         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
290         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
291         towlower, towupper): Likewise.
292         Reported by Sam Steingold <sds@gnu.org>.
293
294 2011-02-05  Eric Blake  <eblake@redhat.com>
295
296         unsetenv: work around Haiku issues
297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
298         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
299
300 2010-12-30  Bruce Korb  <bkorb@gnu.org>
301
302         libposix: avoid calling error() within libposix
303         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
304         is defined.
305
306 2011-02-05  Eric Blake  <eblake@redhat.com>
307
308         strerror_r-posix: port to cygwin
309         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
310         implementation.
311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
312         * tests/test-strerror_r.c (main): Fix test.
313         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
314         issue.
315
316 2011-02-05  Bruno Haible  <bruno@clisp.org>
317
318         New module 'wmemchr'.
319         * modules/wmemchr: New file.
320         * lib/wchar.in.h (wmemchr): New declaration.
321         * lib/wmemchr.c: New file.
322         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
323         * m4/wmemchr.m4: New file.
324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
326         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
327         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
328         * doc/posix-functions/wmemchr.texi: Mention the new module.
329
330 2011-02-04  Eric Blake  <eblake@redhat.com>
331
332         fdopendir: detect FreeBSD bug
333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
334         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
335
336 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
337
338         stdbool: do not define HAVE_STDBOOL_H
339         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
340         AC_HEADER_STDBOOL.  All uses changed.  Do not define
341         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
342         imported from the latest Autoconf git.  It was motivated by Emacs,
343         which uses gnulib but does not need HAVE_STDBOOL_H.
344
345 2011-02-04  Bruno Haible  <bruno@clisp.org>
346
347         wcsnrtombs: Prepare for new module wwcsnrtombs.
348         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
349         * lib/wcsnrtombs.c: Include it.
350         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
351
352         wcsrtombs: Prepare for new module wwcsrtombs.
353         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
354         * lib/wcsrtombs.c: Include it.
355         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
356
357         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
358         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
359         * lib/mbsnrtowcs.c: Include it.
360         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
361
362         mbsrtowcs: Prepare for new module mbsrtowwcs.
363         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
364         * lib/mbsrtowcs.c: Include it.
365         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
366
367 2011-02-04  Bruno Haible  <bruno@clisp.org>
368
369         vasnprintf: Reduce use of malloc for small format strings.
370         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
371         (arguments): Add room for the first 7 arguments.
372         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
373         (char_directives, u8_directives, u16_directives, u32_directives): Add
374         room for the first 7 directives.
375         * lib/printf-parse.c: Include <string.h>.
376         (PRINTF_PARSE): Change memory handling code so that it uses the first
377         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
378         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
379         Reported by Pádraig Brady <P@draigbrady.com>.
380
381 2011-01-31  Eric Blake  <eblake@redhat.com>
382
383         dup2: work around Haiku bug
384         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
385         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
386         * doc/posix-functions/dup2.texi (dup2): Document the bug.
387         * tests/test-dup2.c (main): Enhance test.
388
389 2011-01-31  Simon Josefsson  <simon@josefsson.org>
390
391         doc: off_t is not available in eglibc 2.11.2 stdio.h.
392         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
393         declared by eglibc 2.11.2.
394         * lib/stdio.in.h: Likewise.
395
396 2011-01-31  Eric Blake  <eblake@redhat.com>
397
398         ignore-value: add missing test dependency
399         * tests/test-ignore-value.c: Revert previous change; stdio.h
400         provides off_t.
401         * modules/ignore-value-tests (Depends-on): Add missing dependency.
402
403 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
404
405         mktime: clarify long_int width checking
406         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
407         the top level, to make it clearer that the assumption about
408         long_int width is being checked.  See
409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
410
411 2011-01-30  Simon Josefsson  <simon@josefsson.org>
412
413         ignore-value: Fix self-test.
414         * tests/test-ignore-value.c: Include sys/types.h for off_t.
415
416 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
417
418         TYPE_MAXIMUM: avoid theoretically undefined behavior
419         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
420         negative number, which the C Standard says has undefined behavior.
421         In practice this is not a problem, but might as well do it by the book.
422         Reported by Rich Felker and Eric Blake; see
423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
424         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
425         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
427         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
428         * m4/stdint.m4 (gl_STDINT_H): Likewise.
429         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
430
431         mktime: #undef mktime before #defining it
432         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
433
434         mktime: systematically normalize tm_isdst comparisons
435         * lib/mktime.c (isdst_differ): New function.
436         (__mktime_internal): Use it systematically for all isdst comparisons.
437         This completes the fix for libc BZ #6723, and removes the need for
438         normalizing tm_isdst.  See
439         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
440         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
441
442         mktime: fix some integer overflow issues and sidestep the rest
443
444         This was prompted by a bug report by Benjamin Lindner for MinGW
445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
446         His bug is due to signed integer overflow (0 - INT_MIN), and I
447         I scanned through mktime.c looking for other integer overflow
448         problems, fixing all the bugs I found.
449
450         Although the C Standard says the resulting code is still not safe
451         in the presence of integer overflow, in practice it should be good
452         enough for all real-world two's-complement implementations, except
453         for debugging environments that deliberately trap on integer
454         overflow (e.g., gcc -ftrapv).
455
456         * lib/mktime.c (WRAPV): New macro.
457         (SHR): Also check that long_int and time_t shift right in the
458         usual way, before using the fast-but-unportable method.
459         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
460         used.  The code already assumed two's complement, so there's
461         no need to test for alternatives.  All uses removed.
462         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
463         the C standard.  Problem reported by Rich Felker in
464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
465         (twos_complement_arithmetic): Also check long_int and time_t.
466         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
467         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
468         (__mktime_internal): Avoid integer overflow with unary subtraction
469         in two instances where -1 - X is an adequate replacement for -X,
470         since the calculations are approximate.
471
472 2011-01-29  Eric Blake  <eblake@redhat.com>
473
474         mktime: avoid infinite loop
475         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
476         type; behavior is still undefined but portable to all known targets.
477         Reported by Rich Felker.
478
479 2011-01-29  Simon Josefsson  <simon@josefsson.org>
480
481         rename, unlink, same-inode: Relicense.
482         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
483         * modules/unlink (License): Likewise.
484         * modules/same-inode (License): Likewise.
485
486 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
487
488         mktime: avoid problems on NetBSD 5 / i386
489         * lib/mktime.c (long_int): New type.  This works around a problem
490         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
491         but time_t is 64 bits, and where I expect the existing code is
492         wrong in some cases.
493         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
494         (ydhms_diff): Bring back the compile-time check for wide-enough
495         year and yday.
496
497         mktime: fix misspelling in comment
498         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
499         This merges all recent glibc changes of importance.
500
501 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
502
503         move-if-change: cope with concurrent mv of identical file.
504         * build-aux/move-if-change (CMPPROG): Accept environment
505         variable as an override for `cmp'.
506         (usage): Document CMPPROG.
507         Adjust comparison to drop stdout.  Cope with failure of mv if
508         the target file exists and is identical to the source, for
509         parallel builds.
510         Report from H.J. Lu against binutils in PR binutils/12283.
511
512 2011-01-28  Bruce Korb  <bkorb@gnu.org>
513
514         * users.txt: Mention sharutils.
515
516 2011-01-28  Simon Josefsson  <simon@josefsson.org>
517
518         * users.txt: Mention OATH Toolkit.
519
520 2011-01-27  Bruno Haible  <bruno@clisp.org>
521
522         Prepare for supporting FreeBSD 10.
523         * build-aux/config.libpath: Remove handling of freebsd1*.
524
525 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
526
527         Prepare for supporting FreeBSD 10.
528         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
529         match FreeBSD 10.0.
530
531 2011-01-27  Bruno Haible  <bruno@clisp.org>
532
533         vma-iter, get-rusage-as: Add OpenBSD support.
534         * modules/vma-iter (configure.ac): Test for mquery.
535         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
536         * lib/vma-iter.c: Include <sys/mman.h>.
537         (vma_iterate): Add an implementation based on mquery().
538         * lib/resource-ext.h (get_rusage_as): Update comments.
539         * lib/get-rusage-as.c: Likewise.
540         * lib/get-rusage-data.c: Likewise.
541
542 2011-01-26  Karl Berry  <karl@gnu.org>
543
544         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
545         variables to make it easier to override the makeinfo program used.
546
547 2011-01-26  Eric Blake  <eblake@redhat.com>
548
549         fcntl: work around Haiku F_DUPFD bugs
550         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
551         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
552         cloexec bit on duplication.
553         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
554
555 2011-01-26  Bruno Haible  <bruno@clisp.org>
556
557         Enable memory leak tests on AIX.
558         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
559         * tests/test-fprintf-posix3.c (main): Likewise.
560
561 2011-01-26  Bruno Haible  <bruno@clisp.org>
562
563         Tests for module 'get-rusage-data'.
564         * modules/get-rusage-data-tests: New file.
565         * tests/test-get-rusage-data.c: New file.
566
567         New module 'get-rusage-data'.
568         * lib/resource-ext.h (get_rusage_data): New declaration.
569         * lib/get-rusage-data.c: New file.
570         * modules/get-rusage-data: New file.
571
572 2011-01-25  Bruno Haible  <bruno@clisp.org>
573
574         get-rusage-as: Allow for easier testing.
575         * lib/resource-ext.h (get_rusage_as): Add comment.
576         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
577         (main): New function for interactive testing.
578
579 2011-01-25  Bruno Haible  <bruno@clisp.org>
580
581         vma-iter: Treat Haiku like BeOS.
582         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
583         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
584
585 2011-01-25  Eric Blake  <eblake@redhat.com>
586
587         c-stack: fix regression on cygwin when libsigsegv is present
588         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
589
590 2011-01-24  Bruno Haible  <bruno@clisp.org>
591
592         vma-iter: Avoid empty intervals.
593         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
594         on an empty interval.
595
596 2011-01-24  Jim Meyering  <meyering@redhat.com>
597
598         u64: remove unnecessary #include
599         * lib/u64.h: Don't include <stddef.h>.  It was not used.
600
601 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
602
603         Allow the user to avoid the GNULIB_TEST_* macros.
604         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
605
606 2011-01-23  Bruno Haible  <bruno@clisp.org>
607
608         New module 'vma-iter'.
609         * lib/vma-iter.h: New file.
610         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
611         * modules/vma-iter: New file.
612         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
613         for get_rusage_as_via_iterator.
614         (vma_iterate_callback): New function.
615         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
616         * modules/get-rusage-as (Depends-on): Add vma-iter.
617
618 2011-01-23  Bruno Haible  <bruno@clisp.org>
619
620         uninorm: Tweak includes.
621         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
622         Reported by Jim Meyering.
623
624 2011-01-23  Bruno Haible  <bruno@clisp.org>
625
626         get-rusage-as: Improve on NetBSD.
627         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
628         /proc, like on FreeBSD.
629
630 2011-01-23  Jim Meyering  <meyering@redhat.com>
631
632         xreadlink.h: remove unnecessary #include
633         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
634
635         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
636         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
637
638 2011-01-23  Bruno Haible  <bruno@clisp.org>
639
640         get-rusage-as: Fix bug.
641         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
642         original limit when aborting the first loop.
643
644 2011-01-23  Bruno Haible  <bruno@clisp.org>
645
646         wctype: Ensure valid C syntax.
647         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
648         unconditionally, instead of gl_NEXT_HEADERS conditionally.
649
650 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
651
652         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
654         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
655         as they are needed only for configure's test case.
656         This removes two unnecessary symbols from config.h.
657
658         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
659         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
661         AC_CHECK_HEADERS_ONCE on a header that we also invoke
662         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
664         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
665         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
666         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
667         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
668         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
669         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
670         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
672         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
673         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
674         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
675         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
676
677 2011-01-21  Eric Blake  <eblake@redhat.com>
678
679         maintainer-makefile: work with older git for submodule check
680         * top/maint.mk (public-submodule-commit): Rewrite to avoid
681         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
682         Reported by Matthias Bolte.
683
684         bootstrap: minor portability fixes
685         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
686         (usage): Omit leading capital and trailing . on help phrases, per
687         GNU Coding Standards.
688         (check_versions, top level): Prefix messages with script name.
689
690 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
691
692         bootstrap: support --no-git option
693         * build-aux/bootstrap: Add --no-git option, to be used when
694         --gnulib-srcdir points to the exact desired checkout.
695
696 2011-01-21  Eric Blake  <eblake@redhat.com>
697
698         strerror_r-posix: work with glibc 2.13
699         * lib/strerror_r.c (strerror_r): Fix return type.
700
701 2011-01-21  Pádraig Brady  <P@draigBrady.com>
702             Bruno Haible  <bruno@clisp.org>
703
704         uN_strstr: New unit tests.
705         * modules/unistr/u8-strstr-tests: New file.
706         * modules/unistr/u16-strstr-tests: New file.
707         * modules/unistr/u32-strstr-tests: New file.
708         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
709         * tests/unistr/test-u8-strstr.c: New file.
710         * tests/unistr/test-u16-strstr.c: New file.
711         * tests/unistr/test-u32-strstr.c: New file.
712
713 2011-01-21  Pádraig Brady  <P@draigBrady.com>
714             Bruno Haible  <bruno@clisp.org>
715
716         Make uN_strstr functions O(n) worst-case.
717         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
718         16-bit and 32-bit unit cases, use the unibyte algorithm from
719         lib/mbsstr.c.
720         * lib/unistr/u8-strstr.c: Include <string.h>.
721         (UNIT_IS_UINT8_T): New macro.
722         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
723         (U_STRLEN, U_STRNLEN): New macros.
724         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
725         (U_STRLEN, U_STRNLEN): New macros.
726         * modules/unistr/u8-strstr (Depends-on): Add strstr.
727         (configure.ac): Update required libunistring version.
728         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
729         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
730         malloca.
731         (configure.ac): Update required libunistring version.
732         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
733         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
734         malloca.
735         (configure.ac): Update required libunistring version.
736
737 2011-01-21  Pádraig Brady  <P@draigBrady.com>
738             Bruno Haible  <bruno@clisp.org>
739
740         Prepare for faster uN_strstr functions.
741         * lib/str-kmp.h: Support definable UNITs.
742         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
743         needle_len argument.
744         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
745         * lib/mbscasestr.c (mbscasestr): Likewise.
746
747 2011-01-21  Pádraig Brady <P@draigBrady.com>
748
749         malloca-tests: make faster by unsetting MALLOC_PERTURB_
750         * tests/test-malloca.c (main): Unset the environment variable
751         to greatly speed up the test.
752         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
753         * modules/malloca-tests: Depend on unsetenv.
754
755 2011-01-21  Pádraig Brady <P@draigBrady.com>
756
757         ignore-value: remove stdint dependency
758         * lib/ignore-value.h: Remove <stdint.h>
759         * modules/ignore-value: Remove stdint dependency.
760
761 2011-01-21  Jim Meyering  <meyering@redhat.com>
762
763         maint.mk: adjust variable name to be consistent with other gl_ vars
764         * top/maint.mk (gl_public_submodule_commit): Rename the variable
765         to be lower case.
766
767 2011-01-20  Jim Meyering  <meyering@redhat.com>
768
769         maint.mk: make "check" depend on public-submodule-commit by default
770         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
771
772 2011-01-20  Bruno Haible  <bruno@clisp.org>
773
774         mbfile, mbiter: Complete change from 2008-12-21.
775         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
776         * m4/mbiter.m4 (gl_MBITER): Likewise.
777
778 2011-01-20  Jim Meyering  <meyering@redhat.com>
779
780         init.sh: insert space between each function name and "()"
781         * tests/init.sh: Make it a little easier to see that a function's
782         name is "warn_", and not "warn" when looking at the first part of
783         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
784
785 2011-01-20  Jim Meyering  <meyering@redhat.com>
786
787         mountlist: clean up code formatting
788         * lib/mountlist.c (read_file_system_list): Split a long line,
789         correct bracing style, use NULL in place of "(struct statfs *)0",
790         don't parenthesize return value, add spaces around "=" and after
791         ";-in-for-stmt".
792
793 2011-01-14  Markus Duft <mduft@gentoo.org>
794
795         mountlist: add support for Interix
796         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
797         Apply statvfs to all entries of /dev/fs.
798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
799         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
800
801 2011-01-20  Jim Meyering  <meyering@redhat.com>
802
803         maint.mk: improve the public-submodule-commit rule
804         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
805         to suppress printing of its commands... unless V=1.
806         Add git submodule's --quiet option to suppress printing of e.g.,
807         "Entering gnulib" output.
808         "cd" into $(srcdir) before running git submodule.
809
810 2011-01-20  Bruno Haible  <bruno@clisp.org>
811
812         include_next: Fix bug introduced on 2011-01-18.
813         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
814         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
815         ac_cv_header_... variable if the second argument is not 'check'.
816         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
817         gl_NEXT_HEADERS_INTERNAL.
818
819 2011-01-20  Bruno Haible  <bruno@clisp.org>
820
821         Allow the user to avoid the GNULIB_TEST_* macros.
822         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
823         Suggested by Paul Eggert.
824
825 2011-01-14  Jim Meyering  <meyering@redhat.com>
826
827         bootstrap: avoid failure when there is no .gitmodules file
828         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
829         has been assigned to, even when its value is the empty string.
830         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
831         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
832         Reported by John W. Eaton <jwe@gnu.org>.
833
834 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
835
836         assume <ctype.h>, ..., <time.h> exist
837         For years gnulib has been assuming the existence of the headers
838         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
839         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
840         them, since they don't appear to be needed.
841         * README (Portability guidelines): Document this.
842         * lib/flock.c: Assume <fcntl.h> exists.
843         * lib/regex_internal.h: Assume <locale.h> exists.
844         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
846         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
847         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
848         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
849         * m4/regex.m4 (gl_REGEX): Likewise.
850         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
851         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
852         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
853         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
854         * tests/test-argp.c: Likewise.
855         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
856
857         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
858         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
859         AA_APPLE_UNIVERSAL_BUILD.  See
860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
861         * NEWS: Document this.
862
863 2011-01-19  Eric Blake  <eblake@redhat.com>
864
865         c-stack: assume stack overflow if SA_SIGINFO unsupported
866         * lib/c-stack.c (SIGACTION_WORKS): Rename...
867         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
868         sigaction will work.
869         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
870         behavior match Linux.
871         * tests/test-c-stack.c (main): Prefer NULL for pointers.
872
873         stdbool-tests: accomodate Haiku
874         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
875
876         binary-io: fix O_TEXT on Haiku
877         * modules/binary-io (Depends-on): Add fcntl-h.
878         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
879         than blindly undefining O_TEXT.
880         Reported by Scott McCreary.
881
882 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
883
884         include_next: do not check for standard headers like stddef.h
885
886         I found this problem when modifying Emacs to use gnulib.
887         I noticed that it added HAVE_STDDEF_H to config.h, even though
888         gnulib always assumes <stddef.h> exists as per README and this
889         symbol is unnecessary.
890         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
891         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
892         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
893         faster for headers like stddef.h that are known to exist.
894         (gl_CHECK_NEXT_HEADERS): Use it.
895         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
896         rather than gl_CHECK_NEXT_HEADERS.
897         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
898         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
899
900 2011-01-18  Eric Blake  <eblake@redhat.com>
901
902         ansi-c++-opt: skip C++ dependency style if C++ is unused
903         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
904         tests when we know C++ compilation is not desired.
905         Reported by Scott McCreary.
906
907 2011-01-18  Bruno Haible  <bruno@clisp.org>
908
909         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
910         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
911         (main): Perform test also when getrlimit and setrlimit don't exist or
912         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
913         limiting the address space size using setrlimit, compare the address
914         space size before and after the the test.
915         * tests/test-dprintf-posix2.c: Likewise.
916         * tests/test-fprintf-posix3.sh: Update skip messages.
917         * tests/test-dprintf-posix2.sh: Likewise.
918         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
919         * modules/dprintf-posix-tests (Depends-on): Likewise.
920         Reported by Bruce Korb <bkorb@gnu.org> and
921         Gary V. Vaughan <gary@gnu.org>.
922
923 2011-01-18  Bruno Haible  <bruno@clisp.org>
924
925         get-rusage-as: Improvement for Cygwin.
926         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
927         areas that are merely reserved.
928
929 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
930
931         strftime: remove dependencies on multibyte modules
932
933         strftime depended on mbrlen, mbsinit, and wchar, but these modules
934         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
935         only if __osf__ is defined, and I suspect OSF doesn't need these
936         other modules.  If my guess is wrong, we'll need to come up with a
937         variant of strftime that doesn't need the multibyte modules.
938
939         I discovered this problem when attempting modify Emacs to use the
940         strftime module.  With the previous gnulib, this caused Emacs to
941         need 31 new files, ranging from lib/config.charset to
942         m4/wint_t.m4.  This was overkill and I expect would be offputting
943         to the Emacs maintainers.  After this change, only 6 new files are
944         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
945         stdbool.m4, and tm_gmtoff.m4.
946
947         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
948         Suggested by Bruno Haible in
949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
950         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
951         and do not check for wchar.h.
952         * modules/strftime (Files): Remove m4/mbstate_t.m4.
953         (Depends-on): Remove mbrlen, mbsinit, wchar.
954
955 2011-01-18  Bruno Haible  <bruno@clisp.org>
956
957         Tests for module 'get-rusage-as'.
958         * modules/get-rusage-as-tests: New file.
959         * tests/test-get-rusage-as.c: New file.
960
961         New module 'get-rusage-as'.
962         * modules/get-rusage-as: New file.
963         * lib/resource-ext.h: New file.
964         * lib/get-rusage-as.c: New file.
965
966 2011-01-17  Eric Blake  <eblake@redhat.com>
967
968         sigaction: relax license from LGPLv3+ to LGPLv2+
969         * modules/sigaction (License): Relax to LGPLv2+.
970
971 2011-01-14  Bruno Haible  <bruno@clisp.org>
972
973         filemode: Make function declarations usable in C++ mode.
974         * lib/filemode.h: Enclose function declarations in extern "C" block.
975         Reported by John W. Eaton <jwe@gnu.org>.
976
977 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
978
979         save-cwd: no longer include "xgetcwd.h"
980         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
981         This avoids a compilation failure in projects that use save-cwd
982         without also using the xgetcwd module.
983
984 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
985
986         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
987         This is so that a program like Emacs, which needs only dtoastr,
988         does not have to bother with distributing and compiling ftoastr
989         and ldtoastr.
990         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
991         * modules/dtoastr, modules/ldtoastr: New files.
992         * modules/ftoastr: Now works just for 'float'.
993         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
994         (Makefile.am): Remove ftoastr.h (not needed and no effect),
995         dtoastr.c, ldtoastr.c.
996
997 2011-01-11  Jim Meyering  <meyering@redhat.com>
998
999         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1000         There is no need to work around the lack of the fchdir function,
1001         since gnulib can now provide a replacement when required.
1002         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1003         * modules/save-cwd (Depends-on): Add fchdir.
1004
1005 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         openat, save-cwd: avoid xmalloc
1008
1009         This removes a direct (but undocumented) dependency of openat on
1010         xalloc, along with an indirect dependency via save-cwd.  It also
1011         removes a dependency of save-cwd on xgetcwd, and thereby
1012         indirectly on xalloc.  This change causes the openat substitute
1013         to fall back on save_cwd when memory is tight, and for save_cwd to
1014         fail instead of dying when memory is tight, but that's good enough.
1015
1016         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1017         xalloc.h (for xmalloc).
1018         (openat_proc_name): Use malloc, not xmalloc.
1019         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1020         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1021
1022         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1023         This avoids heap allocation for file names whose lengths are in
1024         the range 512..1023, with the upper bound increasing to at most
1025         4031 depending on the platform's PATH_MAX.  (We do not want
1026         pathmax.h here as it might supply a non-constant PATH_MAX.)
1027         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1028         Perhaps they should be moved to malloca.h?
1029         (OPENAT_BUFFER_SIZE): Use them.
1030
1031 2011-01-10  Bruno Haible  <bruno@clisp.org>
1032
1033         doc: Update users.txt.
1034         * users.txt: Add recutils.
1035
1036 2011-01-09  Karl Berry  <karl@gnu.org>
1037
1038         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1039
1040         * doc/configmake.texi: New file.
1041         * doc/gnulib.texi: Include it.
1042         * modules/configmake: Move documentation from here.
1043
1044 2011-01-09  Bruno Haible  <bruno@clisp.org>
1045
1046         Update to Unicode 6.0.0.
1047         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1048         (get_lbp): Update for Unicode 6.0.0.
1049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1050         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1051         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1052         U+11001, U+11038..U+11046. Remove U+06DE.
1053         (uc_width): Fix bounds of planes.
1054         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1055         lib/uniwidth/width.c.
1056         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1057         trailing whitespace removed.
1058         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1059         without comments, but with the original copyright notice.
1060         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1061         * lib/unicase/ignorable.h: Likewise.
1062         * lib/unicase/tocasefold.h: Likewise.
1063         * lib/unicase/tolower.h: Likewise.
1064         * lib/unicase/totitle.h: Likewise.
1065         * lib/unicase/toupper.h: Likewise.
1066         * lib/unictype/bidi_of.h: Likewise.
1067         * lib/unictype/blocks.h: Likewise.
1068         * lib/unictype/categ_C.h: Likewise.
1069         * lib/unictype/categ_Cn.h: Likewise.
1070         * lib/unictype/categ_L.h: Likewise.
1071         * lib/unictype/categ_Ll.h: Likewise.
1072         * lib/unictype/categ_Lm.h: Likewise.
1073         * lib/unictype/categ_Lo.h: Likewise.
1074         * lib/unictype/categ_Lu.h: Likewise.
1075         * lib/unictype/categ_M.h: Likewise.
1076         * lib/unictype/categ_Mc.h: Likewise.
1077         * lib/unictype/categ_Me.h: Likewise.
1078         * lib/unictype/categ_Mn.h: Likewise.
1079         * lib/unictype/categ_N.h: Likewise.
1080         * lib/unictype/categ_Nd.h: Likewise.
1081         * lib/unictype/categ_No.h: Likewise.
1082         * lib/unictype/categ_P.h: Likewise.
1083         * lib/unictype/categ_Po.h: Likewise.
1084         * lib/unictype/categ_S.h: Likewise.
1085         * lib/unictype/categ_Sc.h: Likewise.
1086         * lib/unictype/categ_Sk.h: Likewise.
1087         * lib/unictype/categ_Sm.h: Likewise.
1088         * lib/unictype/categ_So.h: Likewise.
1089         * lib/unictype/categ_of.h: Likewise.
1090         * lib/unictype/combining.h: Likewise.
1091         * lib/unictype/ctype_alnum.h: Likewise.
1092         * lib/unictype/ctype_alpha.h: Likewise.
1093         * lib/unictype/ctype_graph.h: Likewise.
1094         * lib/unictype/ctype_lower.h: Likewise.
1095         * lib/unictype/ctype_print.h: Likewise.
1096         * lib/unictype/ctype_punct.h: Likewise.
1097         * lib/unictype/ctype_upper.h: Likewise.
1098         * lib/unictype/decdigit.h: Likewise.
1099         * lib/unictype/digit.h: Likewise.
1100         * lib/unictype/numeric.h: Likewise.
1101         * lib/unictype/pr_alphabetic.h: Likewise.
1102         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1103         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1104         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1105         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1106         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1107         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1108         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1109         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1110         * lib/unictype/pr_case_ignorable.h: Likewise.
1111         * lib/unictype/pr_cased.h: Likewise.
1112         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1113         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1114         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1115         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1116         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1117         * lib/unictype/pr_combining.h: Likewise.
1118         * lib/unictype/pr_composite.h: Likewise.
1119         * lib/unictype/pr_currency_symbol.h: Likewise.
1120         * lib/unictype/pr_decimal_digit.h: Likewise.
1121         * lib/unictype/pr_deprecated.h: Likewise.
1122         * lib/unictype/pr_format_control.h: Likewise.
1123         * lib/unictype/pr_grapheme_base.h: Likewise.
1124         * lib/unictype/pr_grapheme_extend.h: Likewise.
1125         * lib/unictype/pr_grapheme_link.h: Likewise.
1126         * lib/unictype/pr_id_continue.h: Likewise.
1127         * lib/unictype/pr_id_start.h: Likewise.
1128         * lib/unictype/pr_ideographic.h: Likewise.
1129         * lib/unictype/pr_lowercase.h: Likewise.
1130         * lib/unictype/pr_math.h: Likewise.
1131         * lib/unictype/pr_numeric.h: Likewise.
1132         * lib/unictype/pr_other_alphabetic.h: Likewise.
1133         * lib/unictype/pr_other_id_continue.h: Likewise.
1134         * lib/unictype/pr_other_math.h: Likewise.
1135         * lib/unictype/pr_punctuation.h: Likewise.
1136         * lib/unictype/pr_sentence_terminal.h: Likewise.
1137         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1138         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1139         * lib/unictype/pr_unified_ideograph.h: Likewise.
1140         * lib/unictype/pr_uppercase.h: Likewise.
1141         * lib/unictype/pr_xid_continue.h: Likewise.
1142         * lib/unictype/pr_xid_start.h: Likewise.
1143         * lib/unictype/scripts.h: Likewise.
1144         * lib/unictype/scripts_byname.gperf: Likewise.
1145         * lib/unictype/sy_java_ident.h: Likewise.
1146         * lib/unigbrk/gbrkprop.h: Likewise.
1147         * lib/unilbrk/lbrkprop1.h: Likewise.
1148         * lib/unilbrk/lbrkprop2.h: Likewise.
1149         * lib/uninorm/decomposition-table2.h: Likewise.
1150         * lib/uniwbrk/wbrkprop.h: Likewise.
1151         * tests/unicase/test-cased.c: Likewise.
1152         * tests/unicase/test-ignorable.c: Likewise.
1153         * tests/unicase/test-uc_tolower.c: Likewise.
1154         * tests/unicase/test-uc_totitle.c: Likewise.
1155         * tests/unicase/test-uc_toupper.c: Likewise.
1156         * tests/unictype/test-categ_C.c: Likewise.
1157         * tests/unictype/test-categ_Cn.c: Likewise.
1158         * tests/unictype/test-categ_L.c: Likewise.
1159         * tests/unictype/test-categ_Ll.c: Likewise.
1160         * tests/unictype/test-categ_Lm.c: Likewise.
1161         * tests/unictype/test-categ_Lo.c: Likewise.
1162         * tests/unictype/test-categ_Lu.c: Likewise.
1163         * tests/unictype/test-categ_M.c: Likewise.
1164         * tests/unictype/test-categ_Mc.c: Likewise.
1165         * tests/unictype/test-categ_Me.c: Likewise.
1166         * tests/unictype/test-categ_Mn.c: Likewise.
1167         * tests/unictype/test-categ_N.c: Likewise.
1168         * tests/unictype/test-categ_Nd.c: Likewise.
1169         * tests/unictype/test-categ_No.c: Likewise.
1170         * tests/unictype/test-categ_P.c: Likewise.
1171         * tests/unictype/test-categ_Po.c: Likewise.
1172         * tests/unictype/test-categ_S.c: Likewise.
1173         * tests/unictype/test-categ_Sc.c: Likewise.
1174         * tests/unictype/test-categ_Sk.c: Likewise.
1175         * tests/unictype/test-categ_Sm.c: Likewise.
1176         * tests/unictype/test-categ_So.c: Likewise.
1177         * tests/unictype/test-ctype_alnum.c: Likewise.
1178         * tests/unictype/test-ctype_alpha.c: Likewise.
1179         * tests/unictype/test-ctype_graph.c: Likewise.
1180         * tests/unictype/test-ctype_lower.c: Likewise.
1181         * tests/unictype/test-ctype_print.c: Likewise.
1182         * tests/unictype/test-ctype_punct.c: Likewise.
1183         * tests/unictype/test-ctype_upper.c: Likewise.
1184         * tests/unictype/test-decdigit.h: Likewise.
1185         * tests/unictype/test-digit.h: Likewise.
1186         * tests/unictype/test-numeric.h: Likewise.
1187         * tests/unictype/test-pr_alphabetic.c: Likewise.
1188         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1189         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1190         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1191         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1192         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1193         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1194         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1195         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1196         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1197         * tests/unictype/test-pr_cased.c: Likewise.
1198         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1199         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1200         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1201         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1202         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1203         * tests/unictype/test-pr_combining.c: Likewise.
1204         * tests/unictype/test-pr_composite.c: Likewise.
1205         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1206         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1207         * tests/unictype/test-pr_deprecated.c: Likewise.
1208         * tests/unictype/test-pr_format_control.c: Likewise.
1209         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1210         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1211         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1212         * tests/unictype/test-pr_id_continue.c: Likewise.
1213         * tests/unictype/test-pr_id_start.c: Likewise.
1214         * tests/unictype/test-pr_ideographic.c: Likewise.
1215         * tests/unictype/test-pr_lowercase.c: Likewise.
1216         * tests/unictype/test-pr_math.c: Likewise.
1217         * tests/unictype/test-pr_numeric.c: Likewise.
1218         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1219         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1220         * tests/unictype/test-pr_other_math.c: Likewise.
1221         * tests/unictype/test-pr_punctuation.c: Likewise.
1222         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1223         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1224         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1225         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1226         * tests/unictype/test-pr_uppercase.c: Likewise.
1227         * tests/unictype/test-pr_xid_continue.c: Likewise.
1228         * tests/unictype/test-pr_xid_start.c: Likewise.
1229         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1230         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1231         changes.
1232         * lib/unictype/categ_Cc.h: Likewise.
1233         * lib/unictype/categ_Cf.h: Likewise.
1234         * lib/unictype/categ_Co.h: Likewise.
1235         * lib/unictype/categ_Cs.h: Likewise.
1236         * lib/unictype/categ_Lt.h: Likewise.
1237         * lib/unictype/categ_Nl.h: Likewise.
1238         * lib/unictype/categ_Pc.h: Likewise.
1239         * lib/unictype/categ_Pd.h: Likewise.
1240         * lib/unictype/categ_Pe.h: Likewise.
1241         * lib/unictype/categ_Pf.h: Likewise.
1242         * lib/unictype/categ_Pi.h: Likewise.
1243         * lib/unictype/categ_Ps.h: Likewise.
1244         * lib/unictype/categ_Z.h: Likewise.
1245         * lib/unictype/categ_Zl.h: Likewise.
1246         * lib/unictype/categ_Zp.h: Likewise.
1247         * lib/unictype/categ_Zs.h: Likewise.
1248         * lib/unictype/ctype_blank.h: Likewise.
1249         * lib/unictype/ctype_cntrl.h: Likewise.
1250         * lib/unictype/ctype_digit.h: Likewise.
1251         * lib/unictype/ctype_space.h: Likewise.
1252         * lib/unictype/ctype_xdigit.h: Likewise.
1253         * lib/unictype/mirror.h: Likewise.
1254         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1255         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1256         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1257         * lib/unictype/pr_bidi_control.h: Likewise.
1258         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1259         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1260         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1261         * lib/unictype/pr_bidi_pdf.h: Likewise.
1262         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1263         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1264         * lib/unictype/pr_dash.h: Likewise.
1265         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1266         * lib/unictype/pr_diacritic.h: Likewise.
1267         * lib/unictype/pr_extender.h: Likewise.
1268         * lib/unictype/pr_hex_digit.h: Likewise.
1269         * lib/unictype/pr_hyphen.h: Likewise.
1270         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1271         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1272         * lib/unictype/pr_ignorable_control.h: Likewise.
1273         * lib/unictype/pr_iso_control.h: Likewise.
1274         * lib/unictype/pr_join_control.h: Likewise.
1275         * lib/unictype/pr_left_of_pair.h: Likewise.
1276         * lib/unictype/pr_line_separator.h: Likewise.
1277         * lib/unictype/pr_logical_order_exception.h: Likewise.
1278         * lib/unictype/pr_non_break.h: Likewise.
1279         * lib/unictype/pr_not_a_character.h: Likewise.
1280         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1281         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1282         * lib/unictype/pr_other_id_start.h: Likewise.
1283         * lib/unictype/pr_other_lowercase.h: Likewise.
1284         * lib/unictype/pr_other_uppercase.h: Likewise.
1285         * lib/unictype/pr_paired_punctuation.h: Likewise.
1286         * lib/unictype/pr_paragraph_separator.h: Likewise.
1287         * lib/unictype/pr_pattern_syntax.h: Likewise.
1288         * lib/unictype/pr_pattern_white_space.h: Likewise.
1289         * lib/unictype/pr_private_use.h: Likewise.
1290         * lib/unictype/pr_quotation_mark.h: Likewise.
1291         * lib/unictype/pr_radical.h: Likewise.
1292         * lib/unictype/pr_soft_dotted.h: Likewise.
1293         * lib/unictype/pr_space.h: Likewise.
1294         * lib/unictype/pr_titlecase.h: Likewise.
1295         * lib/unictype/pr_variation_selector.h: Likewise.
1296         * lib/unictype/pr_white_space.h: Likewise.
1297         * lib/unictype/pr_zero_width.h: Likewise.
1298         * lib/unictype/sy_c_ident.h: Likewise.
1299         * lib/unictype/sy_c_whitespace.h: Likewise.
1300         * lib/unictype/sy_java_whitespace.h: Likewise.
1301         * lib/uninorm/composition-table.gperf: Likewise.
1302         * lib/uninorm/decomposition-table1.h: Likewise.
1303         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
1304         LB8.
1305         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1306         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1307         * modules/unictype/*: Bump version number of expected libunistring
1308         version.
1309
1310 2011-01-09  Bruno Haible  <bruno@clisp.org>
1311
1312         Update to Unicode 5.2.0.
1313         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
1314         trailing whitespace removed.
1315
1316 2011-01-09  Bruno Haible  <bruno@clisp.org>
1317
1318         New Unicode character properties, from Unicode 5.2.0.
1319         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
1320         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
1321         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
1322         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
1323         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
1324         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
1325         uc_is_property_cased, uc_is_property_case_ignorable,
1326         uc_is_property_changes_when_lowercased,
1327         uc_is_property_changes_when_uppercased,
1328         uc_is_property_changes_when_titlecased,
1329         uc_is_property_changes_when_casefolded,
1330         uc_is_property_changes_when_casemapped): New declarations.
1331         * lib/unictype/pr_byname.gperf: Add the new properties.
1332         * modules/unictype/property-byname (Depends-on): Depend on the new
1333         properties modules.
1334         * modules/unictype/property-all (Depends-on): Likewise.
1335         * MODULES.html.sh (Unicode string functions): Add
1336         unictype/property-case-ignorable, unictype/property-cased,
1337         unictype/property-changes-when-casefolded,
1338         unictype/property-changes-when-casemapped,
1339         unictype/property-changes-when-lowercased,
1340         unictype/property-changes-when-titlecased,
1341         unictype/property-changes-when-uppercased.
1342
1343         New module 'unictype/property-changes-when-casemapped'.
1344         * modules/unictype/property-changes-when-casemapped: New file.
1345         * lib/unictype/pr_changes_when_casemapped.c: New file.
1346         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1347         generated by gen-uni-tables.
1348         * modules/unictype/property-changes-when-casemapped-tests: New file.
1349         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1350         automatically generated by gen-uni-tables.
1351
1352         New module 'unictype/property-changes-when-casefolded'.
1353         * modules/unictype/property-changes-when-casefolded: New file.
1354         * lib/unictype/pr_changes_when_casefolded.c: New file.
1355         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1356         generated by gen-uni-tables.
1357         * modules/unictype/property-changes-when-casefolded-tests: New file.
1358         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1359         automatically generated by gen-uni-tables.
1360
1361         New module 'unictype/property-changes-when-titlecased'.
1362         * modules/unictype/property-changes-when-titlecased: New file.
1363         * lib/unictype/pr_changes_when_titlecased.c: New file.
1364         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1365         generated by gen-uni-tables.
1366         * modules/unictype/property-changes-when-titlecased-tests: New file.
1367         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1368         automatically generated by gen-uni-tables.
1369
1370         New module 'unictype/property-changes-when-uppercased'.
1371         * modules/unictype/property-changes-when-uppercased: New file.
1372         * lib/unictype/pr_changes_when_uppercased.c: New file.
1373         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1374         generated by gen-uni-tables.
1375         * modules/unictype/property-changes-when-uppercased-tests: New file.
1376         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1377         automatically generated by gen-uni-tables.
1378
1379         New module 'unictype/property-changes-when-lowercased'.
1380         * modules/unictype/property-changes-when-lowercased: New file.
1381         * lib/unictype/pr_changes_when_lowercased.c: New file.
1382         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1383         generated by gen-uni-tables.
1384         * modules/unictype/property-changes-when-lowercased-tests: New file.
1385         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1386         automatically generated by gen-uni-tables.
1387
1388         New module 'unictype/property-case-ignorable'.
1389         * modules/unictype/property-case-ignorable: New file.
1390         * lib/unictype/pr_case_ignorable.c: New file.
1391         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1392         by gen-uni-tables.
1393         * modules/unictype/property-case-ignorable-tests: New file.
1394         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1395         generated by gen-uni-tables.
1396
1397         New module 'unictype/property-cased'.
1398         * modules/unictype/property-cased: New file.
1399         * lib/unictype/pr_cased.c: New file.
1400         * lib/unictype/pr_cased.h: New file, automatically generated by
1401         gen-uni-tables.
1402         * modules/unictype/property-cased-tests: New file.
1403         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1404         gen-uni-tables.
1405
1406 2011-01-09  Bruno Haible  <bruno@clisp.org>
1407
1408         Update to Unicode 5.2.0.
1409         * lib/gen-uni-tables.c (output_predicate, output_category,
1410         output_combclass, output_bidi_category, output_decimal_digit_test,
1411         output_decimal_digit, output_digit_test, output_digit,
1412         output_numeric_test, output_numeric, output_mirror, output_scripts,
1413         output_scripts_byname, output_blocks, output_ident_category): Fix
1414         comment header.
1415         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1416         get_wbp.
1417         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1418         items.
1419         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1420         Changes_When_Lowercased, Changes_When_Uppercased,
1421         Changes_When_Titlecased, Changes_When_Casefolded,
1422         Changes_When_Casemapped.
1423         (is_property_alphabetic, is_property_default_ignorable_code_point):
1424         Update for Unicode 5.2.0.
1425         (is_property_cased, is_property_case_ignorable,
1426         is_property_changes_when_lowercased,
1427         is_property_changes_when_uppercased,
1428         is_property_changes_when_titlecased,
1429         is_property_changes_when_casefolded,
1430         is_property_changes_when_casemapped): New functions.
1431         (output_properties): Output also the properties cased, case_ignorable,
1432         changes_when_lowercased, changes_when_uppercased,
1433         changes_when_titlecased, changes_when_casefolded,
1434         changes_when_casemapped.
1435         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1436         Unicode TR#11 revision 17 -> 19.
1437         (LBP_CP): New enumeration value.
1438         (LBP_*): Adjust values accordingly.
1439         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1440         TR#14 revision 22 -> 24.
1441         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1442         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1443         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1444         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1445         is_WBP_MIDLETTER.
1446         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1447         the code1 and code2 of each composition rule.
1448         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1449         * lib/unicase/ignorable.h: Likewise.
1450         * lib/unicase/tocasefold.h: Likewise.
1451         * lib/unicase/tolower.h: Likewise.
1452         * lib/unicase/totitle.h: Likewise.
1453         * lib/unicase/toupper.h: Likewise.
1454         * lib/unictype/bidi_of.h: Likewise.
1455         * lib/unictype/blocks.h: Likewise.
1456         * lib/unictype/categ_C.h: Likewise.
1457         * lib/unictype/categ_Cf.h: Likewise.
1458         * lib/unictype/categ_Cn.h: Likewise.
1459         * lib/unictype/categ_L.h: Likewise.
1460         * lib/unictype/categ_Ll.h: Likewise.
1461         * lib/unictype/categ_Lm.h: Likewise.
1462         * lib/unictype/categ_Lo.h: Likewise.
1463         * lib/unictype/categ_Lu.h: Likewise.
1464         * lib/unictype/categ_M.h: Likewise.
1465         * lib/unictype/categ_Mc.h: Likewise.
1466         * lib/unictype/categ_Mn.h: Likewise.
1467         * lib/unictype/categ_N.h: Likewise.
1468         * lib/unictype/categ_Nd.h: Likewise.
1469         * lib/unictype/categ_Nl.h: Likewise.
1470         * lib/unictype/categ_No.h: Likewise.
1471         * lib/unictype/categ_P.h: Likewise.
1472         * lib/unictype/categ_Pd.h: Likewise.
1473         * lib/unictype/categ_Po.h: Likewise.
1474         * lib/unictype/categ_S.h: Likewise.
1475         * lib/unictype/categ_Sc.h: Likewise.
1476         * lib/unictype/categ_So.h: Likewise.
1477         * lib/unictype/categ_of.h: Likewise.
1478         * lib/unictype/combining.h: Likewise.
1479         * lib/unictype/ctype_alnum.h: Likewise.
1480         * lib/unictype/ctype_alpha.h: Likewise.
1481         * lib/unictype/ctype_graph.h: Likewise.
1482         * lib/unictype/ctype_lower.h: Likewise.
1483         * lib/unictype/ctype_print.h: Likewise.
1484         * lib/unictype/ctype_punct.h: Likewise.
1485         * lib/unictype/ctype_upper.h: Likewise.
1486         * lib/unictype/decdigit.h: Likewise.
1487         * lib/unictype/digit.h: Likewise.
1488         * lib/unictype/numeric.h: Likewise.
1489         * lib/unictype/pr_alphabetic.h: Likewise.
1490         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1491         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1492         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1493         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1494         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1495         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1496         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1497         * lib/unictype/pr_combining.h: Likewise.
1498         * lib/unictype/pr_composite.h: Likewise.
1499         * lib/unictype/pr_currency_symbol.h: Likewise.
1500         * lib/unictype/pr_dash.h: Likewise.
1501         * lib/unictype/pr_decimal_digit.h: Likewise.
1502         * lib/unictype/pr_deprecated.h: Likewise.
1503         * lib/unictype/pr_diacritic.h: Likewise.
1504         * lib/unictype/pr_extender.h: Likewise.
1505         * lib/unictype/pr_grapheme_base.h: Likewise.
1506         * lib/unictype/pr_grapheme_extend.h: Likewise.
1507         * lib/unictype/pr_grapheme_link.h: Likewise.
1508         * lib/unictype/pr_id_continue.h: Likewise.
1509         * lib/unictype/pr_id_start.h: Likewise.
1510         * lib/unictype/pr_ideographic.h: Likewise.
1511         * lib/unictype/pr_ignorable_control.h: Likewise.
1512         * lib/unictype/pr_logical_order_exception.h: Likewise.
1513         * lib/unictype/pr_lowercase.h: Likewise.
1514         * lib/unictype/pr_numeric.h: Likewise.
1515         * lib/unictype/pr_other_alphabetic.h: Likewise.
1516         * lib/unictype/pr_punctuation.h: Likewise.
1517         * lib/unictype/pr_sentence_terminal.h: Likewise.
1518         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1519         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1520         * lib/unictype/pr_unified_ideograph.h: Likewise.
1521         * lib/unictype/pr_uppercase.h: Likewise.
1522         * lib/unictype/pr_xid_continue.h: Likewise.
1523         * lib/unictype/pr_xid_start.h: Likewise.
1524         * lib/unictype/pr_zero_width.h: Likewise.
1525         * lib/unictype/scripts.h: Likewise.
1526         * lib/unictype/scripts_byname.gperf: Likewise.
1527         * lib/unictype/sy_java_ident.h: Likewise.
1528         * lib/unigbrk/gbrkprop.h: Likewise.
1529         * lib/unilbrk/lbrkprop1.h: Likewise.
1530         * lib/unilbrk/lbrkprop2.h: Likewise.
1531         * lib/unilbrk/lbrktables.h: Likewise.
1532         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1533         LBP_CP. Implement rule LB30.
1534         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1535         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1536         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1537         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1538         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1539         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1540         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1541         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1542         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1543         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1544         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1545         bits instead of 16 bits in the code1 and code2 of each composition
1546         rule.
1547         (uc_composition): Update for Unicode 5.2.0.
1548         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1549         * lib/uninorm/decomposition-table2.h: Likewise.
1550         * lib/uniwbrk/wbrkprop.h: Likewise.
1551         * tests/unicase/test-cased.c: Likewise.
1552         * tests/unicase/test-ignorable.c: Likewise.
1553         * tests/unicase/test-uc_tolower.c: Likewise.
1554         * tests/unicase/test-uc_totitle.c: Likewise.
1555         * tests/unicase/test-uc_toupper.c: Likewise.
1556         * tests/unictype/test-categ_C.c: Likewise.
1557         * tests/unictype/test-categ_Cf.c: Likewise.
1558         * tests/unictype/test-categ_Cn.c: Likewise.
1559         * tests/unictype/test-categ_L.c: Likewise.
1560         * tests/unictype/test-categ_Ll.c: Likewise.
1561         * tests/unictype/test-categ_Lm.c: Likewise.
1562         * tests/unictype/test-categ_Lo.c: Likewise.
1563         * tests/unictype/test-categ_Lu.c: Likewise.
1564         * tests/unictype/test-categ_M.c: Likewise.
1565         * tests/unictype/test-categ_Mc.c: Likewise.
1566         * tests/unictype/test-categ_Mn.c: Likewise.
1567         * tests/unictype/test-categ_N.c: Likewise.
1568         * tests/unictype/test-categ_Nd.c: Likewise.
1569         * tests/unictype/test-categ_Nl.c: Likewise.
1570         * tests/unictype/test-categ_No.c: Likewise.
1571         * tests/unictype/test-categ_P.c: Likewise.
1572         * tests/unictype/test-categ_Pd.c: Likewise.
1573         * tests/unictype/test-categ_Po.c: Likewise.
1574         * tests/unictype/test-categ_S.c: Likewise.
1575         * tests/unictype/test-categ_Sc.c: Likewise.
1576         * tests/unictype/test-categ_So.c: Likewise.
1577         * tests/unictype/test-ctype_alnum.c: Likewise.
1578         * tests/unictype/test-ctype_alpha.c: Likewise.
1579         * tests/unictype/test-ctype_graph.c: Likewise.
1580         * tests/unictype/test-ctype_lower.c: Likewise.
1581         * tests/unictype/test-ctype_print.c: Likewise.
1582         * tests/unictype/test-ctype_punct.c: Likewise.
1583         * tests/unictype/test-ctype_upper.c: Likewise.
1584         * tests/unictype/test-decdigit.h: Likewise.
1585         * tests/unictype/test-digit.h: Likewise.
1586         * tests/unictype/test-numeric.h: Likewise.
1587         * tests/unictype/test-pr_alphabetic.c: Likewise.
1588         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1589         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1590         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1591         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1592         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1593         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1594         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1595         * tests/unictype/test-pr_combining.c: Likewise.
1596         * tests/unictype/test-pr_composite.c: Likewise.
1597         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1598         * tests/unictype/test-pr_dash.c: Likewise.
1599         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1600         * tests/unictype/test-pr_deprecated.c: Likewise.
1601         * tests/unictype/test-pr_diacritic.c: Likewise.
1602         * tests/unictype/test-pr_extender.c: Likewise.
1603         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1604         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1605         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1606         * tests/unictype/test-pr_id_continue.c: Likewise.
1607         * tests/unictype/test-pr_id_start.c: Likewise.
1608         * tests/unictype/test-pr_ideographic.c: Likewise.
1609         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1610         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1611         * tests/unictype/test-pr_lowercase.c: Likewise.
1612         * tests/unictype/test-pr_numeric.c: Likewise.
1613         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1614         * tests/unictype/test-pr_punctuation.c: Likewise.
1615         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1616         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1617         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1618         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1619         * tests/unictype/test-pr_uppercase.c: Likewise.
1620         * tests/unictype/test-pr_xid_continue.c: Likewise.
1621         * tests/unictype/test-pr_xid_start.c: Likewise.
1622         * tests/unictype/test-pr_zero_width.c: Likewise.
1623         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1624         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1625         changed behaviour: line breaking is now disallowed between a letter
1626         or '=' and '('.
1627         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1628         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1629         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1630         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1631         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1632         lib/uniwidth/width.c.
1633         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1634         without comments, but with the original copyright notice.
1635         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1636         changes.
1637         * lib/unictype/categ_Cc.h: Likewise.
1638         * lib/unictype/categ_Co.h: Likewise.
1639         * lib/unictype/categ_Cs.h: Likewise.
1640         * lib/unictype/categ_Lt.h: Likewise.
1641         * lib/unictype/categ_Me.h: Likewise.
1642         * lib/unictype/categ_Pc.h: Likewise.
1643         * lib/unictype/categ_Pe.h: Likewise.
1644         * lib/unictype/categ_Pf.h: Likewise.
1645         * lib/unictype/categ_Pi.h: Likewise.
1646         * lib/unictype/categ_Ps.h: Likewise.
1647         * lib/unictype/categ_Sk.h: Likewise.
1648         * lib/unictype/categ_Sm.h: Likewise.
1649         * lib/unictype/categ_Z.h: Likewise.
1650         * lib/unictype/categ_Zl.h: Likewise.
1651         * lib/unictype/categ_Zp.h: Likewise.
1652         * lib/unictype/categ_Zs.h: Likewise.
1653         * lib/unictype/ctype_blank.h: Likewise.
1654         * lib/unictype/ctype_cntrl.h: Likewise.
1655         * lib/unictype/ctype_digit.h: Likewise.
1656         * lib/unictype/ctype_space.h: Likewise.
1657         * lib/unictype/ctype_xdigit.h: Likewise.
1658         * lib/unictype/mirror.h: Likewise.
1659         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1660         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1661         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1662         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1663         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1664         * lib/unictype/pr_bidi_control.h: Likewise.
1665         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1666         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1667         * lib/unictype/pr_bidi_pdf.h: Likewise.
1668         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1669         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1670         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1671         * lib/unictype/pr_format_control.h: Likewise.
1672         * lib/unictype/pr_hex_digit.h: Likewise.
1673         * lib/unictype/pr_hyphen.h: Likewise.
1674         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1675         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1676         * lib/unictype/pr_iso_control.h: Likewise.
1677         * lib/unictype/pr_join_control.h: Likewise.
1678         * lib/unictype/pr_left_of_pair.h: Likewise.
1679         * lib/unictype/pr_line_separator.h: Likewise.
1680         * lib/unictype/pr_math.h: Likewise.
1681         * lib/unictype/pr_non_break.h: Likewise.
1682         * lib/unictype/pr_not_a_character.h: Likewise.
1683         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1684         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1685         * lib/unictype/pr_other_id_continue.h: Likewise.
1686         * lib/unictype/pr_other_id_start.h: Likewise.
1687         * lib/unictype/pr_other_lowercase.h: Likewise.
1688         * lib/unictype/pr_other_math.h: Likewise.
1689         * lib/unictype/pr_other_uppercase.h: Likewise.
1690         * lib/unictype/pr_paired_punctuation.h: Likewise.
1691         * lib/unictype/pr_paragraph_separator.h: Likewise.
1692         * lib/unictype/pr_pattern_syntax.h: Likewise.
1693         * lib/unictype/pr_pattern_white_space.h: Likewise.
1694         * lib/unictype/pr_private_use.h: Likewise.
1695         * lib/unictype/pr_quotation_mark.h: Likewise.
1696         * lib/unictype/pr_radical.h: Likewise.
1697         * lib/unictype/pr_soft_dotted.h: Likewise.
1698         * lib/unictype/pr_space.h: Likewise.
1699         * lib/unictype/pr_titlecase.h: Likewise.
1700         * lib/unictype/pr_variation_selector.h: Likewise.
1701         * lib/unictype/pr_white_space.h: Likewise.
1702         * lib/unictype/sy_c_ident.h: Likewise.
1703         * lib/unictype/sy_c_whitespace.h: Likewise.
1704         * lib/unictype/sy_java_whitespace.h: Likewise.
1705         * modules/uni*/*: Bump version number of expected libunistring version.
1706         Reported by Simon Josefsson.
1707
1708 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1709
1710         useless-if-before-free: fix typo in --help and make the internal,
1711         automatic version date update process work once again.
1712         --help output contained a NUL character instead of the
1713         backslash-zero that was intended.  Also, the "must lie within
1714         the first 8 lines" line is on line 9, and hence not getting
1715         automatically updated.
1716         * build-aux/useless-if-before-free: Fix the former by adding a
1717         backslash, and the latter by condensing the three lines of what-it-does
1718         to a single line, leaving one line of slack for the future.
1719
1720 2011-01-09  Bruno Haible  <bruno@clisp.org>
1721
1722         uniwidth/width: Fix width of U+1D173..U+1D17A.
1723         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1724         symbolic_width, output_width_property_test): New functions.
1725         (main): Invoke output_nonspacing_property, output_width_property_test.
1726         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1727         U+1D173..U+1D17A.
1728         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1729         1.
1730         * modules/uniwidth/*: Bump version number of expected libunistring
1731         version.
1732         * modules/unilbrk/*: Likewise.
1733
1734 2011-01-08  Bruno Haible  <bruno@clisp.org>
1735
1736         uninorm tests: Preserve copyright of Unicode data file.
1737         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1738         Mention modifications.
1739
1740 2011-01-08  Bruno Haible  <bruno@clisp.org>
1741
1742         gen-uni-tables: Prepare for Unicode 5.2.0.
1743         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1744         (debug_output_lbp, output_lbp): Update.
1745
1746 2011-01-08  Bruno Haible  <bruno@clisp.org>
1747
1748         unilbrk: Clarify gen-uni-tables.c code.
1749         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1750         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1751         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1752
1753 2011-01-07  Bruno Haible  <bruno@clisp.org>
1754
1755         strtod: Restore errno when successfully parsing Infinity or NaN.
1756         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1757         restore the original errno.
1758
1759 2011-01-07  Bruno Haible  <bruno@clisp.org>
1760
1761         remove test: Avoid failure on HP-UX 11.
1762         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1763
1764 2011-01-07  Bruno Haible  <bruno@clisp.org>
1765
1766         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1767         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1768         error code.
1769
1770 2011-01-07  Pádraig Brady <P@draigBrady.com>
1771
1772         ignore-value: fixup comments, and add Eric Blake
1773         as an author since he rewrote the macros.
1774         * lib/ignore-value.h (ignore_value):  State that
1775         we now support aggregates.  Also specify exactly
1776         when the GCC warn_unused_result feature was added.
1777
1778 2011-01-06  Eric Blake  <eblake@redhat.com>
1779
1780         ignore-value: support aggregate types
1781         * lib/ignore-value.h (ignore_value): Provide separate gcc
1782         definition.
1783         * modules/ignore-value-tests: New test module.
1784         * tests/test-ignore-value.c: New test.
1785
1786         maint.mk: improve sc_prohibit_strcmp regex
1787         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1788         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1789         definition of STRNEQ.
1790
1791         signal: work around Haiku issue with SIGBUS
1792         * lib/siglist.h: Add comment.
1793         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1794         strsignal's favoring of SIGSEGV.
1795         * tests/test-signal.c (main): Avoid test failure.
1796         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1797         Reported by Scott McCreary.
1798
1799         maint.mk: add pre-release check to ensure submodule commits are public
1800         * top/maint.mk (public-submodule-commit): New rule.
1801         (submodule-checks): New variable.
1802         (alpha beta stable): Depend on the variable.
1803
1804 2011-01-05  Pádraig Brady <P@draigBrady.com>
1805         and Jim Meyering  <meyering@redhat.com>
1806
1807         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1808         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1809         (ATTRIBUTE_DEPRECATED): Define.
1810         (_ignore_case): New function.
1811         (ignore_value): New macro, to replace the old function.
1812         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1813         * modules/ignore-value (Depends-on): Add stdint.
1814
1815 2011-01-04  Eric Blake  <eblake@redhat.com>
1816
1817         doc: regenerate INSTALL
1818         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1819         @firstparagraphindent support, now that autoconf dropped it.
1820         (INSTALL_PRELUDE): Reinstate old macro.
1821         * doc/install.texi: Resync from autoconf.
1822         * doc/INSTALL: Reflect recent autoconf update.
1823         * doc/INSTALL.ISO: Likewise.
1824         * doc/INSTALL.UTF-8: Likewise.
1825         Reported by Karl Berry.
1826
1827 2011-01-04  Bruce Korb  <address@hidden>
1828
1829         git-version-gen: avoid a sub-shell
1830         * build-aux/git-version-gen: Redirect stderr in `...` via
1831         "exec 2>...", rather than via an added sub-shell.
1832
1833 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1834
1835         git-version-gen: use (...) rather than sh -c '...'
1836         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1837         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1838
1839 2011-01-03  Jim Meyering  <meyering@redhat.com>
1840
1841         git-version-gen: convert leading TABs to spaces
1842         * build-aux/git-version-gen: Expand leading TABs.
1843
1844         git-version-gen: handle failed "git rev-list"
1845         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1846         from git and proceeding as if it had succeeded but printed no SHA1
1847         checksums, suppress the diagnostic and handle the failure.
1848         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1849
1850         git-version-gen: include command name in one more diagnostic
1851         * build-aux/git-version-gen: When the required .tarball-version file
1852         was missing or unreadable, you might see the diagnostic from "cat",
1853         but no trace of the name of the invoking script.  Now, you still see
1854         the diagnostic from cat, but also get one from "git-version-gen: ".
1855         Inspired by a patch from Bruce Korb.
1856
1857         update-copyright: adjust test to match changed code
1858         * tests/test-update-copyright.sh: Change test's expected output
1859         to match new actual output.
1860
1861 2011-01-02  Bruno Haible  <bruno@clisp.org>
1862
1863         getlogin_r: Avoid test failure on HP-UX 11.
1864         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1865         ERANGE when the second argument is zero.
1866         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1867         portability problem.
1868
1869 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1870
1871         * build-aux/update-copyright: doc Simon's changes
1872
1873 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1874
1875         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1876         environment variable.
1877
1878 2011-01-02  Bruno Haible  <bruno@clisp.org>
1879
1880         unigbrk: Avoid gcc warnings.
1881         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1882         unused variable.
1883         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1884         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1885         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1886         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1887         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1888         Change type of first argument to 'const char *'.
1889         (main): Remove unused variable.
1890         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1891         type of first argument to 'const char *'.
1892         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1893         Likewise.
1894         (main): Change type of variable 's'.
1895         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1896         to 'int'.
1897
1898 2011-01-02  Bruno Haible  <bruno@clisp.org>
1899
1900         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1901         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1902         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1903         bug.
1904         * lib/pwrite.c: Undo 2010-12-31 patch.
1905         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1906
1907 2011-01-02  Bruno Haible  <bruno@clisp.org>
1908
1909         pread: Fix test whether it works.
1910         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1911
1912 2011-01-02  Bruno Haible  <bruno@clisp.org>
1913
1914         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1915         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1916         ends in "6". Don't require a specific month name. Try also the locale
1917         names found on HP-UX 11 and Solaris 7.
1918
1919 2011-01-02  Bruno Haible  <bruno@clisp.org>
1920
1921         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1922         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1923         C linkage.
1924         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1925
1926 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1927
1928         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1929         for consistency, since the "cluster" term is not used elsewhere.
1930         * lib/unigbrk.in.h: Update name.
1931         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1932         * lib/unigbrk/u16-grapheme-next.c: Update name.
1933         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1934         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1935         * lib/unigbrk/u32-grapheme-next.c: Update name.
1936         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1937         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1938         * lib/unigbrk/u8-grapheme-next.c: Update name.
1939         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1940         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1941         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1942         Suggested by Bruno Haible.
1943
1944 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1945
1946         Remove module 'u8-grapheme-len' as too redundant with
1947         'u8-grapheme-next'.
1948         * modules/unigbrk/u8-grapheme-len: Delete file.
1949         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1950         * lib/unigbrk.in.h: Remove prototype for deleted function.
1951         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1952         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1953
1954         Remove module 'u16-grapheme-len' as too redundant with
1955         'u16-grapheme-next'.
1956         * modules/unigbrk/u16-grapheme-len: Delete file.
1957         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1958         * lib/unigbrk.in.h: Remove prototype for deleted function.
1959         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1960         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1961
1962         Remove module 'u32-grapheme-len' as too redundant with
1963         'u32-grapheme-next'.
1964         * modules/unigbrk/u32-grapheme-len: Delete file.
1965         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1966         * lib/unigbrk.in.h: Remove prototype for deleted function.
1967         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1968         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1969
1970         Suggested by Bruno Haible.
1971
1972 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1973
1974         * unigbrk.in.h: Fix typo: "ben" => "been".
1975         Reported by Bruno Haible.
1976
1977 2011-01-01  Jim Meyering  <meyering@redhat.com>
1978
1979         maint: update almost all copyright ranges to include 2011
1980         Run the new "make update-copyright" rule.
1981
1982 2011-01-01  Jim Meyering  <meyering@redhat.com>
1983
1984         maint: update-copyright: exempt doc/INSTALL*
1985         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1986         since they are generated.  Suggested by Bruno Haible.
1987
1988 2011-01-01  Jim Meyering  <meyering@redhat.com>
1989
1990         maint: refine the update-copyright rule
1991         * Makefile (update-copyright): Also exclude any file that includes
1992         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1993         code that merely generates the comment.
1994
1995 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1996
1997         New module 'u8-grapheme-len'.
1998         * modules/unigbrk/u8-grapheme-len: New file.
1999         * modules/unigbrk/u8-grapheme-len-tests: New file.
2000         * lib/unigbrk.in.h: Add prototype for new function.
2001         * lib/unigbrk/u8-grapheme-len.c: New file.
2002         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2003
2004         New module 'u16-grapheme-len'.
2005         * modules/unigbrk/u16-grapheme-len: New file.
2006         * modules/unigbrk/u16-grapheme-len-tests: New file.
2007         * lib/unigbrk.in.h: Add prototype for new function.
2008         * lib/unigbrk/u16-grapheme-len.c: New file.
2009         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2010
2011         New module 'u32-grapheme-len'.
2012         * modules/unigbrk/u32-grapheme-len: New file.
2013         * modules/unigbrk/u32-grapheme-len-tests: New file.
2014         * lib/unigbrk.in.h: Add prototype for new function.
2015         * lib/unigbrk/u32-grapheme-len.c: New file.
2016         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2017
2018         New module 'u8-grapheme-next'.
2019         * modules/unigbrk/u8-grapheme-next: New file.
2020         * modules/unigbrk/u8-grapheme-next-tests: New file.
2021         * lib/unigbrk.in.h: Add prototype for new function.
2022         * lib/unigbrk/u8-grapheme-next.c: New file.
2023         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2024
2025         New module 'u16-grapheme-next'.
2026         * modules/unigbrk/u16-grapheme-next: New file.
2027         * modules/unigbrk/u16-grapheme-next-tests: New file.
2028         * lib/unigbrk.in.h: Add prototype for new function.
2029         * lib/unigbrk/u16-grapheme-next.c: New file.
2030         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2031
2032         New module 'u32-grapheme-next'.
2033         * modules/unigbrk/u32-grapheme-next: New file.
2034         * modules/unigbrk/u32-grapheme-next-tests: New file.
2035         * lib/unigbrk.in.h: Add prototype for new function.
2036         * lib/unigbrk/u32-grapheme-next.c: New file.
2037         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2038
2039         New module 'u8-grapheme-prev'.
2040         * modules/unigbrk/u8-grapheme-prev: New file.
2041         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2042         * lib/unigbrk.in.h: Add prototype for new function.
2043         * lib/unigbrk/u8-grapheme-prev.c: New file.
2044         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2045
2046         New module 'u16-grapheme-prev'.
2047         * modules/unigbrk/u16-grapheme-prev: New file.
2048         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2049         * lib/unigbrk.in.h: Add prototype for new function.
2050         * lib/unigbrk/u16-grapheme-prev.c: New file.
2051         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2052
2053         New module 'u32-grapheme-prev'.
2054         * modules/unigbrk/u32-grapheme-prev: New file.
2055         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2056         * lib/unigbrk.in.h: Add prototype for new function.
2057         * lib/unigbrk/u32-grapheme-prev.c: New file.
2058         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2059
2060         New module 'u8-grapheme-breaks'.
2061         * modules/unigbrk/u8-grapheme-breaks: New file.
2062         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2063         * lib/unigbrk.in.h: Add prototype for new function.
2064         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2065         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2066
2067         New module 'u16-grapheme-breaks'.
2068         * modules/unigbrk/u16-grapheme-breaks: New file.
2069         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2070         * lib/unigbrk.in.h: Add prototype for new function.
2071         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2072         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2073
2074         New module 'u32-grapheme-breaks'.
2075         * modules/unigbrk/u32-grapheme-breaks: New file.
2076         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2077         * lib/unigbrk.in.h: Add prototype for new function.
2078         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2079         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2080
2081         New module 'ulc-grapheme-breaks'.
2082         * modules/unigbrk/ulc-grapheme-breaks: New file.
2083         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2084         * m4/locale-ar.m4: New file.
2085         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2086         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2087         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2088
2089 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2090
2091         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2092         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2093         modified how this file was generated before I initially submitted
2094         the module, but failed to regenerate it.  This meant that several
2095         of the level2 entries were wrong.
2096         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2097         Remove the division-by-2 that is folded into the table now that
2098         gbrkprop.h has been regenerated properly.  Now -1 entries are
2099         handled correctly.
2100
2101         New module 'unigbrk/uc-gbrk-prop-tests'.
2102         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2103         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2104         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2105         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2106
2107 2011-01-01  Bruno Haible  <bruno@clisp.org>
2108
2109         Avoid use of hexadecimal escapes.
2110         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2111         instead of hexadecimal escapes.
2112
2113 2011-01-01  Jim Meyering  <meyering@redhat.com>
2114
2115         maint: new rule to update copyright year ranges
2116         * Makefile (update-copyright): New rule.
2117
2118         maint: indent with TABs in Makefile
2119         * Makefile: Expand leading sequences of spaces to TABs
2120
2121         version-etc: update the copyright year it reports
2122         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2123
2124 2010-12-31  Bruno Haible  <bruno@clisp.org>
2125
2126         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2127         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2128         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2129         zero.
2130
2131 2010-12-31  Bruno Haible  <bruno@clisp.org>
2132
2133         pwrite: Work around HP-UX 11.11 bug.
2134         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2135         works and set REPLACE_PWRITE if not.
2136         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2137         function.
2138         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2139
2140 2010-12-31  Bruno Haible  <bruno@clisp.org>
2141
2142         pread: Work around HP-UX 11 bugs.
2143         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2144         and set REPLACE_PREAD if not.
2145         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2146
2147 2010-12-31  Eric Blake  <eblake@redhat.com>
2148
2149         nl_langinfo: fix YESEXPR on Irix 6.5
2150         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2151         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2152         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2153         it.
2154
2155 2010-12-31  Bruno Haible  <bruno@clisp.org>
2156
2157         iconv: Document HP-UX 11 bug.
2158         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2159
2160 2010-12-31  Bruno Haible  <bruno@clisp.org>
2161
2162         ldexpl: Fix link error on HP-UX 11.
2163         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2164         LDEXPL_LIBM, using $ISNANL_LIBM.
2165
2166 2010-12-31  Eric Blake  <eblake@redhat.com>
2167
2168         ftello: avoid compilation failure with SunStudio c89
2169         * lib/ftello.c (ftello): Use lseek, not llseek.
2170
2171         tests: avoid failing coreutils tests on cygwin
2172         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2173         (create_exe_shims_): Return 0 when skipping.
2174
2175 2010-12-31  Bruno Haible  <bruno@clisp.org>
2176
2177         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2178         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2179
2180 2010-12-31  Bruno Haible  <bruno@clisp.org>
2181
2182         waitpid: Fix link error in C++ mode.
2183         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2184
2185 2010-12-31  Bruno Haible  <bruno@clisp.org>
2186
2187         isnan: Use GCC built-ins when possible.
2188         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2189         __builtin_isnan.
2190         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2191         (isnan): Define using GCC built-ins for GCC >= 4.0.
2192
2193 2010-12-31  Bruno Haible  <bruno@clisp.org>
2194
2195         isnand: Fix mistake.
2196         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2197         __builtin_isnand.
2198
2199 2010-12-31  Bruno Haible  <bruno@clisp.org>
2200
2201         open: Avoid C++ error on HP-UX 11.
2202         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2203
2204 2010-12-31  Bruno Haible  <bruno@clisp.org>
2205
2206         time_r: Add missing declarations on HP-UX 11.
2207         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2208         instead of HAVE_LOCALTIME_R.
2209         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2210         HAVE_LOCALTIME_R always.
2211         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2212         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2213         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2214         HAVE_LOCALTIME_R.
2215         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2216         * doc/posix-functions/localtime_r.texi: Likewise.
2217
2218 2010-12-29  Eric Blake  <eblake@redhat.com>
2219
2220         mountlist: tweak previous commit
2221         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2222         Reported by Paul Eggert.
2223
2224         mountlist: fix local drive detection on cygwin
2225         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2226         that works for cygwin.
2227
2228 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         ftoastr, snprintf: ftoastr + snprintf module
2231         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2232         since the snprintf module now should be good enough here.
2233         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2234         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2235         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2236         GNULIB_SNPRINTF only for the test directory, and the latter
2237         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2238         seems to suffice by itself.
2239
2240 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2241
2242         alloca: one step towards thread-safety
2243         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2244         need for a static variable.  All callers changed.  This does not
2245         make the alloca replacement thread-safe, but it's one step.
2246
2247         tests: minor indenting change
2248         * tests/init.sh: Sync from coreutils housekeeping patch
2249         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2250         to keep lines within 80 columns.
2251
2252 2010-12-28  Jim Meyering  <meyering@redhat.com>
2253
2254         regex: don't infloop on persistent failing calloc
2255         * lib/regexec.c (build_trtable): Return failure indication upon
2256         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2257         In glibc, this was fixed for version 2.13:
2258         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2259
2260 2010-12-28  Bruno Haible  <bruno@clisp.org>
2261             Paul Eggert <eggert@cs.ucla.edu>
2262
2263         linkat: Make implementation robust against system behaviour variations.
2264         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2265         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2266         way, and to -2 if it needs a generic runtime test.
2267         * lib/linkat.c (solaris_optimized_link_immediate,
2268         solaris_optimized_link_follow): New functions.
2269         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2270         (check_same_link): Use it.
2271
2272 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2273
2274         New module 'unigbrk/base'.
2275         * modules/unigbrk/base: New file.
2276         * lib/unigbrk.in.h: New file.
2277
2278         New module 'unigbrk/uc-gbrk-prop'.
2279         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2280         * modules/unigbrk/uc-gbrk-prop: New file.
2281         * lib/unigbrk/gbrkprop.h: New file.
2282         * lib/unigbrk/uc-gbrk-prop.c: New file.
2283
2284         New module 'unigbrk/uc-is-grapheme-break'.
2285         * modules/unigbrk/uc-is-grapheme-break: New file.
2286         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2287         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2288         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2289         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2290         * tests/unigbrk/GraphemeBreakTest.txt: New file.
2291
2292         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
2293
2294 2010-12-27  Bruno Haible  <bruno@clisp.org>
2295
2296         linkat test: Avoid failure on Solaris 11 2010-11.
2297         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
2298
2299 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2300
2301         utimens: work around glibc rounding bug on more platforms
2302         * lib/utimens.c (fdutimens): Work around rounding bug even if
2303         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
2304         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
2305
2306 2010-12-27  Bruno Haible  <bruno@clisp.org>
2307
2308         select tests: Improve comments.
2309         * tests/test-select.c (do_select): Add comments.
2310
2311 2010-12-27  Bruno Haible  <bruno@clisp.org>
2312
2313         select tests: Safer way of handling timeout.
2314         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
2315         at every invocation.
2316
2317 2010-12-27  Bruno Haible  <bruno@clisp.org>
2318
2319         select tests: Use 'bool' where appropriate.
2320         * tests/test-select.c (connect_to_socket): Change argument type to
2321         'bool'.
2322
2323 2010-12-27  Bruno Haible  <bruno@clisp.org>
2324
2325         select tests: Use existing modules.
2326         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
2327         (configure.ac): Don't test for unistd.h.
2328         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
2329         declared in <unistd.h>.
2330
2331 2010-12-27  Bruno Haible  <bruno@clisp.org>
2332
2333         mbrtowc: Work around a Solaris 7 bug.
2334         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2335         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2336         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2337         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2338         MBRTOWC_NULL_ARG1_BUG.
2339         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2340         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2341         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2342         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2343
2344 2010-12-27  Jim Meyering  <meyering@redhat.com>
2345
2346         read-file.c: tweak syntax
2347         * lib/read-file.c (fread_file): Remove space after "*" in function
2348         definitions.
2349
2350 2010-12-27  Bruno Haible  <bruno@clisp.org>
2351
2352         times test: Avoid gcc warnings on OSF/1.
2353         * tests/test-times.c (main): Cast printf arguments from clock_t to
2354         'long int'.
2355
2356 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         utimens: work around glibc rounding bug on older Linux kernels
2359         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2360         on Linux with a glibc whose utimes might not work, then work
2361         around a longstanding glibc bug involving rounding rather than
2362         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2363         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2364
2365 2010-12-26  Bruno Haible  <bruno@clisp.org>
2366
2367         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2368         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2369         _GL_CXXALIAS_SYS.
2370         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2371
2372 2010-12-26  Bruno Haible  <bruno@clisp.org>
2373
2374         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2375         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2376         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2377         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2378         looking for the declaration.
2379         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2380         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2381         problem.
2382         * doc/posix-functions/inet_pton.texi: Likewise.
2383
2384 2010-12-26  Bruno Haible  <bruno@clisp.org>
2385
2386         arpa_inet: Use the common idioms with C++ support.
2387         * lib/arpa_inet.in.h: Include c++defs.h.
2388         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2389         support.
2390         * modules/arpa_inet (Depends-on): Add c++defs.
2391         (Makefile.am): Substitute the contents of c++defs.h.
2392         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2393         * modules/arpa_inet-c++-tests: New file.
2394         * tests/test-arpa_inet-c++.cc: New file.
2395
2396 2010-12-25  Bruno Haible  <bruno@clisp.org>
2397
2398         Fix more C++ link errors on Solaris 8.
2399         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2400         $(LIB_EACCESS).
2401         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2402         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2403         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2404         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2405         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2406
2407 2010-12-25  Bruno Haible  <bruno@clisp.org>
2408
2409         printf-posix: Fix link error when a non-GCC compiler is used.
2410         * lib/stdio.in.h (printf): When not using GCC, override printf
2411         correctly.
2412         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2413
2414 2010-12-25  Bruno Haible  <bruno@clisp.org>
2415
2416         strerror_r-posix: Update doc.
2417         * doc/posix-functions/strerror_r.texi: Update doc about the return
2418         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2419
2420 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2421
2422         utimens: simplify the logic of the previous change
2423         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2424         This should not affect whether the test succeeds or fails.
2425
2426         utimens: configure better on hosts with NFS clock skew
2427         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2428         uses the clock of the local host.  It might use the clock of the
2429         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2431
2432 2010-12-25  Bruno Haible  <bruno@clisp.org>
2433
2434         ptsname test: Avoid failure on Solaris.
2435         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2436         open a pseudo-terminal; don't use BSD-style ptys.
2437         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2438
2439 2010-12-25  Bruno Haible  <bruno@clisp.org>
2440
2441         ptsname: Avoid ERANGE failure on some systems.
2442         * lib/ptsname.c (buffer): Increase size.
2443
2444 2010-12-25  Bruno Haible  <bruno@clisp.org>
2445
2446         rename, renameat: Avoid test failures at NFS mounted locations.
2447         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2448         so that subsequent mkdir calls succeed.
2449
2450 2010-12-25  Bruno Haible  <bruno@clisp.org>
2451
2452         iswblank: Fix C++ link error on Solaris 8.
2453         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2454         _GL_FUNCDECL_SYS.
2455
2456 2010-12-25  Bruno Haible  <bruno@clisp.org>
2457
2458         unistd: Fix C++ link error on Solaris 8.
2459         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2460
2461 2010-12-25  Bruno Haible  <bruno@clisp.org>
2462
2463         readlink doc: Mention an old glibc bug.
2464         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2465
2466 2010-12-25  Bruno Haible  <bruno@clisp.org>
2467
2468         fcntl-h: Fix for use of C++ on glibc systems.
2469         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2470         also on glibc systems in C++ mode.
2471         Reported by Gary V. Vaughan <gary@gnu.org>.
2472
2473 2010-12-25  Bruno Haible  <bruno@clisp.org>
2474
2475         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2476         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2477
2478 2010-12-25  Bruno Haible  <bruno@clisp.org>
2479
2480         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2481         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2482         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2483         test whether truncl works according to ISO C 99 with IEC 60559.
2484         * m4/truncl-ieee.m4: New file.
2485         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2486         m4/signbit.m4.
2487         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2488
2489 2010-12-25  Bruno Haible  <bruno@clisp.org>
2490
2491         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2492         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2493         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2494         test whether ceill works according to ISO C 99 with IEC 60559.
2495         * m4/ceill-ieee.m4: New file.
2496         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2497         m4/signbit.m4.
2498         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2499
2500 2010-12-25  Bruno Haible  <bruno@clisp.org>
2501
2502         Ensure all prerequisites of <wchar.h> are included.
2503         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2504         before <wchar.h>.
2505         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2506         gl_MBRLEN_NUL_RETVAL): Likewise.
2507         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2508         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2509         AC_FUNC_MBRTOWC): Likewise.
2510         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2511         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2513         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2514         Likewise.
2515         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2516         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2517         (gl_WCHAR_H): Improve comments.
2518         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2519
2520 2010-12-25  Bruno Haible  <bruno@clisp.org>
2521
2522         strtok_r: Fix C syntax error in autoconf macro.
2523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2524         characters in test program.
2525
2526 2010-12-24  Bruno Haible  <bruno@clisp.org>
2527
2528         ceil, trunc, round: Fix gcc warnings.
2529         * lib/ceil.c (MIN): Undefine before redefining.
2530         * lib/trunc.c (MIN): Likewise.
2531         * lib/round.c (MIN): Likewise.
2532         Include <math.h> first.
2533
2534 2010-12-24  Bruno Haible  <bruno@clisp.org>
2535
2536         select tests: Avoid failures on OSF/1 5.1.
2537         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2538         failure of closing the last socket; it may fail with ECONNRESET.
2539
2540 2010-12-24  Eric Blake  <eblake@redhat.com>
2541
2542         stdint: avoid HP-UX 10.20 preprocessor bug
2543         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2544         than #if.
2545         * tests/test-floor2.c (main): Likewise.
2546         Reported by Peter O'Gorman.
2547
2548         pipe: make obsoletion transition easier
2549         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2550         * modules/pipe (Files): Include revived file.
2551         (Include): Drop reference, to mirror getdate's behavior.
2552
2553 2010-12-24  Bruno Haible  <bruno@clisp.org>
2554
2555         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2556         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2557         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2559
2560 2010-12-24  Bruno Haible  <bruno@clisp.org>
2561
2562         gethostname: Ensure declaration on NonStop Kernel.
2563         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2564         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2565
2566 2010-12-24  Bruno Haible  <bruno@clisp.org>
2567
2568         sys_select: Ensure all necessary types on NonStop Kernel.
2569         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2570         include <sys/time.h>.
2571         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2572         NonStop Kernel.
2573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2574
2575 2010-12-24  Bruno Haible  <bruno@clisp.org>
2576
2577         sys_select: Remove unneeded include.
2578         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2579         have <sys/select.h>.
2580
2581 2010-12-24  Bruno Haible  <bruno@clisp.org>
2582
2583         gethostname: Provide a fallback for HOST_NAME_MAX.
2584         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2585         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2586         instead.
2587         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2588
2589 2010-12-24  Bruno Haible  <bruno@clisp.org>
2590
2591         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2592         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2593         (SA_RESTART): Likewise.
2594         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2595
2596 2010-12-24  Bruno Haible  <bruno@clisp.org>
2597
2598         signal: Define NSIG.
2599         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2600         * tests/test-signal.c (nsig): New variable.
2601         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2602
2603 2010-12-24  Bruno Haible  <bruno@clisp.org>
2604
2605         rename, renameat: Avoid test failures on OSF/1 5.1.
2606         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2607         alternative error codes.
2608         * tests/test-renameat.c (main): Likewise.
2609
2610 2010-12-24  Bruno Haible  <bruno@clisp.org>
2611
2612         *printf: Detect large precisions bug on Solaris 10/SPARC.
2613         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2614         by Paul Eggert.
2615         * tests/test-snprintf-posix.h (test_function): Add this test code here
2616         too.
2617         * tests/test-sprintf-posix.h (test_function): Likewise.
2618         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2619         * tests/test-vasprintf-posix.c (test_function): Likewise.
2620         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2621         around by gnulib.
2622         * doc/posix-functions/printf.texi: Likewise.
2623         * doc/posix-functions/snprintf.texi: Likewise.
2624         * doc/posix-functions/sprintf.texi: Likewise.
2625         * doc/posix-functions/vfprintf.texi: Likewise.
2626         * doc/posix-functions/vprintf.texi: Likewise.
2627         * doc/posix-functions/vsnprintf.texi: Likewise.
2628         * doc/posix-functions/vsprintf.texi: Likewise.
2629         * doc/posix-functions/dprintf.texi: Undo last commit.
2630         * doc/posix-functions/vdprintf.texi: Likewise.
2631
2632 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         tests: port test-fdutimensat.c to Solaris 8
2635         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2636         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2637         On Solaris 8, it fails with errno == ENOSYS, because there is no
2638         futimens (so it can't use the fd), and there is no lutimens (so it
2639         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2640
2641         vsnprintf: make more consistent with snprintf; doc fixes
2642
2643         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2644         the byte count return problem was promoted from the snprintf-posix
2645         to the snprintf module.
2646         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2647         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2648         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2649         * tests/test-snprintf.c (main): Check the byte count returned.
2650         * tests/test-vsnprintf.c (main): Likewise.
2651
2652 2010-12-23  Eric Blake  <eblake@redhat.com>
2653
2654         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2655         * modules/sigpipe (License): Relax license.
2656
2657 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2658
2659         doc: document Solaris printf bug with large float precisions
2660         * doc/posix-functions/dprintf.texi (dprintf):
2661         * doc/posix-functions/fprintf.texi (fprintf):
2662         * doc/posix-functions/printf.texi (printf):
2663         * doc/posix-functions/snprintf.texi (snprintf):
2664         * doc/posix-functions/sprintf.texi (sprintf):
2665         * doc/posix-functions/vdprintf.texi (vdprintf):
2666         * doc/posix-functions/vfprintf.texi (vfprintf):
2667         * doc/posix-functions/vprintf.texi (vprintf):
2668         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2669         * doc/posix-functions/vsprintf.texi (vsprintf):
2670         Mention that these functions mishandle large floating point
2671         precisions on Solaris 10.  The same bug is also present in Solaris
2672         8, and I assume earlier.  This causes "cd gnulib-tests; make
2673         check" to fail on Solaris 8 (and I assume, later) when building
2674         the latest coreutils, in test-vasprintf-posix's call to
2675         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2676         the wide flavors (e.g., wprintf) so this patch just updates the
2677         documentation for the narrow ones.
2678
2679         test-posixtm.c: add two tests
2680         * tests/test-posixtm.c: Add two tests, to highlight the
2681         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2682         around this bug; this is merely to document it.
2683
2684 2010-12-22  Bruno Haible  <bruno@clisp.org>
2685
2686         getlogin_r: Work around portability problem on OSF/1.
2687         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2688         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2689         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2690         test for a truncated result.
2691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2692         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2693         * modules/getlogin_r (Depends-on): Add memchr.
2694         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2695
2696 2010-12-22  Bruno Haible  <bruno@clisp.org>
2697
2698         ptsname: Avoid test failure on OSF/1 5.1.
2699         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2700         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2701         (same_slave): New function.
2702         (main): Use it to compare ptsname's result with the expected file name.
2703
2704 2010-12-22  Bruno Haible  <bruno@clisp.org>
2705
2706         Port extended stdio modules to HP NonStop Kernel.
2707         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2708         macros.
2709         * lib/fbufmode.c: Update comments.
2710         * lib/fflush.c: Likewise.
2711         * lib/fpurge.c: Likewise.
2712         * lib/freadable.c: Likewise.
2713         * lib/freadahead.c: Likewise.
2714         * lib/freading.c: Likewise.
2715         * lib/freadptr.c: Likewise.
2716         * lib/freadseek.c: Likewise.
2717         * lib/fseeko.c: Likewise.
2718         * lib/fseterr.c: Likewise.
2719         * lib/fwritable.c: Likewise.
2720         * lib/fwriting.c: Likewise.
2721         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2722
2723 2010-12-22  Bruno Haible  <bruno@clisp.org>
2724
2725         ttyname_r: Work around bug on OSF/1 5.1.
2726         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2728         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2729         present.
2730         * lib/ttyname_r.c (ttyname_r): Update comments.
2731
2732 2010-12-22  Bruno Haible  <bruno@clisp.org>
2733
2734         round: Implement result sign according to IEEE 754.
2735         * lib/round.c (MIN, MINUS_ZERO): New macros.
2736         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2737         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2738         * tests/test-round-ieee.c (main): Likewise.
2739         * tests/test-roundl-ieee.c (main): Likewise.
2740
2741         trunc: Implement result sign according to IEEE 754.
2742         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2743         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2744         * tests/test-trunc2.c: Include minus-zero.h.
2745         (MINUS_ZERO): New macro.
2746         (trunc_reference): Keep in sync with lib/trunc.c.
2747         * tests/test-truncf2.c: Include minus-zero.h.
2748         (MINUS_ZERO): New macro.
2749         (truncf_reference): Keep in sync with lib/trunc.c.
2750         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2751         * tests/test-trunc-ieee.c (main): Likewise.
2752         * tests/test-truncl-ieee.c (main): Likewise.
2753
2754         ceil: Implement result sign according to IEEE 754.
2755         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2756         (FUNC): Return -0.0 for -1 < x < 0.
2757         * tests/test-ceil2.c: Include minus-zero.h.
2758         (MINUS_ZERO): New macro.
2759         (ceil_reference): Keep in sync with lib/ceil.c.
2760         * tests/test-ceilf2.c: Include minus-zero.h.
2761         (MINUS_ZERO): New macro.
2762         (ceilf_reference): Keep in sync with lib/ceil.c.
2763         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2764         * tests/test-ceil-ieee.c (main): Likewise.
2765         * tests/test-ceill-ieee.c (main): Likewise.
2766
2767         floor: Implement result sign according to IEEE 754.
2768         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2769         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2770         * tests/test-floorf2.c (floorf_reference): Likewise.
2771         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2772         * tests/test-floor-ieee.c (main): Likewise.
2773         * tests/test-floorl-ieee.c (main): Likewise.
2774
2775 2010-12-22  Bruno Haible  <bruno@clisp.org>
2776
2777         getaddrinfo: Update doc.
2778         * doc/posix-functions/gai_strerror.texi: Return type is also different
2779         on AIX and HP-UX.
2780
2781 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2782
2783         getaddrinfo, inet_ntop: Update doc for Solaris.
2784         * doc/posix-functions/gai_strerror.texi: Return type is also an
2785         issue on Solaris 9 and earlier.
2786         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2787         on Solaris 10 and earlier.
2788
2789 2010-12-21  Bruno Haible  <bruno@clisp.org>
2790
2791         New module 'roundl-ieee'.
2792         * modules/roundl-ieee: New file.
2793         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2794         test whether roundl works according to ISO C 99 with IEC 60559.
2795         * m4/roundl-ieee.m4: New file.
2796         * modules/roundl-ieee-tests: New file.
2797         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2798         * tests/test-roundl.c (main): Remove signbit tests.
2799         * modules/roundl-tests (Depends-on): Remove signbit.
2800         * doc/posix-functions/roundl.texi: Mention the new module.
2801
2802 2010-12-21  Bruno Haible  <bruno@clisp.org>
2803
2804         New module 'truncl-ieee'.
2805         * modules/truncl-ieee: New file.
2806         * modules/truncl-ieee-tests: New file.
2807         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2808         * tests/test-truncl.c (main): Remove signbit tests.
2809         * modules/truncl-tests (Depends-on): Remove signbit.
2810         * doc/posix-functions/truncl.texi: Mention the new module.
2811
2812 2010-12-21  Bruno Haible  <bruno@clisp.org>
2813
2814         New module 'ceill-ieee'.
2815         * modules/ceill-ieee: New file.
2816         * modules/ceill-ieee-tests: New file.
2817         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2818         * tests/test-ceill.c (main): Remove signbit tests.
2819         * modules/ceill-tests (Depends-on): Remove signbit.
2820         * doc/posix-functions/ceill.texi: Mention the new module.
2821
2822 2010-12-21  Bruno Haible  <bruno@clisp.org>
2823
2824         New module 'floorl-ieee'.
2825         * modules/floorl-ieee: New file.
2826         * modules/floorl-ieee-tests: New file.
2827         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2828         * tests/test-floorl.c (main): Remove signbit tests.
2829         * modules/floorl-tests (Depends-on): Remove signbit.
2830         * doc/posix-functions/floorl.texi: Mention the new module.
2831
2832 2010-12-21  Bruno Haible  <bruno@clisp.org>
2833
2834         New module 'round-ieee'.
2835         * modules/round-ieee: New file.
2836         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2837         whether round works according to ISO C 99 with IEC 60559.
2838         * m4/round-ieee.m4: New file.
2839         * modules/round-ieee-tests: New file.
2840         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2841         * tests/test-round1.c (main): Remove signbit tests.
2842         * modules/round-tests (Depends-on): Remove 'signbit'.
2843         * doc/posix-functions/round.texi: Mention the new module.
2844
2845 2010-12-21  Bruno Haible  <bruno@clisp.org>
2846
2847         New module 'trunc-ieee'.
2848         * modules/trunc-ieee: New file.
2849         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2850         whether trunc works according to ISO C 99 with IEC 60559.
2851         * m4/trunc-ieee.m4: New file.
2852         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2854         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2855         * modules/trunc-ieee-tests: New file.
2856         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2857         * tests/test-trunc1.c (main): Remove signbit tests.
2858         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2859         * doc/posix-functions/trunc.texi: Mention the new module.
2860
2861 2010-12-21  Bruno Haible  <bruno@clisp.org>
2862
2863         New module 'ceil-ieee'.
2864         * modules/ceil-ieee: New file.
2865         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2866         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2867         ISO C 99 with IEC 60559.
2868         * m4/ceil-ieee.m4: New file.
2869         * modules/ceil (Files): Add lib/ceil.c.
2870         (Depends-on): Add 'float'.
2871         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2872         * lib/math.in.h (ceil): New declaration.
2873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2874         REPLACE_CEIL.
2875         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2876         * modules/ceil-ieee-tests: New file.
2877         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2878         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2879         * doc/posix-functions/ceil.texi: Mention the new module.
2880
2881 2010-12-21  Bruno Haible  <bruno@clisp.org>
2882
2883         New module 'floor-ieee'.
2884         * modules/floor-ieee: New file.
2885         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2886         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2887         ISO C 99 with IEC 60559.
2888         * m4/floor-ieee.m4: New file.
2889         * modules/floor (Files): Add lib/floor.c.
2890         (Depends-on): Add 'float'.
2891         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2892         * lib/math.in.h (floor): New declaration.
2893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2894         REPLACE_FLOOR.
2895         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2896         * modules/floor-ieee-tests: New file.
2897         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2898         * tests/test-math-c++.cc: Check the signature of 'floor'.
2899         * doc/posix-functions/floor.texi: Mention the new module.
2900
2901 2010-12-21  Bruno Haible  <bruno@clisp.org>
2902
2903         New module 'roundf-ieee'.
2904         * modules/roundf-ieee: New file.
2905         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2906         test whether roundf works according to ISO C 99 with IEC 60559.
2907         * m4/roundf-ieee.m4: New file.
2908         * modules/roundf-ieee-tests: New file.
2909         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2910         * tests/test-roundf1.c (main): Remove signbit tests.
2911         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2912         * doc/posix-functions/roundf.texi: Mention the new module.
2913
2914 2010-12-21  Bruno Haible  <bruno@clisp.org>
2915
2916         New module 'truncf-ieee'.
2917         * modules/truncf-ieee: New file.
2918         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2919         test whether truncf works according to ISO C 99 with IEC 60559.
2920         * m4/truncf-ieee.m4: New file.
2921         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2923         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2924         * modules/truncf-ieee-tests: New file.
2925         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2926         * tests/test-truncf1.c (main): Remove signbit tests.
2927         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2928         * doc/posix-functions/truncf.texi: Mention the new module.
2929
2930 2010-12-21  Bruno Haible  <bruno@clisp.org>
2931
2932         New module 'ceilf-ieee'.
2933         * modules/ceilf-ieee: New file.
2934         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2935         test whether ceilf works according to ISO C 99 with IEC 60559.
2936         * m4/ceilf-ieee.m4: New file.
2937         * modules/ceilf-ieee-tests: New file.
2938         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2939         * tests/test-ceilf1.c (main): Remove signbit tests.
2940         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2941         * doc/posix-functions/ceilf.texi: Mention the new module.
2942
2943 2010-12-21  Bruno Haible  <bruno@clisp.org>
2944
2945         New module 'floorf-ieee'.
2946         * modules/floorf-ieee: New file.
2947         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2948         test whether floorf works according to ISO C 99 with IEC 60559.
2949         * m4/floorf-ieee.m4: New file.
2950         * modules/floorf-ieee-tests: New file.
2951         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2952         * tests/test-floorf1.c (main): Remove signbit tests.
2953         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2954         * doc/posix-functions/floorf.texi: Mention the new module.
2955
2956 2010-12-21  Bruno Haible  <bruno@clisp.org>
2957
2958         Support for minus zero in autoconf macros.
2959         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2960         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2961         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2962         * tests/minus-zero.h: Update comments.
2963
2964 2010-12-21  Bruno Haible  <bruno@clisp.org>
2965
2966         Tests for module 'ceil'.
2967         * modules/ceil-tests: New file.
2968         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2969         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2970
2971 2010-12-21  Bruno Haible  <bruno@clisp.org>
2972
2973         Tests for module 'floor'.
2974         * modules/floor-tests: New file.
2975         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2976         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2977
2978 2010-12-21  Bruno Haible  <bruno@clisp.org>
2979
2980         math: Fix indentation.
2981         * lib/math.in.h (floorf): Fix indentation.
2982
2983 2010-12-21  Bruno Haible  <bruno@clisp.org>
2984
2985         Fix cross-compilation guesses on Solaris.
2986         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2987         not match "solaris2.10".
2988         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2989         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2990         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2991
2992 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2993
2994         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2995         This fixes a problem observed with the latest coreutils snapshot
2996         that caused a test to fail on Solaris 8.  src/csplit.c's call
2997         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2998         earlier, instead of returning the number of bytes that would have
2999         been generated; this causes csplit to incorrectly report memory
3000         exhaustion.
3001         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3002         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3003         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3004         comments to match.
3005         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3006         Fix typo in matching older versions of Solaris: "solaris2.10"
3007         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3008         only for guessing while cross-compiling.
3009         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3010
3011 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3012
3013         ftoastr: fix comment again
3014         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3016         Also, simplify example a bit by using flags = 0.
3017
3018 2010-12-20  Bruno Haible  <bruno@clisp.org>
3019
3020         round*, trunc*: Update documentation regarding glibc.
3021         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3022         * doc/posix-functions/round.texi: Likewise.
3023         * doc/posix-functions/roundl.texi: Likewise.
3024         * doc/posix-functions/truncf.texi: Likewise.
3025         * doc/posix-functions/trunc.texi: Likewise.
3026         * doc/posix-functions/truncl.texi: Likewise.
3027
3028 2010-12-20  Bruno Haible  <bruno@clisp.org>
3029
3030         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3031         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3032         * doc/posix-functions/round.texi: Likewise.
3033         * doc/posix-functions/roundl.texi: Likewise.
3034
3035 2010-12-20  Bruno Haible  <bruno@clisp.org>
3036
3037         ttyname_r: Add missing declaration on HP-UX 11.
3038         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3039         HAVE_TTYNAME_R.
3040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3041         declared. Set HAVE_TTYNAME_R always.
3042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3043         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3044         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3045         HAVE_TTYNAME_R.
3046         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3047
3048 2010-12-20  Bruno Haible  <bruno@clisp.org>
3049
3050         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3051         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3052         * doc/posix-functions/getlogin_r.texi: Likewise.
3053         * tests/test-getlogin.c: Include <errno.h>.
3054         (main): Avoid test failure on HP-UX 11.11.
3055         * tests/test-getlogin_r.c (main): Likewise.
3056
3057 2010-12-20  Bruno Haible  <bruno@clisp.org>
3058
3059         getlogin_r: Add missing declaration on HP-UX 11.
3060         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3061         declared also when it exists as a function.
3062         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3063
3064 2010-12-20  Bruno Haible  <bruno@clisp.org>
3065
3066         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3067         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3068         through wcrtomb.
3069
3070 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3071
3072         ftoastr: fix comment
3073         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3075
3076 2010-12-19  Bruno Haible  <bruno@clisp.org>
3077
3078         isnan: Ensure it is a macro.
3079         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3080         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3081         Solaris.
3082
3083 2010-12-19  Bruno Haible  <bruno@clisp.org>
3084
3085         ldexpl test: Fix link error on OSF/1 5.1.
3086         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3087
3088 2010-12-19  Bruno Haible  <bruno@clisp.org>
3089
3090         wctype: Make it work in C++ mode on OSF/1 5.1.
3091         * lib/wctype.in.h (iswblank): Declare but not define here.
3092         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3093         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3094         * modules/wctype (Files): Add lib/iswblank.c.
3095
3096 2010-12-19  Bruno Haible  <bruno@clisp.org>
3097
3098         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3099         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3100         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3101
3102 2010-12-19  Bruno Haible  <bruno@clisp.org>
3103
3104         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3105         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3106         _POSIX_PII_SOCKET.
3107         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3108         * doc/posix-functions/recvfrom.texi: Likewise.
3109         * doc/posix-functions/send.texi: Likewise.
3110         * doc/posix-functions/sendto.texi: Likewise.
3111
3112 2010-12-19  Bruno Haible  <bruno@clisp.org>
3113
3114         tcgetsid: Add missing declaration on OSF/1 5.1.
3115         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3116         HAVE_TCGETSID.
3117         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3118         Don't set HAVE_TCGETSID.
3119         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3120         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3121         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3122         HAVE_TCGETSID.
3123         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3124
3125 2010-12-19  Bruno Haible  <bruno@clisp.org>
3126
3127         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3128         * lib/stdio.in.h: During the include_next statement, let recursive
3129         includes of this file include only the system header file.
3130
3131 2010-12-19  Bruno Haible  <bruno@clisp.org>
3132
3133         iconv_open: Fix regression from 2010-12-04.
3134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3135         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3136
3137 2010-12-19  Bruno Haible  <bruno@clisp.org>
3138
3139         stdbool test: Avoid a gcc warning.
3140         * tests/test-stdbool.c (main): Fail if e1 is false.
3141         Reported by Jim Meyering.
3142
3143 2010-12-19  Jim Meyering  <meyering@redhat.com>
3144
3145         setenv: restore to working order
3146         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3147         mistakenly removed.
3148         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3149         HAVE_SETENV.
3150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3151         HAVE_SETENV.
3152
3153 2010-12-19  Bruno Haible  <bruno@clisp.org>
3154
3155         Document some different function declarations on OSF/1 5.1.
3156         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3157         * doc/posix-functions/inet_ntop.texi: Likewise.
3158         * doc/posix-functions/gethostname.texi: Likewise.
3159         * lib/unistd.in.h (gethostname): Update comment.
3160
3161 2010-12-19  Bruno Haible  <bruno@clisp.org>
3162
3163         doc: Mention vasprintf-posix module.
3164         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3165         the 'vasprintf-posix' module.
3166         * doc/glibc-functions/vasprintf.texi: Likewise.
3167
3168 2010-12-19  Bruno Haible  <bruno@clisp.org>
3169
3170         unsetenv: Add missing declaration on OSF/1 5.1.
3171         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3172         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3173         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3175         not HAVE_UNSETENV.
3176         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3177         HAVE_UNSETENV.
3178         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3179
3180 2010-12-19  Bruno Haible  <bruno@clisp.org>
3181
3182         setenv: Add missing declaration on OSF/1 5.1.
3183         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3185         declared. Don't set HAVE_SETENV.
3186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3187         not HAVE_SETENV.
3188         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3189         HAVE_SETENV.
3190         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3191
3192 2010-12-19  Bruno Haible  <bruno@clisp.org>
3193
3194         nl_langinfo tests: Avoid gcc warning.
3195         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3196
3197 2010-12-19  Bruno Haible  <bruno@clisp.org>
3198
3199         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3200         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3201         _GL_CXXALIAS_SYS.
3202
3203 2010-12-19  Bruno Haible  <bruno@clisp.org>
3204
3205         stdbool: Relax test.
3206         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3207         address to 'bool' work in static initializer, for compilers other than
3208         GCC.
3209
3210 2010-12-19  Bruno Haible  <bruno@clisp.org>
3211
3212         ftello: Add missing declaration on OSF/1 5.1.
3213         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3214         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3216         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3217         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3218
3219 2010-12-19  Bruno Haible  <bruno@clisp.org>
3220
3221         fseeko: Add missing declaration on OSF/1 5.1.
3222         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3223         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3225         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3226         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3227
3228 2010-12-19  Bruno Haible  <bruno@clisp.org>
3229
3230         fchdir: Add missing declaration on OSF/1 5.1.
3231         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3234         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3235         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3236
3237 2010-12-19  Bruno Haible  <bruno@clisp.org>
3238
3239         relocatable-prog-wrapper: Separate from relocatable-prog.
3240         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3241         uninstall-relocwrapper rule here.
3242         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3243         Reported by Ian Beckwith <ianb@erislabs.net>.
3244
3245 2010-12-19  Bruno Haible  <bruno@clisp.org>
3246
3247         unistr/u8-mbsnlen: Add missing dependency.
3248         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3249         Reported by Ian Beckwith <ianb@erislabs.net>.
3250
3251 2010-12-19  Bruno Haible  <bruno@clisp.org>
3252
3253         iconv: Make it possible again to use this module without 'iconv-h'.
3254         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3255         if it is not defined.
3256         Reported by Ian Beckwith <ianb@erislabs.net>.
3257
3258 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         acl: port to Solaris 8 when copying from tmpfs to ufs
3261         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3262         error number.  Problem observed on Solaris 8 with latest
3263         coreutils, with "mv A B", where A is on a tmpfs file system and B
3264         is on a ufs file system.  This caused coreutils' mv/part-symlink
3265         test to fail.
3266
3267         tests: set fail=0 at start
3268         * tests/init.sh (setup_): Move fail=0 initialization here ...
3269         (mktempd_): ... from here, so that tests can rely on fail being
3270         set to 0 initially.  This fixes a problem in coreutils; see:
3271         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3272
3273 2010-12-18  Bruno Haible  <bruno@clisp.org>
3274
3275         memmem-simple: Stylistic changes.
3276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3277         Fix preprocessor directive indentation.
3278
3279 2010-12-15  Pádraig Brady <P@draigBrady.com>
3280
3281         memmem, memmem-simple: reorganize and expand empty needle check
3282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3283         functional checks to memmem-simple so that one has a fully functional
3284         memmem by using just this module.
3285         Restrict the performance only check to the memmem module.
3286         Also expand the empty needle check to ensure the correct
3287         pointer is returned, not just a non NULL pointer.
3288         * doc/glibc-functions/memmem.texi: Rearrange the portability
3289         documentation to correlate with the rearranged checks.
3290         Clarify exactly how the memmem and memmem-simple modules
3291         relate to each other.
3292
3293 2010-12-15  Pádraig Brady <P@draigBrady.com>
3294             Bruno Haible  <bruno@clisp.org>
3295
3296         Improve cross-compilation guesses for uClibc.
3297         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
3298         that uClibc does not have the glibc bug.
3299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3300         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
3301
3302 2010-12-14  Eric Blake  <eblake@redhat.com>
3303
3304         configmake: provide fallbacks for oldest supported autotools
3305         * m4/configmake.m4: New file.
3306         * modules/configmake (Files): Ship it.
3307         (configure.ac): Use it to guarantee fallbacks.
3308
3309 2010-12-13  Pádraig Brady <P@draigBrady.com>
3310
3311         read-file: Improve handling of large files
3312         * lib/read-file.c (fread_file): Minimize realloc()s
3313         for regular files, and better manage sizes around SIZE_MAX.
3314
3315 2010-12-13  Eric Blake  <eblake@redhat.com>
3316
3317         cloexec, fcntl: relax license
3318         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
3319         consent from all contributors.
3320         * modules/fcntl (License): Likewise.
3321
3322 2010-12-10  Bruno Haible  <bruno@clisp.org>
3323
3324         Tests for module 'pipe-posix'.
3325         * modules/pipe-posix-tests: New file.
3326         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
3327
3328 2010-12-10  Bruno Haible  <bruno@clisp.org>
3329
3330         pipe-posix: Make it work in C++ mode.
3331         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
3332         (pipe): Use common idiom, not a macro definition.
3333         * lib/pipe.c: New file.
3334         * m4/pipe.m4: New file.
3335         * modules/pipe-posix (Description): Enhance.
3336         (Files): Add lib/pipe.c, m4/pipe.m4.
3337         (configure.ac): Invoke gl_FUNC_PIPE.
3338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3339         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3340         * tests/test-unistd-c++.cc: Check the signature of pipe.
3341
3342 2010-12-10  Bruno Haible  <bruno@clisp.org>
3343
3344         Rename module 'pipe' to 'spawn-pipe'.
3345         * modules/spawn-pipe: New file, renamed from modules/pipe.
3346         (Files, configure.ac, Makefile.am): Update.
3347         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3348         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3349         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3350         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3351         "spawn-pipe.h" instead of "pipe.h".
3352         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3353         to gl_SPAWN_PIPE.
3354         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3355         (Files, Makefile.am): Update.
3356         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3357         Update.
3358         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3359         Include "spawn-pipe.h" instead of "pipe.h".
3360         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3361         * lib/javacomp.c: Likewise.
3362         * lib/javaversion.c: Likewise.
3363         * lib/pipe-filter-gi.c: Likewise.
3364         * lib/pipe-filter-ii.c: Likewise.
3365         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3366         * modules/javacomp (Depends-on): Likewise.
3367         * modules/javaversion (Depends-on): Likewise.
3368         * modules/pipe-filter-gi (Depends-on): Likewise.
3369         * modules/pipe-filter-ii (Depends-on): Likewise.
3370         * MODULES.html.sh (Executing programs): Update.
3371         * NEWS: Mention the change.
3372
3373 2010-12-10  Eric Blake  <eblake@redhat.com>
3374
3375         pipe-posix: new module
3376         * modules/pipe-posix: New file.
3377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3378         (gl_UNISTD_H): Check for declaration.
3379         * modules/unistd (Makefile.am): Substitute it.
3380         * lib/unistd.in.h (pipe): Provide it for mingw.
3381         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3382         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3383
3384 2010-12-07  Bruno Haible  <bruno@clisp.org>
3385
3386         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3387         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3388         u8_strcmp_gnu.
3389         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3390
3391 2010-12-06  Bruno Haible  <bruno@clisp.org>
3392
3393         Update internal documentation.
3394         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3395
3396 2010-12-04  Bruno Haible  <bruno@clisp.org>
3397
3398         Put more information about failed tests into the test return codes.
3399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3400         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3401         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3402         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3403         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3406         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3407         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3409         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3410         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3411         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3412         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3413         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3414         returns a bit mask.
3415         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3416         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3417         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3418         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3419         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3420         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3423         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3424         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3426         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3429         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3430         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3431         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3432         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3433         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3434         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3436         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3438         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3439         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3440         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3441         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3442         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3443         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3444         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3445         gl_PRINTF_PRECISION): Likewise.
3446         * m4/regex.m4 (gl_REGEX): Likewise.
3447         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3449         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3450         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3454         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3455         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3456         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3457         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3458         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3460         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3461         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3462         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3463         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3466         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3467         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3468         enumerated value.
3469         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3470
3471 2010-12-04  Bruno Haible  <bruno@clisp.org>
3472
3473         Update for Solaris 11 2010-11.
3474         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3475         Express, released in November 2010.
3476
3477 2010-12-04  Bruno Haible  <bruno@clisp.org>
3478
3479         nproc: Relax license.
3480         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3481         and Paul Eggert.
3482         Requested by Ludovic Courtès <ludo@gnu.org>.
3483
3484 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3485
3486         utimecmp: fine-grained src to nearby coarse-grained dest
3487
3488         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3489         and the source is on a file system with higher-resolution time
3490         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3491         not work, and the time stamps are close together, the algorithm to
3492         determine the exact resolution from the read-back mtime was buggy:
3493         it had a "!=" where it should have had an "==".  This bug has been
3494         in the code ever since it was introduced to gnulib.
3495         Problem reported by Dan Jacobson in
3496         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3497
3498 2010-11-30  Bruno Haible  <bruno@clisp.org>
3499
3500         strerror_r-posix: Fix autoconf test.
3501         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3502
3503 2010-11-28  Bruno Haible  <bruno@clisp.org>
3504             Paul Eggert  <eggert@cs.ucla.edu>
3505
3506         Tests for module 'getdomainname'.
3507         * modules/getdomainname-tests: New file.
3508         * tests/test-getdomainname.c: New file, based on
3509         tests/test-gethostname.c.
3510
3511 2010-11-28  Bruno Haible  <bruno@clisp.org>
3512             Paul Eggert  <eggert@cs.ucla.edu>
3513
3514         getdomainname: Use the system function when possible.
3515         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3516         (getdomainname): Replace if needed. Provide the declaration if it is
3517         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3518         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3519         (getdomainname): When the system has getdomainname, call the system
3520         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3522         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3523         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3524         the function if its second argument is of type 'int' or if it is found
3525         in libnsl.
3526         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3527         <sys/systeminfo.h> and sysinfo().
3528         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3530         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3531         HAVE_GETDOMAINNAME.
3532         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3533         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3534         * doc/glibc-functions/getdomainname.texi: Document the problems with
3535         the getdomainname declaration.
3536
3537 2010-11-28  Bruno Haible  <bruno@clisp.org>
3538
3539         sys_socket: Ensure ss_family field on AIX.
3540         * lib/sys_socket.in.h (ss_family): New macro definition.
3541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3542         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3543         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3544         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3545         * modules/sys_socket (Makefile.am): Substitute
3546         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3547         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3548
3549 2010-11-27  Bruno Haible  <bruno@clisp.org>
3550
3551         readline: Improve configure output.
3552         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3553         "checking for readline..." result understandable.
3554
3555 2010-11-27  Bruno Haible  <bruno@clisp.org>
3556
3557         *printf-posix: Detect a bug on Solaris 10/x86.
3558         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3559         for floating-point output.
3560         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3561         directive.
3562         * tests/test-snprintf-posix.h (test_function): Likewise.
3563         * tests/test-sprintf-posix.h (test_function): Likewise.
3564         * tests/test-vasprintf-posix.c (test_function): Likewise.
3565         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3566         * doc/posix-functions/printf.texi: Likewise.
3567         * doc/posix-functions/snprintf.texi: Likewise.
3568         * doc/posix-functions/sprintf.texi: Likewise.
3569         * doc/posix-functions/vfprintf.texi: Likewise.
3570         * doc/posix-functions/vprintf.texi: Likewise.
3571         * doc/posix-functions/vsnprintf.texi: Likewise.
3572         * doc/posix-functions/vsprintf.texi: Likewise.
3573         * doc/glibc-functions/obstack_printf.texi: Likewise.
3574         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3575
3576 2010-11-27  Bruno Haible  <bruno@clisp.org>
3577
3578         Fix link error when module libunistring-optional is in use.
3579         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3580         * modules/striconveha-tests (Makefile.am): Likewise.
3581
3582 2010-11-27  Bruno Haible  <bruno@clisp.org>
3583
3584         regex: Mention link dependencies.
3585         * modules/regex (Link): New section.
3586         * modules/rpmatch (Link): Likewise.
3587         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3588
3589 2010-11-27  Bruno Haible  <bruno@clisp.org>
3590
3591         ftoastr: Fix compilation error on Solaris.
3592         * lib/ftoastr.c: Include <config.h>.
3593
3594 2010-11-27  Bruno Haible  <bruno@clisp.org>
3595
3596         getloadavg: Update documentation.
3597         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3598
3599 2010-11-27  Bruno Haible  <bruno@clisp.org>
3600
3601         sys_socket: Fix test whether the functions are declared.
3602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3603         not <sys/select.h>.
3604
3605 2010-11-27  Bruno Haible  <bruno@clisp.org>
3606
3607         getpass: Make sure to get system declaration on some platforms.
3608         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3609         gl_USE_SYSTEM_EXTENSIONS.
3610         * modules/getpass (Depends-on): Add extensions.
3611
3612 2010-11-26  Bruno Haible  <bruno@clisp.org>
3613
3614         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3615         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3616         'iconv' module is present.
3617         (ICONV_CONST): New macro.
3618         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3619         ICONV_CONST.
3620         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3621         set ICONV_CONST.
3622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3623         here.
3624         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3625         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3626         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3627         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3628         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3629         present.
3630
3631 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3632
3633         ftoastr: comment fix
3634         * lib/ftoastr.c: "little" -> "little or no" in comment
3635
3636 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3637
3638         stdint: port to GCC 4.3 + OSX + Octave
3639         On this platform, stdint.h is buggy and defines int64_t to long
3640         long int.  The replacement defined it to long int, causing
3641         problems with C++ style name mangling.  Instead, trust the system
3642         definition if INT64_MAX is defined, and likewise for the unsigned
3643         variant.   Problem reported by Jarno Rajahalme in
3644         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3645         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3646         and don't mess with int64_t and INT64_MAX in this case.
3647         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3648
3649 2010-11-24  Bruno Haible  <bruno@clisp.org>
3650
3651         doc: Corrections regarding MacOS X 10.4 and 10.5.
3652         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3653         MacOS X.
3654         Reported by Simon Josefsson.
3655
3656 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3657
3658         Uninstall ".bin" files installed by relocwrapper.
3659         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3660         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3661         unless it is already there.
3662
3663 2010-11-21  Bruno Haible  <bruno@clisp.org>
3664
3665         Update for NetBSD 5.0.
3666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3667         NetBSD; the test fails on NetBSD 5.0.
3668         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3669         about NetBSD.
3670
3671 2010-11-21  Bruno Haible  <bruno@clisp.org>
3672
3673         Update for HP-UX 11.23 and HP-UX 11.31.
3674         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3675         HP-UX.
3676
3677 2010-11-21  Bruno Haible  <bruno@clisp.org>
3678
3679         Update for MacOS X 10.5.
3680         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3681         MacOS X; the test fails on MacOS X 10.5.8.
3682         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3683         about MacOS X.
3684
3685 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3686
3687         bootstrap: add bootstrap_sync option.
3688         See discussion at
3689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3690         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3691         * build-aux/bootstrap: Accept --bootstrap-sync to update
3692         bootstrap if it is not identical to the local gnulib's
3693         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3694         enable this by default.  Accept --no-bootstrap-sync to disable
3695         it.
3696
3697 2010-11-20  Bruno Haible  <bruno@clisp.org>
3698
3699         Ensure that <features.h> is included before __GLIBC__ is tested.
3700         * lib/printf-parse.h: Include <features.h>.
3701         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3702         Reported by Mike Frysinger <vapier@gentoo.org>.
3703
3704         Ensure that <features.h> is included before __GLIBC__ is tested.
3705         * lib/wchar.in.h: Include <features.h>.
3706         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3707         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3708         Reported by Mike Frysinger <vapier@gentoo.org>.
3709
3710         Ensure that <features.h> is included before __GLIBC__ is tested.
3711         * lib/arpa_inet.in.h: Include <features.h>.
3712         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3713         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3714         Reported by Mike Frysinger <vapier@gentoo.org>.
3715
3716         Ensure that <features.h> is included before __GLIBC__ is tested.
3717         * build-aux/link-warning.h: Include <features.h>.
3718         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3719         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3720         Reported by Mike Frysinger <vapier@gentoo.org>.
3721
3722         Ensure that <features.h> is included before __GLIBC__ is tested.
3723         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3724         Reported by Mike Frysinger <vapier@gentoo.org>.
3725
3726 2010-11-20  Bruno Haible  <bruno@clisp.org>
3727
3728         memmem: Fix autoconf test.
3729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3730
3731 2010-11-20  Bruno Haible  <bruno@clisp.org>
3732
3733         Port to uClibc.
3734         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3735         * lib/fcntl.in.h: Likewise.
3736         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3737         * lib/mbrtowc.c (mbrtowc): Likewise.
3738         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3739         * lib/strerror_r.c: Likewise.
3740         * lib/unistr/u8-strnlen.c: Likewise.
3741         * lib/vasnprintf.c (decimal_point_char): Likewise.
3742         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3743         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3745         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3746         * tests/test-sigaction.c (handler, main): Likewise.
3747         * lib/freading.h: Treat uClibc like a non-glibc platform.
3748         * lib/freading.c: Likewise.
3749         * lib/gettext.h: Likewise.
3750         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3751         Likewise.
3752         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3753         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3754         * lib/propername.c (proper_name_utf8): Likewise.
3755         * lib/spawn.in.h: Likewise.
3756         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3757         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3758         mem_cd_iconveh_internal): Likewise.
3759         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3760         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3761         strstr, strcasestr): Likewise.
3762         * lib/unicodeio.c (unicode_to_mb): Likewise.
3763         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3764         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3765         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3766         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3767         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3768         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3769         * lib/unistr/u8-stpncpy.c: Likewise.
3770         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3771         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3772         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3773         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3774         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3779         Likewise.
3780         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3781         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3785         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3786         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3787         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3788         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3789         * tests/test-striconveha.c (main): Likewise.
3790         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3791         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3792         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3793         * doc/posix-functions/getline.texi: Likewise.
3794         Reported by Mike Frysinger <vapier@gentoo.org>.
3795
3796 2010-11-20  Bruno Haible  <bruno@clisp.org>
3797
3798         nproc: Fix condition.
3799         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3800         HAVE_PTHREAD_AFFINITY_NP.
3801
3802 2010-11-20  Bruno Haible  <bruno@clisp.org>
3803
3804         Fix a comment.
3805         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3806
3807 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         ftoastr: don't assume snprintf
3810         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3811         Implement a subset of snprintf here, by using sprintf safely.
3812         * modules/ftoastr (Depends-on): Remove snprintf.
3813
3814 2010-11-19  Jim Meyering  <meyering@redhat.com>
3815
3816         test-rename.h: fix compilation failure
3817         * tests/test-rename.h (test_rename): Add omitted "}".
3818
3819 2010-11-17  Jim Meyering  <meyering@redhat.com>
3820
3821         maint.mk: add a URL discussing the no-@acronym policy
3822         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3823
3824 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3825
3826         ftoastr: depend on snprintf, improve comments
3827         * lib/ftoastr.c: Also mention Loitsch's draft.
3828         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3829         needed in the current implementation, but it might simplify
3830         speeding up the code later.
3831         * modules/ftoastr: Depend on snprintf; this improves portability.
3832         Suggested by Bruno Haible in the same email.
3833
3834         ftoastr: port to hosts lacking strtof and strtold
3835         Problem reported by Bruno Haible in
3836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3837         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3838         environment and strtold (and presumably strtof) are not available.
3839         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3840         (configure.ac): Require gl_C99_STRTOLD.
3841
3842 2010-11-18  Bruno Haible  <bruno@clisp.org>
3843
3844         c-strtold: Avoid link error on AIX 7.
3845         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3846         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3847         (gl_C_STRTOLD): Test whether strtold_l exists.
3848         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3849
3850 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         intprops: new macro INT_BITS_STRLEN_BOUND
3853         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3854         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3855         not exposed.  Also, it uses a slightly tighter bound than before;
3856         though this makes no practical difference, we might as well be as
3857         tight as we easily can.
3858
3859         ftoastr: new module, for lossless conversion of floats to short strings
3860         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3861         * modules/ftoastr: New files.
3862
3863 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3864
3865         bootstrap: port to Solaris sed
3866         * build-aux/bootstrap (get_version): Port to Solaris sed.
3867         See Ralf Wildenhues's note in
3868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3869
3870 2010-11-14  Jim Meyering  <meyering@redhat.com>
3871
3872         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3873         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3874         and move definition closer to sole use.
3875
3876 2010-11-13  Jim Meyering  <meyering@redhat.com>
3877
3878         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3879         Now we require at least autoconf-2.59, which means the work-around
3880         is no longer needed.
3881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3883         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3884         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3885         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3886
3887 2010-11-13  Bruno Haible  <bruno@clisp.org>
3888
3889         rename, renameat: Avoid test failures at NFS mounted locations.
3890         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3891         functions.
3892         (test_rename): Use assert_nonexistent.
3893         * tests/test-rename.c: Include <dirent.h>.
3894         * tests/test-renameat.c: Likewise.
3895         Reported by Gary V. Vaughan <gary@gnu.org>.
3896
3897         rename, renameat: Document Linux bug with NFS
3898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3899         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3900         * doc/posix-functions/renameat.texi: Likewise.
3901         Suggested by Eric Blake.
3902
3903 2010-11-13  Bruno Haible  <bruno@clisp.org>
3904
3905         rename test: Add comments.
3906         * tests/test-rename.h (test_rename): Add structure and comments.
3907
3908 2010-11-13  Eric Blake  <eblake@redhat.com>
3909
3910         maintainer-makefile: cover a few more files
3911         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3912         scripts generated within C files, for libvirt.
3913
3914 2010-11-13  Bruno Haible  <bruno@clisp.org>
3915
3916         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3917         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3918         character, return the number of bytes that belong together, not always
3919         1.
3920         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3921         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3922         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3923         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3924         number of bytes of an invalid character.
3925         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3926         (main): Invoke it.
3927         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3928         results.
3929         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3930         malformed byte sequences.
3931         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3932         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3933         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3934         Reported by Ben Pfaff and Paolo Bonzini.
3935
3936 2010-11-13  Bruno Haible  <bruno@clisp.org>
3937
3938         openat: Work around glibc bug with fchownat() and empty file names.
3939         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3940         (gl_FUNC_FCHOWNAT): Invoke it.
3941         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3942         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3943         Reported by Gary V. Vaughan <gary@gnu.org>.
3944
3945 2010-11-13  Bruno Haible  <bruno@clisp.org>
3946
3947         openat: Ensure autoconf macro ordering.
3948         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3949         gl_USE_SYSTEM_EXTENSIONS.
3950         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3951
3952 2010-11-13  Bruno Haible  <bruno@clisp.org>
3953
3954         Update comments.
3955         * lib/unistr/u8-check.c: Update file name in comments.
3956         * lib/unistr/u8-mblen.c: Likewise.
3957         * lib/unistr/u8-prev.c: Likewise.
3958         * lib/unistr/u8-strmblen.c: Likewise.
3959         * lib/unistr/u8-strmbtouc.c: Likewise.
3960
3961 2010-11-13  Jim Meyering  <meyering@redhat.com>
3962
3963         tests: avoid test failure on Solaris 10 due to lack of PATH export
3964         * tests/test-update-copyright.sh: Don't forget to export PATH.
3965
3966         init.sh: ensure that IFS is defined, just in case...
3967         * tests/init.sh (setup_): Ensure that IFS is defined,
3968         so that saving and restoring it works as expected.  This
3969         appears to be useful at least for an old version of dash
3970         from a long time ago (RH 6).  See here for details:
3971         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3972
3973         maint.mk: tighten "test a == b" check
3974         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3975         test to files that contain something like #!/bin/sh.
3976         Without this, coreutils would get two false positives in
3977         the comments of C source files.
3978
3979 2010-11-12  Eric Blake  <eblake@redhat.com>
3980
3981         bootstrap: fix typo in previous attempt
3982         * build-aux/bootstrap (buildreq): Correct the grouping.
3983         Reported by Paul Eggert.
3984
3985         maintainer-makefile: prohibit test x == x
3986         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3987         Based on a report by Matthias Bolte.
3988
3989         bootstrap: allow FreeBSD gzip
3990         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3991         which has no '.' and goes to stderr.
3992         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3993         Reported by Matthias Bolte.
3994
3995         maintainer-makefile: check for i18n setup
3996         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3997         will likely work.
3998
3999 2010-11-12  Bruno Haible  <bruno@clisp.org>
4000
4001         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4002         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4003         * lib/nanosleep.c (nanosleep): Likewise.
4004
4005 2010-11-11  Bruno Haible  <bruno@clisp.org>
4006
4007         fcntl-h: Fix for use of C++ on glibc systems.
4008         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4009         also on glibc systems in C++ mode.
4010         Reported by Gary V. Vaughan <gary@gnu.org>.
4011
4012 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4013
4014         mknod: avoid false failure with dash
4015         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4016
4017 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4018
4019         unlink: Fix "is it should" typo in diagnostic.
4020         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4022
4023 2010-11-11  Bruno Haible  <bruno@clisp.org>
4024
4025         Tests for module 'strerror_r-posix'.
4026         * modules/strerror_r-posix-tests: New file.
4027         * tests/test-strerror_r.c: New file.
4028         * tests/test-string-c++.cc: Check the signature of strerror_r.
4029
4030         New module 'strerror_r-posix'.
4031         * lib/string.in.h (strerror_r): New declaration.
4032         * lib/strerror_r.c: New file.
4033         * m4/strerror_r.m4: New file.
4034         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4035         of strerror_r.
4036         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4037         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4038         * modules/strerror_r-posix: New file.
4039         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4040         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4041         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4042         portability problems.
4043
4044 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4045
4046         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4047         line is also considered for output. Quoted function name in shell
4048         command, so temporary files for functions like MyClass::operator()
4049         are removed correctly without errors.
4050
4051 2010-11-09  Bruno Haible  <bruno@clisp.org>
4052
4053         * doc/posix-functions/strerror.texi: List more failing platforms.
4054
4055         * doc/posix-functions/strerror.texi: Add a comment.
4056
4057 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4058
4059         fdopendir: fix bug on MacOS X when low on file descriptors
4060
4061         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4062         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4063         All callers changed.
4064         (fdopendir): Invoke save_cwd at the top level, not after using
4065         multiple dup() calls to use up file descriptors.  Then retry
4066         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4067         less than the maximum number of open file descriptors, because
4068         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4069         on Mac OS X 10.6.4 for tar 1.24
4070         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4071         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4072         and for tar 1.25
4073         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4074
4075 2010-11-07  Bruno Haible  <bruno@clisp.org>
4076
4077         vasnprintf: Support I flag on glibc systems.
4078         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4079         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4080         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4081         snprintf function.
4082         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4083         glibc systems.
4084         * tests/test-vasnprintf-posix3.c: New file.
4085         * modules/vasnprintf-posix-tests (Files): Add it.
4086         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4087
4088 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4089
4090         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4091         * MODULES.html.sh: For compiler warnings, use name
4092         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4093
4094 2010-11-05  Eric Blake  <eblake@redhat.com>
4095
4096         ceil, floor: avoid spurious failure with icc
4097         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4098         [denormals-as-zero] when optimizing without -mieee-fp option.
4099         * tests/test-floorf2.c (floorf_reference): Likewise.
4100         * tests/test-ceilf1.c (dummy): New function.
4101         (main): Use it to outsmart icc's optimization.
4102         * tests/test-floorf1.c (dummy, main): Likewise.
4103
4104         tests: require working signbit
4105         * modules/ceilf-tests (Depends-on): Add signbit.
4106         * modules/ceill-tests (Depends-on): Likewise.
4107         * modules/floorf-tests (Depends-on): Likewise.
4108         * modules/floorl-tests (Depends-on): Likewise.
4109         * modules/round-tests (Depends-on): Likewise.
4110         * modules/roundf-tests (Depends-on): Likewise.
4111         * modules/roundl-tests (Depends-on): Likewise.
4112         * modules/trunc-tests (Depends-on): Likewise.
4113         * modules/truncf-tests (Depends-on): Likewise.
4114         * modules/truncl-tests (Depends-on): Likewise.
4115
4116         strtod: work around icc bug
4117         * lib/strtod.c (minus_zero): Define to working value.
4118         (strtod): Use it to avoid icc bug.
4119
4120         copysign: enhance tests
4121         * modules/copysign-tests (Files): Add minus-zero.h.
4122         * tests/test-copysign.c (main): Also test zeros.
4123
4124 2010-11-04  Eric Blake  <eblake@redhat.com>
4125
4126         ceil, floor, round, trunc: enhance tests of -0
4127         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4128         * tests/test-ceill.c (main): Likewise.
4129         * tests/test-floorf1.c (main): Likewise.
4130         * tests/test-floorl.c (main): Likewise.
4131         * tests/test-round1.c (main): Likewise.
4132         * tests/test-roundf1.c (main): Likewise.
4133         * tests/test-roundl.c (main): Likewise.
4134         * tests/test-trunc1.c (main): Likewise.
4135         * tests/test-truncf1.c (main): Likewise.
4136         * tests/test-truncl.c (main): Likewise.
4137
4138 2010-11-04  Eric Blake  <eblake@redhat.com>
4139
4140         frexp, tests: work around ICC bug with -zero
4141         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4142         works with more compilers.
4143         * tests/minus-zero.h: New file.
4144         * modules/ceilf-tests (Files): Include it.
4145         * modules/ceill-tests (Files): Likewise.
4146         * modules/floorf-tests (Files): Likewise.
4147         * modules/floorl-tests (Files): Likewise.
4148         * modules/frexp-nolibm-tests (Files): Likewise.
4149         * modules/frexp-tests (Files): Likewise.
4150         * modules/frexpl-nolibm-tests (Files): Likewise.
4151         * modules/frexpl-tests (Files): Likewise.
4152         * modules/isnan-tests (Files): Likewise.
4153         * modules/isnand-nolibm-tests (Files): Likewise.
4154         * modules/isnand-tests (Files): Likewise.
4155         * modules/isnanf-nolibm-tests (Files): Likewise.
4156         * modules/isnanf-tests (Files): Likewise.
4157         * modules/isnanl-nolibm-tests (Files): Likewise.
4158         * modules/isnanl-tests (Files): Likewise.
4159         * modules/round-tests (Files): Likewise.
4160         * modules/roundf-tests (Files): Likewise.
4161         * modules/roundl-tests (Files): Likewise.
4162         * modules/ldexpl-tests (Files): Likewise.
4163         * modules/signbit-tests (Files): Likewise.
4164         * modules/snprintf-posix-tests (Files): Likewise.
4165         * modules/sprintf-posix-tests (Files): Likewise.
4166         * modules/strtod-tests (Files): Likewise.
4167         * modules/trunc-tests (Files): Likewise.
4168         * modules/truncf-tests (Files): Likewise.
4169         * modules/truncl-tests (Files): Likewise.
4170         * modules/vsnprintf-posix-tests (Files): Likewise.
4171         * modules/vsprintf-posix-tests (Files): Likewise.
4172         * modules/vasnprintf-posix-tests (Files): Likewise.
4173         * modules/vasprintf-posix-tests (Files): Likewise.
4174         * tests/test-ceilf1.c (main): Use it.
4175         * tests/test-ceill.c (main): Likewise.
4176         * tests/test-floorf1.c (main): Likewise.
4177         * tests/test-floorl.c (main): Likewise.
4178         * tests/test-frexp.c (main): Likewise.
4179         * tests/test-frexpl.c (main): Likewise.
4180         * tests/test-isnan.c (main): Likewise.
4181         * tests/test-isnand.h (main): Likewise.
4182         * tests/test-isnanf.h (main): Likewise.
4183         * tests/test-isnanl.h (main): Likewise.
4184         * tests/test-ldexpl.c (main): Likewise.
4185         * tests/test-round.c (main): Likewise.
4186         * tests/test-roundf.c (main): Likewise.
4187         * tests/test-roundl.c (main): Likewise.
4188         * tests/test-signbit.c (test_signbitf, test_signbitd)
4189         (test_signbitl): Likewise.
4190         * tests/test-snprintf-posix.h (test_function): Likewise.
4191         * tests/test-sprintf-posix.h (test_function): Likewise.
4192         * tests/test-strtod.c (main): Likewise.
4193         * tests/test-trunc1.c (main): Likewise.
4194         * tests/test-truncf1.c (main): Likewise.
4195         * tests/test-truncl.c (main): Likewise.
4196
4197         isnanl: work around icc bug
4198         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4199
4200 2010-11-03  Eric Blake  <eblake@redhat.com>
4201
4202         tests: fix compiler warnings
4203         * tests/test-getopt.h (test_getopt): Fix condition.
4204         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4205         * tests/test-pipe2.c (main): Likewise.
4206         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4207
4208         utimens: fix broken m4 test
4209         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4210
4211 2010-10-28  Bruno Haible  <bruno@clisp.org>
4212
4213         posix_spawn*, getdtablesize: Relax license.
4214         * modules/posix_spawn (License): Change to LGPLv2+.
4215         * modules/posix_spawnp (License): Likewise.
4216         * modules/posix_spawn-internal (License): Likewise.
4217         * modules/posix_spawnattr_init (License): Likewise.
4218         * modules/posix_spawnattr_getflags (License): Likewise.
4219         * modules/posix_spawnattr_setflags (License): Likewise.
4220         * modules/posix_spawnattr_getpgroup (License): Likewise.
4221         * modules/posix_spawnattr_setpgroup (License): Likewise.
4222         * modules/posix_spawnattr_getschedparam (License): Likewise.
4223         * modules/posix_spawnattr_setschedparam (License): Likewise.
4224         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4225         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4226         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4227         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4228         * modules/posix_spawnattr_getsigmask (License): Likewise.
4229         * modules/posix_spawnattr_setsigmask (License): Likewise.
4230         * modules/posix_spawnattr_destroy (License): Likewise.
4231         * modules/posix_spawn_file_actions_init (License): Likewise.
4232         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4233         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4234         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4235         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4236         * modules/getdtablesize (License): Likewise.
4237         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4238
4239 2010-10-26  Bruno Haible  <bruno@clisp.org>
4240
4241         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4242         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4243         Cygwin and mingw.
4244         Suggested by Eric Blake.
4245
4246 2010-10-26  Bruno Haible  <bruno@clisp.org>
4247
4248         stdio: Work around compilation error due to renameat() on Solaris 10.
4249         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4250         * lib/renameat.c: Don't include <unistd.h> here.
4251         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4252         Reported by Paul Eggert and Eric Blake.
4253
4254 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4255
4256         renameat: port to Solaris 10, which declares renameat in unistd.h
4257
4258         * lib/renameat.c: Include unistd.h before stdio.h, because
4259         Solaris 10 declares renameat in unistd.h.  Problem encountered
4260         when building GNU tar 1.24 on Solaris 10.
4261
4262 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4263
4264         fdopendir: fix C89 compilation
4265         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4266         compilers.
4267
4268 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         inttostr: simplify by removing unnecessary redundancy
4271         * lib/anytostr.c: Don't include verify.h.
4272         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4273         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4274         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4275         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4276         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4277         Likewise.
4278         * modules/inttostr (Depends-on): Remove 'verify'.
4279
4280 2010-10-23  Bruno Haible  <bruno@clisp.org>
4281
4282         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4283         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4284         Reported by Eric Blake.
4285
4286 2010-10-23  Bruno Haible  <bruno@clisp.org>
4287
4288         Tests: Fix LOCALE_JA on MirBSD 10.
4289         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4290         to an UTF-8 locale.
4291         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
4292         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4293         Reported by Eric Blake.
4294
4295 2010-10-21  Bruno Haible  <bruno@clisp.org>
4296
4297         nl_langinfo test: Avoid test failure on NetBSD 5.
4298         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
4299         Reported by Eric Blake.
4300
4301 2010-10-21  Eric Blake  <eblake@redhat.com>
4302
4303         c-stack: work around libsigsegv 2.8 bug
4304         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
4305         overflow on at least PowerPC64.
4306
4307 2010-10-17  Bruno Haible  <bruno@clisp.org>
4308
4309         userspec: Drop redundant file.
4310         * modules/userspec (Files): Remove lib/inttostr.h.
4311
4312 2010-10-17  Bruno Haible  <bruno@clisp.org>
4313
4314         nl_langinfo tests: Silence some warnings.
4315         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
4316         Reported by Jim Meyering.
4317
4318 2010-10-17  Bruno Haible  <bruno@clisp.org>
4319
4320         Make use of GCC's attribute __alloc_size__.
4321         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
4322         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
4323         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
4324         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
4325         __alloc_size__.
4326         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4327         Suggested by Jim Meyering.
4328
4329 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
4330
4331         bootstrap: anchor .gitignore entries.
4332         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
4333         with...
4334         (insert_vc_ignore): ... this new function, which prepends `/' to
4335         all .gitignore entries before passing them to
4336         insert_sorted_if_absent.
4337
4338 2010-10-16  Bruno Haible  <bruno@clisp.org>
4339
4340         nextafter: Fix configure check.
4341         * modules/nextafter (configure.ac): Correct expected prototype.
4342
4343 2010-10-16  Bruno Haible  <bruno@clisp.org>
4344
4345         termios: Update documentation.
4346         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4347
4348 2010-10-16  Bruno Haible  <bruno@clisp.org>
4349
4350         tests: Make them compile with TinyCC.
4351         * tests/test-strstr.c (main): Remove parentheses around array
4352         initializer.
4353
4354 2010-10-15  Eric Blake  <eblake@redhat.com>
4355
4356         ignore-value: make header idempotent
4357         * lib/ignore-value.h: Add double-inclusion guards.
4358         Reported by Stefan Berger.
4359
4360 2010-10-15  Jim Meyering  <meyering@redhat.com>
4361
4362         GNUmakefile: handle "stable" target, not "major"
4363         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4364         lists in maint.mk and announce-gen.  Without this, "make stable"
4365         would fail to ensure that $(VERSION) is up to date.
4366
4367 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4368
4369         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4370         & co.
4371
4372 2010-10-14  Bruno Haible  <bruno@clisp.org>
4373
4374         vasnprintf: Don't set errno to 0.
4375         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4376         block that sets it to 0.
4377         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4378
4379 2010-10-14  Bruno Haible  <bruno@clisp.org>
4380
4381         socketlib: Fix.
4382         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4383         gl_PREREQ_SYS_H_WINSOCK2.
4384         Reported by Ian Beckwith <ianb@erislabs.net>.
4385
4386 2010-10-13  Jim Meyering  <meyering@redhat.com>
4387
4388         test-select-stdin.c: avoid warn_unused_result warnings
4389         * tests/test-select-stdin.c: Include "macros.h".
4390         ASSERT that read and fflush succeed.
4391
4392 2010-10-13  Jim Meyering  <meyering@redhat.com>
4393
4394         git-version-gen: do require git-VC'd files in cwd
4395         * build-aux/git-version-gen: Reject a git version string
4396         if there are no commits associated with the current directory.
4397         This avoids an unlikely false-positive (unrelated dir whose parent
4398         repository also contains a tag matching v*), as pointed out
4399         by Giuseppe Scrivano in
4400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4401
4402 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         argv-iter: omit nonconforming declaration
4405         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4406         enum arg_iter_err declaration, which doesn't conform to C99.
4407         Solaris 10 cc warns about this.
4408
4409 2010-10-13  Eric Blake  <eblake@redhat.com>
4410
4411         termios: fix compilation on mingw
4412         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4413         (gl_TERMIOS_H): Adjust it on mingw.
4414         * modules/termios (Makefile.am): Substitute new key.
4415         * lib/termios.in.h (includes): Make include_next conditional.
4416         * doc/posix-headers/termios.texi (termios.h): Update
4417         documentation.
4418         Reported by Daniel P. Berrange.
4419
4420 2010-10-13  Jim Meyering  <meyering@redhat.com>
4421
4422         git-version-gen: don't require that .git/ be in the current dir
4423         * build-aux/git-version-gen: Adjust this script so that it works
4424         when run from any working directory beneath the top-level .git/-
4425         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4426         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4427
4428         test-select: avoid warn_unused_result warnings
4429         * tests/test-select.c: Include "macros.h".
4430         ASSERT that each call to read, write, and pipe succeeds.
4431         While not technically required, also check each "close".
4432         * modules/select-tests (Files): Add tests/macros.h.
4433
4434         test-symlinkat: remove declaration of unused local
4435         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4436
4437         test-inttostr: avoid shadowing warnings
4438         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4439         and use malloc rather than the stack for the same reason as
4440         mentioned in the comment justifying the other allocation.
4441
4442 2010-10-11  Bruno Haible  <bruno@clisp.org>
4443
4444         stdlib: Allow multiple gnulib generated replacements to coexist.
4445         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4446         Reported by Sam Steingold <sds@gnu.org>.
4447
4448 2010-10-11  Jim Meyering  <meyering@redhat.com>
4449
4450         fix a documentation typo
4451         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4452
4453 2010-10-11  Eric Blake  <eblake@redhat.com>
4454
4455         futimens: work around Solaris 11 bug
4456         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4457         * tests/test-futimens.h (test_futimens): Enhance, rather than
4458         weaken test.
4459         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4460
4461 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4462
4463         Indentation.
4464         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4465         higher-level operators more to the left.
4466
4467 2010-10-11  Jim Meyering  <meyering@redhat.com>
4468
4469         test-futimens: avoid unwarranted test failure on Solaris 5.11
4470         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4471         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4472         because it tries to dereference the NULL name argument.
4473
4474 2010-10-11  Bruno Haible  <bruno@clisp.org>
4475
4476         Indentation.
4477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4478         indentation.
4479
4480 2010-10-11  Jim Meyering  <meyering@redhat.com>
4481
4482         spawn.in.h: make indentation consistent with parentheses
4483         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4484         Make indentation consistent with parentheses.
4485
4486 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4487
4488         Fix mismatched parens in previous commit
4489         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4490         parens.
4491
4492 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4495
4496         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4497         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4498         * lib/malloca.c: Include "verify.h".
4499         (verify1): Remove, replacing with a verify call.
4500         * lib/relocwrapper.c (verify1): Likewise.
4501         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4502         Likewise.
4503         * modules/malloca (Depends-on): Add 'verify'.
4504         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4505         * modules/vasnprintf (Depends-on): Add 'verify'.
4506         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4508         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4509         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4510         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4512         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4513
4514         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4515
4516         Formerly the style was sometimes 2*X - 1, because the C standard
4517         was wrongly thought to disallow ?: in integral constant expressions.
4518         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4519         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4520         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4521         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4522         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4523         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4524         verify that time_t cannot be floating.
4525
4526 2010-10-08  Eric Blake  <eblake@redhat.com>
4527
4528         time: enforce recent POSIX ruling that time_t is integral
4529         * lib/time.in.h (__time_t_must_be_integral): Detect any
4530         problematic systems, allowing the rest of gnulib to assume POSIX.
4531
4532 2010-10-08  Jim Meyering  <meyering@redhat.com>
4533
4534         fdopendir: fix a bug on systems lacking openat and /proc support
4535         OpenBSD 4.7 is one such system.  The most noticeable effect was
4536         failure of any application making nontrivial use of fts: rm, du,
4537         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4538           ./rm: traversal failed: `a': Bad file descriptor
4539         Debugging that, you see that even though FD 6 was closed just
4540         prior to the opendir call in fd_clone_opendir, its resulting
4541         dir->dd_fd was 8, rather than the expected value of 6:
4542
4543         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4544         93                close (fd);
4545         (gdb) n
4546         94                dir = fd_clone_opendir (dupfd);
4547         (gdb) n
4548         95                saved_errno = errno;
4549         (gdb) p dir->dd_fd
4550         $11 = 8
4551
4552         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4553         The problem is that on OpenBSD, fd_clone_opendir has to resort
4554         to using the old-style save/restore CWD mechanism, due to its
4555         lack of openat/proc support, and *that* would steal the FD (6)
4556         that opendir was supposed to use.
4557
4558         The fix is to squirrel away the desired FD so that save_cwd uses a
4559         different one, and then free the dest FD right before calling opendir.
4560         That guarantees opendir will use the required file descriptor.
4561
4562         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4563
4564 2010-10-08  Bruno Haible  <bruno@clisp.org>
4565
4566         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4567         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4568
4569 2010-10-08  Bruno Haible  <bruno@clisp.org>
4570
4571         nanosleep: Make replacement POSIX compliant.
4572         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4573         is out of range.
4574         Reported by Jim Meyering.
4575
4576 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4577
4578         bootstrap: add hook for altering gnulib.mk, for Bison
4579         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4580         the Bison bootstrapping process can rewrite file names and variables
4581         in this file before later parts of 'bootstrap' use the file.
4582         Bison wants to include lib/gnulib.mk from the top-level makefile,
4583         so it needs the file names in this file to be relative to the top
4584         level, not relative to lib; plus it needs variable names to be
4585         rewritten.
4586         (slurp): Use the new function.
4587
4588         bootstrap: reformat for readability
4589         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4590
4591 2010-10-08  Eric Blake  <eblake@redhat.com>
4592
4593         docs: update cygwin progress
4594         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4595         1.7.7.
4596         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4597         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4598         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4599         * doc/posix-functions/carg.texi (carg): Likewise.
4600         * doc/posix-functions/cargf.texi (cargf): Likewise.
4601         * doc/posix-functions/casin.texi (casin): Likewise.
4602         * doc/posix-functions/casinf.texi (casinf): Likewise.
4603         * doc/posix-functions/casinh.texi (casinh): Likewise.
4604         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4605         * doc/posix-functions/catan.texi (catan): Likewise.
4606         * doc/posix-functions/catanf.texi (catanf): Likewise.
4607         * doc/posix-functions/catanh.texi (catanh): Likewise.
4608         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4609         * doc/posix-functions/ccos.texi (ccos): Likewise.
4610         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4611         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4612         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4613         * doc/posix-functions/cexp.texi (cexp): Likewise.
4614         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4615         * doc/posix-functions/cimag.texi (cimag): Likewise.
4616         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4617         * doc/posix-functions/clog.texi (clog): Likewise.
4618         * doc/posix-functions/clogf.texi (clogf): Likewise.
4619         * doc/posix-functions/conj.texi (conj): Likewise.
4620         * doc/posix-functions/conjf.texi (conjf): Likewise.
4621         * doc/posix-functions/cpow.texi (cpow): Likewise.
4622         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4623         * doc/posix-functions/cproj.texi (cproj): Likewise.
4624         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4625         * doc/posix-functions/creal.texi (creal): Likewise.
4626         * doc/posix-functions/crealf.texi (crealf): Likewise.
4627         * doc/posix-functions/csin.texi (csin): Likewise.
4628         * doc/posix-functions/csinf.texi (csinf): Likewise.
4629         * doc/posix-functions/csinh.texi (csinh): Likewise.
4630         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4631         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4632         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4633         * doc/posix-functions/ctan.texi (ctan): Likewise.
4634         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4635         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4636         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4637         * doc/posix-headers/complex.texi (complex.h): Likewise.
4638
4639 2010-10-07  Jim Meyering  <meyering@redhat.com>
4640
4641         parse-datetime: avoid compilation failure on OpenBSD 4.7
4642         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4643         This works around a compilation failure on OpenBSD 4.7:
4644         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4645
4646 2010-10-07  Eric Blake  <eblake@redhat.com>
4647
4648         docs: update cygwin progress
4649         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4650         1.7.6.
4651         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4652         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4653         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4654         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4655         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4656         Likewise.
4657         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4658         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4659         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4660         Likewise.
4661         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4662         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4663         Likewise.
4664         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4665         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4666         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4667         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4668         Likewise.
4669         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4670         Likewise.
4671         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4672
4673         docs: update parse-datetime history
4674         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4675         documentation of this function's history and alternatives.
4676
4677         cygwin: use more robust version check
4678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4679         exclude an eventual cygwin 1.9.1.
4680         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4682         (gl_FUNC_STRCASESTR): Likewise.
4683         Reported by Bruno Haible.
4684
4685 2010-10-06  Bruno Haible  <bruno@clisp.org>
4686
4687         string, sys_select: Avoid #including large headers unless necessary.
4688         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4689         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4690         OSF/1, BeOS, Haiku.
4691         Reported by Jim Meyering.
4692
4693 2010-10-05  Eric Blake  <eblake@redhat.com>
4694
4695         memmem, strstr, strcasestr: fix bug with long periodic needle
4696         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4697         periodic needle having false positive.
4698         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4699         and cygwin 1.7.7.
4700         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4702         (gl_FUNC_STRCASESTR): Likewise.
4703         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4704         * tests/test-memmem.c (main): Expose the bug.
4705         * tests/test-strcasestr.c (main): Likewise.
4706         * tests/test-strstr.c (main): Likewise.
4707         * tests/test-c-strcasestr.c (main): Likewise.
4708         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4709         * doc/posix-functions/strstr.texi (strstr): Likewise.
4710         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4711         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4712
4713 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4714
4715         parse-datetime: do some more renaming
4716         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4717         parse_datetime, not get_date.  Mention the renaming.
4718         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4719         in comments.
4720         * m4/bison.m4: Likewise.
4721
4722 2010-10-05  Eric Blake  <eblake@redhat.com>
4723
4724         parse-datetime: better name than get_date
4725         * NEWS: Reword the deprecation notice.
4726         * modules/get_date: Rename to modules/parse-datetime.
4727         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4728         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4729         * lib/get_date.y: Rename to lib/parse-datetime.y.
4730         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4731         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4732         * doc/getdate.texi: Provide fallback wrapper.
4733         * lib/getdate.h: Move guts, and wrap...
4734         * lib/parse-datetime.h: ...new file.
4735         * lib/parse-datetime.y (get_date): Rename...
4736         (parse_datetime): ...to this.
4737         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4738         (gl_PARSE_DATETIME): ...to this.
4739         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4740         documentation.
4741         * modules/getdate (Files): Provide fallback docs and header.
4742         (Notice, Depends-on): Update references.
4743         * tests/test-parse-datetime.c: Likewise.
4744         * DEPENDENCIES: Likewise.
4745         * MODULES.html.sh (Date and time <time.h>): Likewise.
4746         * doc/parse-datetime.texi (Date input formats)
4747         (Authors of parse_datetime): Likewise.
4748         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4749         (Include): Likewise.
4750         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4751         * gnulib-tool: Likewise.
4752         * m4/bison.m4 (gl_BISON): Likewise.
4753         Suggested by Bruno Haible.
4754
4755 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         more ports to Solaris tr, which needs [] around ranges
4758         * gnulib-tool: Solaris tr needs [] around ranges.
4759         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4760         * tests/test-pipe-filter-gi1.c (main): Likewise.
4761         * tests/test-pipe-filter-ii1.c (main): Likewise.
4762
4763 2010-10-05  Eric Blake  <eblake@redhat.com>
4764
4765         bootstrap: fix Solaris regression
4766         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4767         around ranges.
4768         Reported by Pádraig Brady.
4769
4770         bootstrap: work with pkg-config
4771         * build-aux/bootstrap (check_versions): Also transliterate - in
4772         prerequisite name.
4773         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4774         prerequisites that were already found, to avoid confusion.
4775         Reported by Justin Clift.
4776
4777         faccessat: remove unused wrappers
4778         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4779         presence of these wrappers dragged in -lgen on Solaris.
4780         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4781
4782 2010-10-05  Jim Meyering  <meyering@redhat.com>
4783
4784         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4785         * Makefile (sc_pragma_columns): New syntax-check rule.
4786
4787 2010-10-04  Bruno Haible  <bruno@clisp.org>
4788
4789         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4790         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4791         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4792         Reported by Bruce Korb and Eric Blake.
4793
4794 2010-10-04  Bruno Haible  <bruno@clisp.org>
4795
4796         threadlib: Make option --with-libpth-prefix work.
4797         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4798         use $LIBPTH, not just -lpth.
4799
4800 2010-10-04  Bruno Haible  <bruno@clisp.org>
4801
4802         Avoid line length limitation from HP NonStop system header files.
4803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4804         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4805         * lib/ctype.in.h: Likewise.
4806         * lib/dirent.in.h: Likewise.
4807         * lib/errno.in.h: Likewise.
4808         * lib/fcntl.in.h: Likewise.
4809         * lib/float.in.h: Likewise.
4810         * lib/getopt.in.h: Likewise.
4811         * lib/iconv.in.h: Likewise.
4812         * lib/inttypes.in.h: Likewise.
4813         * lib/langinfo.in.h: Likewise.
4814         * lib/locale.in.h: Likewise.
4815         * lib/math.in.h: Likewise.
4816         * lib/netdb.in.h: Likewise.
4817         * lib/netinet_in.in.h: Likewise.
4818         * lib/poll.in.h: Likewise.
4819         * lib/pthread.in.h: Likewise.
4820         * lib/pty.in.h: Likewise.
4821         * lib/sched.in.h: Likewise.
4822         * lib/se-selinux.in.h: Likewise.
4823         * lib/search.in.h: Likewise.
4824         * lib/signal.in.h: Likewise.
4825         * lib/spawn.in.h: Likewise.
4826         * lib/stdarg.in.h: Likewise.
4827         * lib/stddef.in.h: Likewise.
4828         * lib/stdint.in.h: Likewise.
4829         * lib/stdio.in.h: Likewise.
4830         * lib/stdlib.in.h: Likewise.
4831         * lib/string.in.h: Likewise.
4832         * lib/strings.in.h: Likewise.
4833         * lib/sys_file.in.h: Likewise.
4834         * lib/sys_ioctl.in.h: Likewise.
4835         * lib/sys_select.in.h: Likewise.
4836         * lib/sys_socket.in.h: Likewise.
4837         * lib/sys_stat.in.h: Likewise.
4838         * lib/sys_time.in.h: Likewise.
4839         * lib/sys_times.in.h: Likewise.
4840         * lib/sys_utsname.in.h: Likewise.
4841         * lib/sys_wait.in.h: Likewise.
4842         * lib/sysexits.in.h: Likewise.
4843         * lib/termios.in.h: Likewise.
4844         * lib/time.in.h: Likewise.
4845         * lib/unistd.in.h: Likewise.
4846         * lib/wchar.in.h: Likewise.
4847         * lib/wctype.in.h: Likewise.
4848         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4849         * modules/ctype (Makefile.am): Likewise.
4850         * modules/dirent (Makefile.am): Likewise.
4851         * modules/errno (Makefile.am): Likewise.
4852         * modules/fcntl-h (Makefile.am): Likewise.
4853         * modules/float (Makefile.am): Likewise.
4854         * modules/getopt-posix (Makefile.am): Likewise.
4855         * modules/iconv-h (Makefile.am): Likewise.
4856         * modules/inttypes (Makefile.am): Likewise.
4857         * modules/langinfo (Makefile.am): Likewise.
4858         * modules/locale (Makefile.am): Likewise.
4859         * modules/math (Makefile.am): Likewise.
4860         * modules/netdb (Makefile.am): Likewise.
4861         * modules/netinet_in (Makefile.am): Likewise.
4862         * modules/poll-h (Makefile.am): Likewise.
4863         * modules/pthread (Makefile.am): Likewise.
4864         * modules/pty (Makefile.am): Likewise.
4865         * modules/sched (Makefile.am): Likewise.
4866         * modules/search (Makefile.am): Likewise.
4867         * modules/selinux-h (Makefile.am): Likewise.
4868         * modules/signal (Makefile.am): Likewise.
4869         * modules/spawn (Makefile.am): Likewise.
4870         * modules/stdarg (Makefile.am): Likewise.
4871         * modules/stddef (Makefile.am): Likewise.
4872         * modules/stdint (Makefile.am): Likewise.
4873         * modules/stdio (Makefile.am): Likewise.
4874         * modules/stdlib (Makefile.am): Likewise.
4875         * modules/string (Makefile.am): Likewise.
4876         * modules/strings (Makefile.am): Likewise.
4877         * modules/sys_file (Makefile.am): Likewise.
4878         * modules/sys_ioctl (Makefile.am): Likewise.
4879         * modules/sys_select (Makefile.am): Likewise.
4880         * modules/sys_socket (Makefile.am): Likewise.
4881         * modules/sys_stat (Makefile.am): Likewise.
4882         * modules/sys_time (Makefile.am): Likewise.
4883         * modules/sys_times (Makefile.am): Likewise.
4884         * modules/sys_utsname (Makefile.am): Likewise.
4885         * modules/sys_wait (Makefile.am): Likewise.
4886         * modules/sysexits (Makefile.am): Likewise.
4887         * modules/termios (Makefile.am): Likewise.
4888         * modules/time (Makefile.am): Likewise.
4889         * modules/unistd (Makefile.am): Likewise.
4890         * modules/wchar (Makefile.am): Likewise.
4891         * modules/wctype (Makefile.am): Likewise.
4892
4893 2010-10-04  Bruno Haible  <bruno@clisp.org>
4894
4895         read-file tests: Avoid a test failure on NonStop Kernel.
4896         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4897         a regular file.
4898         Reported by Joachim Schmitz <schmitz@hp.com>.
4899
4900 2010-10-03  Bruno Haible  <bruno@clisp.org>
4901
4902         gnulib-tool: Fixes for --create-testdir with --libtool.
4903         * gnulib-tool (func_get_automake_snippet): Don't augment
4904         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4905         an executable.
4906         (func_create_testdir): Handle module 'alloca' like func_import.
4907         Reported by Bruce Korb <bruce.korb@gmail.com>.
4908
4909 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         Avoid some lines longer than 80 characters.
4912         * lib/stdint.in.h: Break long comment lines.
4913         * lib/math.in.h: Likewise.
4914         (_GL_NUM_UINT_WORDS): New macro, for readability.
4915         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4916         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4917         * lib/stdlib.in.h: Likewise.
4918         * lib/spawn.in.h: Likewise.
4919         * lib/sys_socket.in.h: Update an URL.
4920         * lib/sys_stat.in.h: Break long line.
4921
4922 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4923
4924         Improve pmccabe2html.
4925         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4926         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4927         when the sources change. Remove the line in the HTML about "Used
4928         ranges" (which implied that there might be other unused ranges),
4929         rename "Resume" to "Summary" (easier to understand for more users).
4930         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4931         styles, and some unnecessary blank lines.
4932
4933 2010-10-03  Bruno Haible  <bruno@clisp.org>
4934             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4935
4936         acl: Add support for ACLs on NonStop Kernel.
4937         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4938         Check whether the function aclsort() exists.
4939         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4940         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4941         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4942         (acl_nontrivial [HAVE_ACLSORT]: New function.
4943         (file_has_acl): Implement for NonStop Kernel.
4944         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4945         (qset_acl): Implement for NonStop Kernel.
4946         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4947         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4948         (main): Implement for NonStop Kernel.
4949         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4950         Kernel. Handle this flavor.
4951         * tests/test-set-mode-acl.sh: Likewise.
4952         * tests/test-copy-acl.sh: Likewise.
4953         * tests/test-copy-file.sh: Likewise.
4954
4955 2010-10-03  Bruno Haible  <bruno@clisp.org>
4956
4957         Info about ACLs on NonStop Kernel.
4958         * doc/acl-resources.txt: Add info about NonStop Kernel.
4959         References by Joachim Schmitz <schmitz@hp.com>.
4960
4961 2010-10-02  Bruno Haible  <bruno@clisp.org>
4962
4963         Define missing EDQUOT on NonStop Kernel.
4964         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4965         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4966         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4967         missing.
4968         * doc/posix-headers/errno.texi: Mention the NSK bug.
4969         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4970         Reported by Joachim Schmitz <schmitz@hp.com>.
4971
4972 2010-10-02  Bruno Haible  <bruno@clisp.org>
4973
4974         Update doc for POSIX:2008.
4975         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4976         Update URL of POSIX specification.
4977
4978 2010-10-02  Bruno Haible  <bruno@clisp.org>
4979
4980         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4981         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4982         from gnulib, not from Automake.
4983
4984 2010-10-02  Bruno Haible  <bruno@clisp.org>
4985
4986         New module 'system-posix'.
4987         * modules/system-posix: New file.
4988         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4989         module is present.
4990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4991         GNULIB_SYSTEM_POSIX.
4992         * modules/stdlib (Depends-on): Remove sys_wait.
4993         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4994         * doc/posix-functions/system.texi: Mention the new module.
4995         * doc/posix-headers/stdlib.texi: Likewise.
4996         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4997         define test_sys_wait_macros to a no-op.
4998         Reported by Sam Steingold <sds@gnu.org>.
4999
5000 2010-09-30  Bruno Haible  <bruno@clisp.org>
5001
5002         More renaming from 'getdate' to 'get_date'.
5003         * doc/get_date.texi: Renamed from doc/getdate.texi.
5004         * modules/get_date (Files): Update.
5005         * MODULES.html.sh (Date and time <time.h>): Update.
5006         * DEPENDENCIES: Update.
5007         * gnulib-tool: Update comment.
5008         * m4/bison.m4 (gl_BISON): Likewise.
5009         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5010
5011 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5012
5013         bootstrap: support ACLOCAL_FLAGS during aclocal
5014         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5015         can add additional -I dir for third-party .m4 files.
5016
5017 2010-09-30  Eric Blake  <eblake@redhat.com>
5018
5019         bootstrap: use glibtoolize on MacOS
5020         * build-aux/bootstrap (check_versions): Convert libtool into
5021         libtoolize.
5022         (tool search): Move libtool check earlier, and look for
5023         glibtoolize for MacOS.
5024         (gnulib_tool_options): Auto-add --libtool when appropriate.
5025         Reported by Justin Clift.
5026
5027         poll: fix typo that broke test on MacOS
5028         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5029         Reported by Justin Clift.
5030
5031         getdate: rename to get_date
5032         Note: getdate.h is not renamed, to minimize client impact.
5033         * modules/getdate: Mark obsolete.  Move old contents...
5034         * modules/get_date: ...to new module name.
5035         * modules/getdate-tests: Move...
5036         * modules/get_date-tests: ...here.
5037         * m4/getdate.m4: Move...
5038         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5039         * lib/getdate.y: Move...
5040         * lib/get_date.y: ...here.
5041         * tests/test-getdate.c: Move...
5042         * tests/test-get_date.c: ...here.
5043         * doc/posix-functions/getdate.texi (getdate): Update name.
5044         * NEWS: Mention the change.
5045
5046 2010-09-29  Bruno Haible  <bruno@clisp.org>
5047
5048         Separate the module 'waitpid' from the module 'sys_wait'.
5049         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5050         present.
5051         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5052         gl_MODULE_INDICATOR_FOR_TESTS.
5053         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5054         * modules/sys_wait (Depends-on): Remove waitpid.
5055         (Makefile.am): Substitute GNULIB_WAITPID.
5056         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5057         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5058         signature only if the 'waitpid' module is present.
5059         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5060         * NEWS: Mention the change.
5061         * modules/grantpt (Depends-on): Add waitpid.
5062         * modules/wait-process (Depends-on): Likewise.
5063
5064 2010-09-29  Bruno Haible  <bruno@clisp.org>
5065
5066         More tests for module 'sys_wait'.
5067         * modules/sys_wait-c++-tests: New file.
5068         * tests/test-sys_wait-c++.cc: New file.
5069         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5070         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5071
5072 2010-09-29  Bruno Haible  <bruno@clisp.org>
5073
5074         New module 'waitpid'.
5075         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5076         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5077         Don't include <process.h>.
5078         (waitpid): Declare only, using modern idiom.
5079         * m4/waitpid.m4: New file.
5080         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5081         * modules/waitpid: New file.
5082         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5083         (Makefile.am): Update.
5084         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5085
5086 2010-09-28  Bruno Haible  <bruno@clisp.org>
5087
5088         poll: Assume ANSI C.
5089         * lib/poll.c (poll): Use an ANSI C declaration.
5090
5091 2010-09-28  Bruno Haible  <bruno@clisp.org>
5092
5093         poll-h: Create poll.h on all platforms.
5094         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5095         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5096         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5097         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5098         (gl_REPLACE_POLL_H): Don't set POLL_H.
5099         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5100         * modules/poll-h (Depends-on): Add include_next.
5101         (Makefile.am): Create poll.h unconditionally. Substitute also
5102         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5103
5104 2010-09-28  Bruno Haible  <bruno@clisp.org>
5105
5106         Tests for module 'poll-h'.
5107         * modules/poll-h-c++-tests: New file.
5108         * tests/test-poll-h-c++.cc: New file.
5109
5110         Tests for module 'poll-h'.
5111         * modules/poll-h-tests: New file.
5112         * tests/test-poll-h.c: New file.
5113
5114 2010-09-28  Bruno Haible  <bruno@clisp.org>
5115
5116         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5117         * modules/poll-h (Depends-on): Add 'extensions'.
5118
5119 2010-09-28  Bruno Haible  <bruno@clisp.org>
5120
5121         New module 'poll-h'.
5122         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5123         (poll): Use modern idiom.
5124         * modules/poll-h: New file.
5125         * modules/poll (Files): Remove lib/poll.in.h.
5126         (Depends-on): Add poll-h.
5127         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5128         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5129         * m4/poll_h.m4: New file.
5130         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5131         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5132         and invoke gl_REPLACE_POLL_H.
5133         * lib/poll.c: Use common idiom.
5134         * tests/test-poll.c: Likewise.
5135         * doc/posix-headers/poll.texi: Mention the poll-h module.
5136         Suggested by Eric Blake.
5137
5138 2010-09-26  Bruno Haible  <bruno@clisp.org>
5139
5140         sys_wait: Implement WSTOPSIG.
5141         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5142         Reported by Simon Josefsson.
5143
5144 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5145
5146         stdlib, sys_wait: Avoid compilation error on mingw.
5147         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5148
5149 2010-09-26  Bruno Haible  <bruno@clisp.org>
5150
5151         stdlib tests: Avoid code duplication.
5152         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5153         * modules/sys_wait-tests (Files): Likewise.
5154         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5155         * tests/test-stdlib.c: Include test-sys_wait.h.
5156         (main): Invoke test_sys_wait_macros.
5157         * tests/test-sys_wait.c: Include test-sys_wait.h.
5158         (main): Invoke test_sys_wait_macros.
5159
5160 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5161
5162         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5163         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5164         sure Windows sockets are working before calling getaddrinfo.
5165         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5166         * doc/gnulib.texi (Windows sockets): Fix typo.
5167
5168 2010-09-25  Bruno Haible  <bruno@clisp.org>
5169
5170         Tests for module 'regex-quote'.
5171         * modules/regex-quote-tests: New file.
5172         * tests/test-regex-quote.c: New file.
5173
5174         New module 'regex-quote'.
5175         * lib/regex-quote.h: New file.
5176         * lib/regex-quote.c: New file.
5177         * modules/regex-quote: New file.
5178         Suggested by Reuben Thomas <rrt@sc3d.org>.
5179
5180 2010-09-24  Bruno Haible  <bruno@clisp.org>
5181
5182         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5183         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5184
5185 2010-09-23  Bruno Haible  <bruno@clisp.org>
5186
5187         setenv: Relax license.
5188         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5189         Blake.
5190         Requested by Eric Blake.
5191
5192 2010-09-22  Bruno Haible  <bruno@clisp.org>
5193
5194         termios: Relax license.
5195         * modules/termios (License): Change to LGPLv2+.
5196         Requested by Eric Blake.
5197
5198 2010-09-22  Bruno Haible  <bruno@clisp.org>
5199
5200         threadlib: Allow the package to change the default to 'no'.
5201         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5202         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5203         Reported by Paul Eggert.
5204
5205 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5206             Bruno Haible  <bruno@clisp.org>
5207
5208         Fix endless loop in mbmemcasecoll.
5209         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5210         byte.
5211         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5212
5213 2010-09-22  Bruno Haible  <bruno@clisp.org>
5214
5215         Tests for module 'memcoll'.
5216         * modules/memcoll-tests: New file.
5217         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5218
5219         memcoll, xmemcoll: Clarify size vs. length.
5220         * modules/memcoll.c (memcoll0): Clarify specification.
5221         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5222         passed to collate_error.
5223
5224 2010-09-22  Bruno Haible  <bruno@clisp.org>
5225
5226         Tests for module 'memcasecmp'.
5227         * modules/memcasecmp-tests: New file.
5228         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5229
5230 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5231
5232         * lib/pthread.in.h: Add split double-inclusion guard, and include
5233         system <pthread.h> if there is one.  Use @@-style as in other
5234         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5235         pthread.h doesn't.
5236         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5237         (pthread_mutexattr_settype, pthread_mutex_trylock):
5238         New static inline functions, if there's no system <pthread.h>.
5239         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5240         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5241         Approximate with mutexes if the system lacks spinlocks, as in
5242         MacOS.
5243         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5244         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5245         @@-style.  Check for spinlocks separately.
5246         (gl_PTHREAD_DEFAULTS): New macro.
5247         * modules/pthread: Redo to use a more typical style for in.h files.
5248
5249 2010-09-21  Eric Blake  <eblake@redhat.com>
5250
5251         net_if: enhance tests
5252         * tests/test-net_if.c (main): Move signature checks earlier.
5253         Print failures to stderr.
5254         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5255         Document the bug that we do not yet fix.
5256
5257 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5258
5259         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5260         about gnulib, not GSS.
5261
5262 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5263
5264         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5265         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5266         for Emacs.
5267         * build-aux/pmccabe2html: Make Makefile.am example code more
5268         cut-and-paste friendly.
5269
5270 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5271
5272         * tests/test-net_if.c: New file.
5273         * modules/net_if-tests: New file.
5274
5275 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         pthread: add pthread_spin_destroy
5278         * lib/pthread.in.h (pthread_spin_destroy): New function.
5279
5280 2010-09-19  Bruno Haible  <bruno@clisp.org>
5281
5282         gnulib-tool: Fix --help output.
5283         * gnulib-tool (func_usage): Fix help message.
5284         Reported by Reuben Thomas <rrt@sc3d.org>.
5285
5286 2010-09-18  Jim Meyering  <meyering@redhat.com>
5287
5288         maint.mk: avoid unexpanded \n in two diagnostics
5289         * top/maint.mk (sc_prohibit_always_true_header_tests):
5290         Don't use a literal \n in a halt=... assignment.  It would not be
5291         expanded, and the two \n bytes would appear in the diagnostic output
5292         rather than the desired newline.  Use halt=$$(printf ... instead.
5293         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5294
5295 2010-09-18  Bruno Haible  <bruno@clisp.org>
5296
5297         netinet_in: Doc tweak.
5298         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
5299         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5300
5301 2010-09-18  Jim Meyering  <meyering@redhat.com>
5302
5303         init.sh: correct an outdated comment
5304         * tests/init.sh (create_exe_shims_):  s/function/alias/
5305
5306         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
5307         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
5308         a file named "*.exe" is removed between the glob expansion and the
5309         processing of that oddly named file.
5310
5311 2010-09-17  Eric Blake  <eblake@redhat.com>
5312
5313         mirbsd: add some more support
5314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
5315         in BSD family.
5316         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
5317         devices as OpenBSD.
5318         * m4/host-os.m4 (mirbsd): Add MirBSD.
5319
5320         tests: fix unportable assumption on sys/wait.h
5321         * tests/test-sys_wait.c (main): Relax test.
5322         * tests/test-stdlib.c (main): Likewise.
5323
5324         init.sh: accomodate directory with no .exes
5325         * tests/init.sh: Accomodate directory containing only scripts.
5326
5327         tests: avoid compiler warning
5328         * tests/test-stdlib.c (main): Use the variable.
5329
5330         fdutimens, fdutimensat: update signature, again
5331         * lib/utimens.h (gl_futimens): Delete, and move signature...
5332         (fdutimens): ...here.
5333         (fdutimensat): Rearrange signature.
5334         (lutimensat): Rename variable for clarity.
5335         * lib/fdutimensat.c (fdutimensat): Update signature.
5336         * lib/utimens.c (fdutimens): Likewise.
5337         (gl_futimens): Delete.
5338         (utimens, lutimens): Update callers.
5339         * lib/futimens.c (futimens): Likewise.
5340         * tests/test-fdutimensat.c: Likewise.
5341         * tests/test-utimens.c: Likewise.
5342         * tests/test-futimens.h: Update comment.
5343         * NEWS: Mention this.
5344         Suggested by Paul Eggert.
5345
5346 2010-09-17  Bruno Haible  <bruno@clisp.org>
5347
5348         Take over the maintenance of some older macros from Autoconf.
5349         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5350         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5351         GNU Autoconf.
5352         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5353         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5354
5355 2010-09-17  Eric Blake  <eblake@redhat.com>
5356
5357         fdutimensat: drop atflag validation
5358         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5359         with valid fd, to close a race scenario where futimens is
5360         unsupported and FILE was replaced by a symlink.
5361         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5362         accordingly.
5363         Suggested by Paul Eggert.
5364
5365 2010-09-16  Bruno Haible  <bruno@clisp.org>
5366
5367         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5368         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5369
5370 2010-09-16  Bruno Haible  <bruno@clisp.org>
5371
5372         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5373         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5374         login_tty exists.
5375         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5376
5377 2010-09-16  Bruno Haible  <bruno@clisp.org>
5378
5379         login_tty: Make the replacement code work on BSD systems.
5380         * lib/login_tty.c: Include <sys/ioctl.h>.
5381         (login_tty): Use ioctl TIOCSCTTY when available.
5382         * modules/login_tty (Depends-on): Add sys_ioctl.
5383         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5384
5385 2010-09-16  Bruno Haible  <bruno@clisp.org>
5386
5387         login_tty: Stricter unit test.
5388         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5389         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5390         and tcgetsid() after login_tty.
5391         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5392
5393 2010-09-16  Bruno Haible  <bruno@clisp.org>
5394
5395         New module 'tcgetsid'.
5396         * lib/tcgetsid.c: New file.
5397         * m4/tcgetsid.m4: New file.
5398         * modules/tcgetsid: New file.
5399         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5400         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5401         GNULIB_TCGETSID, HAVE_TCGETSID.
5402         * lib/termios.in.h: Include <sys/types.h>.
5403         (tcgetsid): New declaration.
5404         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5405         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5406         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5407         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5408
5409 2010-09-16  Bruno Haible  <bruno@clisp.org>
5410
5411         Tests for module 'termios'.
5412         * modules/termios-c++-tests: New file.
5413         * modules/termios-tests: New file.
5414         * tests/test-termios-c++.cc: New file.
5415         * tests/test-termios.c: New file.
5416
5417         New module 'termios'.
5418         * modules/termios: New file.
5419         * lib/termios.in.h: New file.
5420         * m4/termios_h.m4: New file.
5421         * doc/posix-headers/termios.texi: Mention the new module.
5422
5423 2010-09-16  Eric Blake  <eblake@redhat.com>
5424
5425         fdutimensat: add an atflag parameter
5426         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5427         * lib/utimens.h (fdutimensat): Update prototype.
5428         * tests/test-fdutimensat.c: Adjust test to match.
5429         * NEWS: Document the change.
5430         Suggested by Paul Eggert.
5431
5432 2010-09-16  Bruno Haible  <bruno@clisp.org>
5433
5434         Fix typos in comments.
5435         * lib/striconveh.h: Fix typo in comment.
5436         * lib/login_tty.c (login_tty): Likewise.
5437
5438 2010-09-15  Bruno Haible  <bruno@clisp.org>
5439
5440         stdlib: clarify MirBSD WEXITSTATUS bug
5441         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5442         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5443
5444 2010-09-15  Eric Blake  <eblake@redhat.com>
5445
5446         stdlib: work around MirBSD WEXITSTATUS bug
5447         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5448         * modules/stdlib (Depends-on): Add sys_wait.
5449         * tests/test-sys_wait.c (main): Enhance test.
5450         * tests/test-stdlib.c (main): Likewise.
5451         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5452
5453         docs: mention MacOS issue with WEXITSTATUS(constant)
5454         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5455         issue.
5456         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5457
5458         strnlen: add tests
5459         * modules/strnlen-tests: New file.
5460         * tests/test-strnlen.c: Likewise.
5461
5462 2010-09-14  Bruno Haible  <bruno@clisp.org>
5463
5464         unistr/base: Avoid link errors when module 'libunistring' is also used.
5465         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5466         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5467         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5468         Declare also when HAVE_LIBUNISTRING is set.
5469         Reported by Pádraig Brady <P@draigbrady.com>.
5470
5471 2010-09-14  Eric Blake  <eblake@redhat.com>
5472
5473         test-rawmemchr: make more robust
5474         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5475         (Depends-on, configure.ac): Add needed prerequisites to use it.
5476         * modules/memchr-tests (Files, Depends-on, configure.ac):
5477         Likewise, to avoid implicit reliance on memchr module prereqs.
5478         * tests/test-memchr.c (main): Ensure proper masking.
5479         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5480         reads.
5481
5482         memchr: detect glibc Alpha bug
5483         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5484         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5485         Alpha.
5486         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5487         * tests/test-memchr.c (main): Enhance test.
5488         Reported by Nelson H. F. Beebe.
5489
5490 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5491
5492         fts, getcwd, glob: audit for dirfd returning -1
5493         * lib/fts.c (opendir): Remove #define; no longer used.
5494         (opendirat): New arg PDIR_FD.  All callers changed.
5495         (fts_build, _opendir2): Use new opendirat to avoid the need for
5496         dirfd, or for checking whether dirfd returns a negative value.
5497         Don't use opendir; always use openat followed by fdopendir.
5498         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5499         it.
5500         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5501         returns -1 here.
5502         * modules/fts (Depends-on): Remove dirfd.
5503         * modules/getcwd (Depends-on): Likewise.
5504
5505 2010-09-13  Eric Blake  <eblake@redhat.com>
5506
5507         float: fix broken MirBSD header
5508         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5509         * doc/posix-headers/float.texi (float.h): Document it.
5510
5511 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5512
5513         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5514         * lib/fts.c (opendirat): New arg extra_flags.
5515         (__opendir2): Use it to avoid following symlinks when opening
5516         a directory, if symlinks are not supposed to be followed.  See
5517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5518
5519         fdopendir: preserve argument fd before returning
5520         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5521         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5522         (fdopendir): Use them, arranging for FD to be open to the same
5523         directory that it was when it started.  (It might be temporarily
5524         closed while fdopendir is running, so this not thread- or
5525         signal-safe.)  Be careful to do the right thing even when file
5526         descriptors are scarce and dup fails with errno == EMFILE.  See
5527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5528
5529 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5530
5531         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5532         * NEWS: Document change.
5533         * m4/regex.m4: Disable test for regoff_t size.
5534
5535 2010-09-13  Jim Meyering  <meyering@redhat.com>
5536
5537         fts: don't operate on an invalid file descriptor after failed dup
5538         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5539         negative file descriptor.
5540
5541 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5542
5543         savedir: add streamsavedir, deprecate fdsavedir
5544         * NEWS: Mention deprecation of fdsavedir.
5545         * lib/savedir.c (streamsavedir): New extern function, whose name
5546         ends in "savedir" to be consistent with the others.  This differs
5547         from savedirstream in that it doesn't close its argument.  The
5548         next version of GNU tar will use this instead of fdsavedir, to
5549         avoid some race conditions and conserve file descriptors.
5550         (savedirstream): Reimplement as a wrapper around streamsavedir.
5551         (fdsavedir): Add a comment deprecating this function.  As far as
5552         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5553         * lib/savedir.h (streamsavedir): New decl.
5554         (fdsavedir): Add a comment deprecating this.
5555
5556 2010-09-10  Bruno Haible  <bruno@clisp.org>
5557
5558         langinfo: Fix last commit.
5559         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5560         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5562
5563 2010-09-10  Bruno Haible  <bruno@clisp.org>
5564
5565         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5566         * lib/progreloc.c (O_EXEC): Define fallback.
5567
5568 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5571         * NEWS: Document recent changes to fcntl-h.
5572         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5573         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5574         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5575         Similarly for O_SEARCH; this last was already true, but not documented.
5576         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5577         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5578         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5579         Likewise.
5580         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5581         is zero, not whether it is defined.
5582         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5583         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5584         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5585
5586 2010-09-10  Bruno Haible  <bruno@clisp.org>
5587
5588         langinfo, nl_langinfo: Fix for IRIX 5.3.
5589         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5590         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5591         HAVE_LANGINFO_YESEXPR.
5592         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5593         HAVE_LANGINFO_YESEXPR.
5594         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5595         HAVE_LANGINFO_T_FMT_AMPM is 0.
5596         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5597         HAVE_LANGINFO_YESEXPR is 0.
5598         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5599         NOEXPR.
5600         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5601         * doc/posix-functions/nl_langinfo.texi: Likewise.
5602         Reported by Eric Blake.
5603
5604 2010-09-10  Bruno Haible  <bruno@clisp.org>
5605
5606         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5607         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5608         on FreeBSD 8.0 and OpenBSD 4.6.
5609         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5610         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5611         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5612         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5613         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5614         ac_includes_default.
5615         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5616
5617 2010-09-09  Eric Blake  <eblake@redhat.com>
5618
5619         strsignal: work around NetBSD bug
5620         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5621         * lib/string.in.h (includes): Likewise.
5622         * doc/posix-functions/strsignal.texi (strsignal): Document the
5623         bug.
5624         Reported by Nelson H. F. Beebe.
5625
5626         gnulib-tool: work with NetBSD /bin/sh
5627         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5628         (func_get_description, func_get_comment, func_get_status)
5629         (func_get_notice, func_get_applicability, func_get_filelist)
5630         (func_get_dependencies, func_get_autoconf_early_snippet)
5631         (func_get_autoconf_snippet, func_get_automake_snippet)
5632         (func_get_include_directive, func_get_link_directive)
5633         (func_get_license, func_get_maintainer, func_import): Avoid
5634         shell syntax errors from parsing syntax extensions.
5635
5636 2010-09-09  Bruno Haible  <bruno@clisp.org>
5637
5638         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5639         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5640         a reliable way to determine whether the 'alias' command works.
5641
5642 2010-09-08  Jim Meyering  <meyering@redhat.com>
5643
5644         init.sh: penalize a set-x-impaired shell; don't disqualify it
5645         * tests/init.sh: Too many shells corrupt application stderr when
5646         you set -x, so we can't afford to disqualify them, since at least
5647         on Irix-6.5, that would disqualify all bourne shells.
5648         Instead, use a two-pass approach.
5649         On the first pass, try to find a shell that meets the stricter
5650         condition that set -x does not corrupt stderr.
5651         If no shell meets the stricter condition, retest each candidate
5652         shell, but without that extra condition.  Finally, when
5653         VERBOSE=yes is requested and set -x might cause trouble, simply
5654         issue a warning and refrain from enabling debug output.
5655
5656 2010-09-08  Eric Blake  <eblake@redhat.com>
5657
5658         unsetenv: fix OpenBSD bug
5659         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5660         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5661         documentation.
5662         Reported by Jim Meyering.
5663
5664         strtod: work around IRIX 6.5 bug
5665         * lib/strtod.c (strtod): Reparse number on shorter string if
5666         exponent parse was invalid.
5667         * tests/test-strtod.c (main): Add check for "0x1p 2".
5668         Reported by Tom G. Christensen.
5669
5670         getopt: optimize previous patch
5671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5672         empty variable.  Speed up awk script.
5673         Reported by Paolo Bonzini.
5674
5675 2010-09-08  Jim Meyering  <meyering@redhat.com>
5676
5677         test.sh: disqualify shells for which set -x corrupts stderr
5678         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5679         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5680         appear in stderr output.  For example, this command:
5681             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5682         prints "P=1" on those two systems:
5683
5684 2010-09-08  Bruno Haible  <bruno@clisp.org>
5685
5686         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5687         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5688         commands, because some shells ignore redirections when there is an
5689         error in the command lookup.
5690         Reported by Eric Blake.
5691
5692 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5693
5694         * lib/regex.h: Fix a mention of `regex_compile' (should be
5695         `re_compile_pattern').
5696         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5697         (re_set_registers): Correct name of parameter in comment.
5698
5699         * doc/regex.texi: Add documentation for missing syntax flags.
5700         Remove commented-out documentation of defunct syntax option
5701         RE_NO_EMPTY_ALTS.
5702         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5703         Add documentation of re_set_registers.
5704         Document trick to re-use a pattern buffer by setting fastmap manually.
5705         Update documentation of struct re_pattern_buffer per public members.
5706         Uncomment documentation of equivalence class operators and
5707         collating symbol operators, since they are now implemented,
5708         Explain leftmost-longest matching in relation to alternatives.
5709         Tidy documentation of substring matching.
5710         Remove POSIX documentation, which is done better in
5711         glibc, and refer the reader there. Keep BSD API documentation, as
5712         that is not readily available elsewhere.
5713
5714 2010-09-07  Eric Blake  <eblake@redhat.com>
5715
5716         getopt: handle POSIXLY_CORRECT set but not exported
5717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5718         export state of POSIXLY_CORRECT, due to bash set -o posix.
5719         Reported by Dustin J. Mitchell.
5720
5721 2010-09-05  Bruno Haible  <bruno@clisp.org>
5722
5723         gnulib-tool: Highlight the changed options.
5724         * gnulib-tool (func_usage): Display the --import, --add-import,
5725         --remove-import explanations in bold font.
5726
5727 2010-09-06  Karl Berry  <karl@gnu.org>
5728
5729         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5730
5731 2010-09-05  Bruno Haible  <bruno@clisp.org>
5732
5733         uniwidth/width: Update comment.
5734         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5735         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5736
5737 2010-09-05  Bruno Haible  <bruno@clisp.org>
5738
5739         isinf, isnan: Relax license.
5740         * modules/isinf (License): Change from GPL to LGPL, with consent from
5741         Ben Pfaff.
5742         * modules/isnan (License): Likewise.
5743         Requested by Ludovic Courtès.
5744
5745 2010-09-04  Bruno Haible  <bruno@clisp.org>
5746
5747         gnulib-tool: Help migration from --import to --add-import or --update.
5748         * gnulib-tool: Emit a verbose error message when --import is used
5749         without any module name.
5750
5751 2010-09-04  Bruno Haible  <bruno@clisp.org>
5752
5753         Update doc about gnulib-tool.
5754         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5755         'gnulib-tool --update' in more detail.
5756         Reported by Eric Blake.
5757
5758 2010-09-04  Bruno Haible  <bruno@clisp.org>
5759
5760         gnulib-tool: Change --import. New options --add/remove-import.
5761         * gnulib-tool: New options --add-import, --remove-import.
5762         (func_usage): Document them.
5763         (have_associative): Define always.
5764         (func_import): In import mode, don't merge the specified settings with
5765         the cached settings. Implement remove-import mode.
5766         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5767         Explain when to use them versus --import.
5768         (Simple update): Use --add-import instead of --import.
5769         * NEWS: Mention the change.
5770
5771 2010-09-04  Bruno Haible  <bruno@clisp.org>
5772
5773         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5774         separate gnulib.mk.
5775
5776 2010-09-04  Bruno Haible  <bruno@clisp.org>
5777
5778         gnulib-tool: Don't talk about CVS any more.
5779         * gnulib-tool (func_usage, func_import): Write "version control"
5780         instead of CVS.
5781
5782 2010-09-04  Jim Meyering  <meyering@redhat.com>
5783
5784         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5785         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5786         false positives (whose names may be ill-chosen) when searching
5787         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5788         would cause a false-positive.
5789
5790         avoid coreutils "make distcheck" failure
5791         Coreutils tests with an absolute build directory name that contains
5792         a space.  Not quoting this directory name caused a failure.
5793         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5794         * tests/test-vc-list-files-cvs.sh: Likewise.
5795
5796 2010-09-04  Bruno Haible  <bruno@clisp.org>
5797
5798         gnulib-tool: Avoid error when run in a package without Makefile.am.
5799         * gnulib-tool: When collecting the m4dirs in a package that does not
5800         have a Makefile.am, eliminate those directories that contain no
5801         gnulib-cache.m4. Fix expression that counts these directories.
5802
5803 2010-09-04  Bruno Haible  <bruno@clisp.org>
5804
5805         update-copyright test: Improve output when perl is missing or too old.
5806         * tests/test-update-copyright.sh: Move test of Perl version down after
5807         the test whether Perl exists. Provide an explanation relating Perl's
5808         error message to Automake's SKIP: message.
5809
5810 2010-09-04  Bruno Haible  <bruno@clisp.org>
5811
5812         Don't augment PATH in TESTS_ENVIRONMENT.
5813         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5814         set abs_aux_dir instead of augmenting PATH.
5815         * modules/vc-list-files-tests (Makefile.am): Likewise.
5816         * tests/test-update-copyright.sh: Augment PATH here.
5817         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5818         path_prepend_.
5819         * tests/test-vc-list-files-git.sh: Likewise.
5820
5821 2010-09-04  Jim Meyering  <meyering@redhat.com>
5822
5823         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5824         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5825
5826 2010-09-04  Bruno Haible  <bruno@clisp.org>
5827
5828         strdup: Fix compilation error in C++ mode.
5829         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5830         the macro.
5831
5832 2010-09-04  Bruno Haible  <bruno@clisp.org>
5833
5834         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5835         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5836         macro into a function.
5837         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5838
5839 2010-09-04  Bruno Haible  <bruno@clisp.org>
5840
5841         Set PATH_SEPARATOR the same way autoconf does.
5842         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5843         the value of PATH_SEPARATOR the same way autoconf-generated configure
5844         scripts do.
5845         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5846         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5847
5848 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5849
5850         Set PATH_SEPARATOR the same way autoconf does.
5851         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5852         the same way autoconf-generated configure scripts do.
5853         * posix-modules: Likewise.
5854
5855 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5856
5857         hash: fix safe_hasher const typo
5858         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5859         const; otherwise, there is a type error later.
5860
5861 2010-09-02  Jim Meyering  <meyering@redhat.com>
5862
5863         test-update-copyright.sh: require perl 5.8.0
5864         * tests/test-update-copyright.sh: Require 5.8.0,
5865         which Tom G. Christensen has confirmed is adequate,
5866         while 5.6.1 is not.
5867
5868 2010-09-02  Eric Blake  <eblake@redhat.com>
5869
5870         tests: init.sh improvements for re-exec'ing with zsh
5871         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5872         -vx through shell re-exec.
5873         Reported by Tom G. Christensen.
5874
5875         wctype: fix typo in previous commit
5876         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5877         Reported by Ludovic Courtès.
5878
5879 2010-09-02  Jim Meyering  <meyering@redhat.com>
5880
5881         test-update-copyright.sh: skip test if Perl is too old
5882         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5883         Reported by Tom G. Christensen.
5884
5885 2010-09-02  Bruno Haible  <bruno@clisp.org>
5886
5887         wctype: Avoid compilation error on IRIX 6.5.30.
5888         * lib/wctype.in.h (iswblank): Declare with a replacement if
5889         REPLACE_ISWBLANK is set.
5890         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5891         declared. Set REPLACE_ISWBLANK.
5892         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5893         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5894         * doc/posix-headers/wctype.texi: Likewise.
5895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5896
5897 2010-09-01  Bruno Haible  <bruno@clisp.org>
5898
5899         New module 'socketlib'.
5900         * modules/socketlib: New file.
5901         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5902         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5903         * modules/sockets (Depends-on): Add socketlib.
5904         Suggested by Sam Steingold <sds@gnu.org>.
5905
5906 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5907
5908         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5909
5910         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5911         when one needs search access to a directory but not read access.
5912         On systems where it is available, it works in some cases where
5913         O_RDONLY does not, namely on directories that are searchable but
5914         not readable, and which need only to be searchable.  If O_SEARCH
5915         is not available, fall back to the traditional method of using
5916         O_RDONLY.
5917
5918         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5919         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5920         when opening a directory that needs only to be searchable.
5921         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5922         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5923         * lib/openat-proc.c (openat_proc_name): Likewise.
5924         * lib/openat.c (openat_needs_fchdir): Likewise.
5925         * lib/save-cwd.c (save_cwd): Likewise.
5926         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5927
5928 2010-08-28  Bruno Haible  <bruno@clisp.org>
5929
5930         New module 'host-cpu-c-abi'.
5931         * modules/host-cpu-c-abi: New file.
5932         * m4/host-cpu-c-abi.m4: New file, based on part of
5933         clisp/src/m4/general.m4.
5934         Requested by Sam Steingold <sds@gnu.org>.
5935
5936 2010-08-31  Eric Blake  <eblake@redhat.com>
5937         and Jim Meyering  <meyering@redhat.com>
5938
5939         hash: factor, and guard against misbehaving hasher function
5940         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5941         of table->hasher's return value.  Also protect against a hash value
5942         so large that adding it to table->bucket results in a NULL pointer.
5943         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5944         Use it in place of open-coded check-and-abort.
5945
5946 2010-08-30  Bruno Haible  <bruno@clisp.org>
5947
5948         hash: silence spurious clang warning
5949         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5950         Reported by Eric Blake.
5951
5952 2010-08-30  Eric Blake  <eblake@redhat.com>
5953
5954         strstr, memmem, strcasestr: avoid leaked shell message
5955         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5956         FreeBSD.
5957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5958         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5959
5960         tests: silence clang warning
5961         * tests/test-malloca.c (do_allocation): Avoid dead store.
5962
5963 2010-08-29  Bruno Haible  <bruno@clisp.org>
5964
5965         gettext: Fix recent mistake.
5966         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5967
5968 2010-08-29  Bruno Haible  <bruno@clisp.org>
5969
5970         selinux-h: Offer a --without-selinux option.
5971         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5972         --without-selinux was specified, skip all tests and define
5973         HAVE_SELINUX_SELINUX_H to 0.
5974         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5975         set LIB_SELINUX to empty.
5976         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5977         gl_LIBSELINUX. If --without-selinux was specified, replace
5978         selinux/context.h.
5979         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5980
5981 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5982             Bruno Haible  <bruno@clisp.org>
5983
5984         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5985         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5986         of HAVE_REALLOC.
5987         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5988         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5989         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5990         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5991
5992 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5993             Bruno Haible  <bruno@clisp.org>
5994
5995         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5996         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5997         HAVE_CALLOC.
5998         * lib/xmalloc.c: Update accordingly.
5999         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6000         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6001         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6002
6003 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6004             Bruno Haible  <bruno@clisp.org>
6005
6006         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6007         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6008         HAVE_MALLOC.
6009         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6010         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6011         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6012
6013 2010-08-29  Bruno Haible  <bruno@clisp.org>
6014
6015         Update modules list.
6016         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6017         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6018         (String handling <string.h>): Add astrxfrm.
6019         (File system functions): Add readlinkat.
6020
6021 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6022
6023         Tests for module 'realloc-gnu'.
6024         * modules/realloc-gnu-tests: New file.
6025         * tests/test-realloc-gnu.c: New file.
6026
6027         Tests for module 'calloc-gnu'.
6028         * modules/calloc-gnu-tests: New file.
6029         * tests/test-calloc-gnu.c: New file.
6030
6031         Tests for module 'malloc-gnu'.
6032         * modules/malloc-gnu-tests: New file.
6033         * tests/test-malloc-gnu.c: New file.
6034
6035 2010-08-28  Bruno Haible  <bruno@clisp.org>
6036
6037         Rename module 'realloc' -> 'realloc-gnu'.
6038         * modules/realloc-gnu: New file, copied from modules/realloc.
6039         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6040         obsolete.
6041         * modules/mgetgroups (Depends-on): Update.
6042         * doc/posix-functions/realloc.texi: Update.
6043         * NEWS: Mention the change.
6044
6045         Rename module 'calloc' -> 'calloc-gnu'.
6046         * modules/calloc-gnu: New file, copied from modules/calloc.
6047         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6048         obsolete.
6049         * doc/posix-functions/calloc.texi: Update.
6050         * NEWS: Mention the change.
6051
6052         Rename module 'malloc' -> 'malloc-gnu'.
6053         * modules/malloc-gnu: New file, copied from modules/malloc.
6054         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6055         obsolete.
6056         * modules/argp (Depends-on): Update.
6057         * modules/regex (Depends-on): Update.
6058         * doc/posix-functions/malloc.texi: Update.
6059         * NEWS: Mention the change.
6060
6061 2010-08-28  Eric Blake  <eblake@redhat.com>
6062
6063         pread, pwrite: add missing dependency
6064         * modules/pread (Depends-on): Add extensions.
6065         * modules/pwrite (Depends-on): Likewise.
6066
6067 2010-08-28  Bruno Haible  <bruno@clisp.org>
6068
6069         unistr/u*-strchr: Fix tests dependencies.
6070         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6071         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6072         Reported by Ian Beckwith <ianb@erislabs.net>.
6073
6074 2010-08-28  Bruno Haible  <bruno@clisp.org>
6075
6076         read-file: Don't occupy too much unused memory.
6077         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6078
6079 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6080             Eric Blake  <eblake@redhat.com>
6081             Bruno Haible  <bruno@clisp.org>
6082
6083         read-file: Avoid memory reallocations with regular files.
6084         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6085         (fread_file): With regular files, use the remaining length as the
6086         initial buffer size.  Check against overflow.
6087         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6088         sys_stat.
6089
6090 2010-08-28  Bruno Haible  <bruno@clisp.org>
6091
6092         ftello: Relax license.
6093         * modules/ftello (License): Relax to LGPLv2+.
6094         Reported by Eric Blake.
6095
6096 2010-08-28  Bruno Haible  <bruno@clisp.org>
6097
6098         Avoid relocwrapper link errors due to gnulib replacement functions.
6099         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6100         function.
6101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6102
6103 2010-08-28  Bruno Haible  <bruno@clisp.org>
6104
6105         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6106         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6107         defined.
6108         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6109         Suggested by Eric Blake.
6110
6111 2010-08-28  Bruno Haible  <bruno@clisp.org>
6112
6113         sys_socket, netdb: Ensure socklen_t gets defined.
6114         * modules/sys_socket (Depends-on): Add socklen.
6115         * modules/netdb (Depends-on): Likewise.
6116         * modules/getaddrinfo (Depends-on): Remove socklen.
6117         * modules/getsockopt (Depends-on): Likewise.
6118         * modules/setsockopt (Depends-on): Likewise.
6119         * tests/test-sys_socket.c: Check that socklen_t is defined.
6120         * tests/test-netdb.c: Likewise.
6121         * m4/socklen.m4: Update comments.
6122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6123
6124 2010-08-27  Eric Blake  <eblake@redhat.com>
6125
6126         login_tty: add missing dependency
6127         * modules/login_tty (Depends-on): Add pty.
6128
6129 2010-08-26  Eric Blake  <eblake@redhat.com>
6130
6131         lib-symbol-versions: fix m4 quoting
6132         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6133         format for AC_LINK_IFELSE.
6134
6135         glob: fix compile test
6136         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6137
6138         btowc: fix missing file
6139         * modules/btowc (Files): Also ship locale-fr.m4.
6140
6141         lseek: fix link test
6142         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6143         AC_LINK_IFELSE.
6144
6145         include_next: silence autoconf 2.68 warning
6146         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6147         AC_COMPILE_IFELSE as special.
6148         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6149         autoconf < 2.68.
6150
6151         acl: fix compilation test
6152         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6153         AC_COMPILE_IFELSE.
6154
6155 2010-08-26  Bruno Haible  <bruno@clisp.org>
6156
6157         Modernize AC_TRY_RUN invocations.
6158         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6159         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6160         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6161         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6162         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6163         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6164         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6166         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6167         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6169         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6170         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6171         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6172         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6173         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6174         gl_MBRLEN_NUL_RETVAL): Likewise.
6175         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6176         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6177         Likewise.
6178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6179         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6180         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6181         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6182         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6183         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6184         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6185         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6186         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6187         Likewise.
6188         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6189         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6191         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6192         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6193         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6194         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6195         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6196         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6198
6199 2010-08-26  Bruno Haible  <bruno@clisp.org>
6200
6201         Modernize AC_TRY_LINK invocations.
6202         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6203         AC_TRY_LINK.
6204         * m4/argp.m4 (gl_ARGP): Likewise.
6205         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6206         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6207         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6208         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6209         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6210         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6211         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6212         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6213         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6214         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6215         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6216         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6217         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6218         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6219         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6220         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6221         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6222         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6223         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6224         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6225         Likewise.
6226         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6227         Likewise.
6228         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6229         Likewise.
6230         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6231         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6232         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6233         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6234         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6235         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6236         * m4/servent.m4 (gl_SERVENT): Likewise.
6237         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6238         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6239         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6240         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6241         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6242         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6243         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6244         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6245         * modules/tsearch-tests (configure.ac): Likewise.
6246
6247 2010-08-26  Bruno Haible  <bruno@clisp.org>
6248
6249         Modernize AC_TRY_COMPILE invocations.
6250         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6251         AC_TRY_COMPILE.
6252         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6253         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6254         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6255         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6256         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6257         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6258         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6259         * m4/lock.m4 (gl_LOCK): Likewise.
6260         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6261         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6262         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6264         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6265         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6266         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6268         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6269         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6270         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6271         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6272         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6273         extraneous semicolon.
6274
6275 2010-08-26  Jim Meyering  <meyering@redhat.com>
6276
6277         stat-time: relax license LGPL
6278         * modules/stat-time (License): Change from GPL to LGPL,
6279         with consent from all contributors, for use in libguile.
6280         Requested by Ludovic Courtès.
6281
6282 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6283
6284         poll: return immediately on POLLHUP.
6285         * lib/poll.c (poll): Always set timeout before wait_timeout is
6286         computed.
6287
6288 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6289
6290         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
6291         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
6292         rmdir ("dir/.//"), unlinkat.
6293
6294 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6295
6296         stdbool: avoid spurious failure with modern xlc
6297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6298
6299 2010-08-24  Bruno Haible  <bruno@clisp.org>
6300
6301         getloadavg: simplify code
6302         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
6303         gl_have_func. Update comments.
6304
6305 2010-08-24  Eric Blake  <eblake@redhat.com>
6306
6307         getloadavg: don't define SVR4 on cygwin
6308         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
6309         only define SVR4 when -lkvm is required.
6310         Reported by Yaakov Selkowitz.
6311
6312 2010-08-24  Bruno Haible  <bruno@clisp.org>
6313
6314         priv-set: fix comment
6315         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
6316
6317 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6318
6319         priv-set: fix comments
6320         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
6321         to match code, as suggested by David Bartley in:
6322         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
6323
6324 2010-08-23  Eric Blake  <eblake@redhat.com>
6325
6326         stdbool: avoid rejecting clang
6327         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6328         * tests/test-stdbool.c: Enable more tests if using the system
6329         <stdbool.h> instead of the gnulib replacement.
6330         (main): Move xlc bug test to a runtime test for all compilers.
6331         Reported by Anders Kaseorg.
6332
6333         argz: fix shell quoting issue
6334         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6335         Reported by Charles Wilson.
6336
6337 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6338             Erik Faye-Lund <kusmabite@gmail.com>
6339
6340         poll, select: handle ERROR_BROKEN_PIPE.
6341         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6342         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6343         * lib/select.c (win32_compute_revents): Do not mark a pipe
6344         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6345
6346 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6347
6348         fts: allow compilation with C++
6349         * lib/fts_.h: Specify extern "C" linkage with C++.
6350
6351 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6352
6353         Fix gnulib-tool sed script de-commentation for AIX sed.
6354         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6355         sed.
6356
6357 2010-08-17  Eric Blake  <eblake@redhat.com>
6358
6359         test-stddef: test for (some) offsetof bugs
6360         * tests/test-stddef.c: Enhance test to ensure correct type of
6361         offsetof.
6362         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6363         that we are not fixing at this time.
6364
6365 2010-08-15  Bruno Haible  <bruno@clisp.org>
6366
6367         stpncpy: Allow stpncpy to be defined as a macro.
6368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6369         if it's already correctly declared.
6370         * lib/string.in.h (stpncpy): Undefine before redefining.
6371         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6372
6373 2010-08-14  Bruno Haible  <bruno@clisp.org>
6374
6375         Rename module 'memxfrm' to 'amemxfrm'.
6376         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6377         (amemxfrm): Renamed from memxfrm.
6378         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6379         (amemxfrm): Renamed from memxfrm.
6380         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6381         * NEWS: Mention the change.
6382         * MODULES.html.sh (String handling <string.h>): Update.
6383         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6384         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6385         * lib/unicase/u16-casexfrm.c: Likewise.
6386         * lib/unicase/u32-casexfrm.c: Likewise.
6387         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6388         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6389         * lib/uninorm/u16-normxfrm.c: Likewise.
6390         * lib/uninorm/u32-normxfrm.c: Likewise.
6391         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6392         memxfrm.
6393         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6394         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6395         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6396         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6397         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6398         Suggested by Paul Eggert.
6399
6400 2010-08-14  Bruno Haible  <bruno@clisp.org>
6401
6402         Tests for module 'astrxfrm'.
6403         * modules/astrxfrm-tests: New file.
6404         * tests/test-astrxfrm.c: New file.
6405
6406         New module 'astrxfrm'.
6407         * lib/astrxfrm.h: New file.
6408         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6409         * modules/astrxfrm: New file.
6410
6411 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6412
6413         regex: Tweak doc.
6414         * doc/regex.texi (Overview): Don't mention regex.c.
6415         (GNU Regular Expression Compiling): Likewise.
6416         (Match-end-of-line Operator): Mention 'not_eol'.
6417
6418 2010-08-14  Brian Gough  <bjg@gnu.org>
6419             Bruno Haible  <bruno@clisp.org>
6420
6421         git-merge-changelog: add doc relating to use with bzr and hg.
6422         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6423
6424 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6425
6426         pthread: fix pthread.h creation for srcdir != builddir
6427         * modules/pthread (Makefile.am): Fix the rule to work also in a
6428         non-srcdir build.
6429
6430 2010-08-13  Karl Berry  <karl@gnu.org>
6431
6432         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6433         * doc/posix-*/*: force line break before @url of POSIX
6434         specifications.
6435         Suggested by Werner Lemberg.
6436
6437 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         strtod: fix const diagnostic
6440         * lib/strtod.c (strtod): Don't assign const char * to char *,
6441         as this elicits a warning from GCC when warnings are enabled.
6442
6443 2010-08-10  Pádraig Brady <P@draigbrady.com>
6444         and Eric Blake  <eblake@redhat.com>
6445
6446         copy-acl: ignore ENOTSUP on HP-UX
6447         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6448         so that it is available for HP-UX.
6449         * lib/copy-acl.c (qcopy_acl): Use it.
6450         Reported by Patrick M. Callahan.
6451
6452 2010-08-10  Eric Blake  <eblake@redhat.com>
6453
6454         open, chown: relax license
6455         * modules/open (License): Change to LGPLv2+, with consent by all
6456         authors, for use in augeas.
6457         * modules/chown (License): Likewise.
6458         * modules/lchown (Likewise): Likewise.
6459         Requested by Adam Stokes.
6460
6461 2010-08-09  Karl Berry  <karl@gnu.org>
6462
6463         * build-aux/ar-lib: new file, import from Automake.
6464         * config/srclist.txt: autocheck for updates.
6465
6466 2010-08-09  Eric Blake  <eblake@redhat.com>
6467
6468         readlinkat: adjust client modules
6469         * modules/areadlinkat (Depends-on): Use readlinkat, not
6470         symlinkat.
6471         * modules/areadlinkat-with-size (Depends-on): Likewise.
6472
6473         mknod: be more vocal about danger of running tests as root
6474         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6475         root, since that is just asking for problems.
6476         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6477
6478         readlinkat: split into its own module
6479         * modules/symlinkat: Split readlinkat...
6480         * modules/readlinkat: ...into separate module.
6481         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6482         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6483         * lib/symlinkat.c (readlinkat): Move...
6484         * lib/readlinkat.c: ...into new file.
6485         * modules/symlinkat-tests: Split readlinkat test...
6486         * modules/readlinkat-tests: ...into separate module.
6487         * tests/test-symlinkat.c: Split...
6488         * tests/test-readlinkat.c: ...into new file.
6489         * NEWS: Document the split.
6490         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6491         * lib/unistd.in.h (readlinkat): Likewise.
6492         Suggested by Bruno Haible.
6493
6494 2010-08-08  Bruno Haible  <bruno@clisp.org>
6495
6496         memxfrm: Speed up.
6497         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6498         that usually only one call to strxfrm is necessary for each string
6499         part.
6500         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6501
6502 2010-08-07  Karl Berry  <karl@gnu.org>
6503
6504         * doc/posix-headers/limits.texi,
6505         * doc/posix-functions/malloc.texi,
6506         * doc/posix-functions/strsignal.texi: missing @item.
6507         * doc/ld-version-script.texi: spurious leading i.
6508         * doc/regex.texi (Interval Operators): no commas inside @var.
6509
6510 2010-08-01  Bruno Haible  <bruno@clisp.org>
6511
6512         Integrate the regex documentation.
6513         * doc/gnulib.texi: Define 'cn' index.
6514         (Regular expressions): New a chapter that includes regex.texi and
6515         regexprops-generic.texi.
6516         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6517         syntax.
6518
6519         Whitespace cleanup.
6520         * doc/regex.texi: Remove trailing spaces.
6521
6522         Add regex documentation.
6523         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6524         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6525         Written by Kathy A. Hargreaves and Karl Berry.
6526
6527 2010-08-01  Bruno Haible  <bruno@clisp.org>
6528
6529         link: Update documentation.
6530         * doc/posix-functions/link.texi: Update regarding Solaris.
6531
6532 2010-07-31  Bruno Haible  <bruno@clisp.org>
6533
6534         Update modules list.
6535         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6536         (String handling <string.h>): Add memcmp2, memxfrm.
6537         (Container data structures): Add xlist, xsublist, xoset.
6538         (Core language properties): Add alignof, unused-parameter.
6539         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6540         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6541         (Unibyte characters <ctype.h>): New section.
6542         (String handling <string.h>): New section.
6543         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6544         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6545         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6546         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6547         tan, tanh, tanl, y0, y1, yn.
6548         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6549         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6550         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6551         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6552         unlockpt, vdprintf, vdprintf-posix.
6553         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6554         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6555         xconcat-filename.
6556         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6557         getdtablesize, pipe2, pipe2-safer.
6558         (Security): New section.
6559         (Networking functions): Add accept4.
6560         (Signal handling): Add sigpipe.
6561         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6562         mbmemcasecoll.
6563         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6564         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6565         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6566         pipe-filter-ii.
6567         (Misc): Add argp-version-etc, login_tty, parse-duration.
6568
6569 2010-07-31  Bruno Haible  <bruno@clisp.org>
6570
6571         Improve doc in MODULES.html.
6572         * modules/linkat (Description): Add the word "function".
6573         * modules/mkfifo (Description): Likewise.
6574         * modules/mknod (Description): Likewise.
6575         * modules/remove (Description): Likewise.
6576         * modules/renameat (Description): Likewise.
6577         * modules/stat (Description): Likewise.
6578         * modules/symlink (Description): Likewise.
6579         * modules/unlink (Description): Likewise.
6580
6581 2010-07-31  Bruno Haible  <bruno@clisp.org>
6582
6583         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6584         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6585         option --enable/disable-c++ instead of --enable/disable-cxx.
6586         * NEWS: Mention the change.
6587
6588 2010-07-31  Bruno Haible  <bruno@clisp.org>
6589
6590         readlink, areadlink: Relax test a bit.
6591         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6592         alternative to ENOTDIR.
6593         * tests/test-areadlink.h (test_areadlink): Likewise.
6594         Reported by Rainer Tammer.
6595
6596 2010-07-31  Bruno Haible  <bruno@clisp.org>
6597
6598         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6599         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6600         character, perform the search using U_STRCHR.
6601         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6602         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6603         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6604         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6605         Suggested by Paolo Bonzini.
6606
6607 2010-07-31  Bruno Haible  <bruno@clisp.org>
6608
6609         unistr/u*-strstr: Fix dependencies.
6610         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6611         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6612         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6613
6614 2010-07-31  Bruno Haible  <bruno@clisp.org>
6615
6616         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6617         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6618         the beginning of the loop.
6619         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6620         cases in 'switch' statement.
6621
6622         unistr/u8-strchr: Fix several bugs.
6623         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6624         the string. When not found, return NULL, not a pointer near the end.
6625
6626         More tests for unistr/u8-strchr.
6627         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6628         that the function does not read past the first occurrence of the byte
6629         being searched.
6630         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6631         * tests/unistr/test-u16-strchr.c (main): New function.
6632         * tests/unistr/test-u32-strchr.c (main): New function.
6633
6634 2010-07-31  Bruno Haible  <bruno@clisp.org>
6635
6636         posix-modules: Ignore backup files of documentation files.
6637         * posix-modules: grep only through files named *.texi.
6638
6639 2010-07-31  Bruno Haible  <bruno@clisp.org>
6640
6641         symlinkat: Fix documentation.
6642         * doc/posix-functions/readlinkat.texi: Fix module name.
6643
6644 2010-07-31  Bruno Haible  <bruno@clisp.org>
6645
6646         fchownat: Replace also when chown has the trailing slash bug.
6647         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6648         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6649         introduced on 2010-04-10.
6650         Reported by Rainer Tammer.
6651
6652 2010-07-31  Bruno Haible  <bruno@clisp.org>
6653
6654         linkat: Work around AIX 7.1 bug.
6655         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6656         whether linkat handles trailing slash correctly. If not, replace linkat
6657         and define LINKAT_TRAILING_SLASH_BUG.
6658         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6659         check whether (fd1,file1) points to a directory if file1 or file2 ends
6660         in a slash. Code taken from lib/link.c.
6661         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6662         Reported by Rainer Tammer.
6663
6664 2010-07-31  Bruno Haible  <bruno@clisp.org>
6665
6666         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6667         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6668         This disables an xlc optimization that was causing wrong test results.
6669         Reported by Rainer Tammer.
6670
6671 2010-07-31  Bruno Haible  <bruno@clisp.org>
6672
6673         iconv: Work around AIX 6.1..7.1 bug.
6674         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6675         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6676         cross-compiling, guess no on all versions of AIX.
6677         Reported by Rainer Tammer.
6678
6679 2010-07-31  Bruno Haible  <bruno@clisp.org>
6680
6681         readlink: Relax test a bit.
6682         * tests/test-readlink.h (test_readlink): Allow different errno value
6683         when readlink is called with a file name that ends in / and refers to
6684         a file.
6685         Suggested by Eric Blake.
6686         Reported by Rainer Tammer.
6687
6688 2010-07-31  Bruno Haible  <bruno@clisp.org>
6689
6690         copysign: Does not require -lm on glibc systems.
6691         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6692         gl_COMMON_DOUBLE_MATHFUNC.
6693         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6694
6695 2010-07-31  Bruno Haible  <bruno@clisp.org>
6696
6697         duplocale: Work around AIX 7.1 bug.
6698         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6699         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6700         * lib/duplocale.c (rpl_duplocale): Update comment.
6701         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6702         Reported by Rainer Tammer.
6703
6704 2010-07-30  Bruno Haible  <bruno@clisp.org>
6705
6706         dirfd: Avoid link error on AIX 7.1.
6707         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6708         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6709         exist, set REPLACE_DIRFD.
6710         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6711         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6712         * doc/posix-functions/dirfd.texi: Update.
6713         Reported by Rainer Tammer.
6714
6715 2010-07-30  Eric Blake  <eblake@redhat.com>
6716
6717         strtod: next round of AIX fixes
6718         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6719         exponent.
6720         * tests/test-strtod.c (main): Enhance tests.
6721         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6722         Reported by Rainer Tammer.
6723
6724         futimens: fix configure check
6725         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6726         Reported by Bruno Haible.
6727
6728 2010-07-30  Bruno Haible  <bruno@clisp.org>
6729
6730         getline: Update regarding AIX.
6731         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6732         Reported by Rainer Tammer.
6733
6734 2010-07-30  Bruno Haible  <bruno@clisp.org>
6735
6736         wcwidth: Drop replacement on AIX 7.
6737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6738         AIX 7.
6739         Reported by Rainer Tammer.
6740
6741 2010-07-30  Bruno Haible  <bruno@clisp.org>
6742
6743         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6745         a 'char *'.
6746         Reported by Rainer Tammer.
6747
6748 2010-07-30  Bruno Haible  <bruno@clisp.org>
6749
6750         unlink: Update regarding AIX.
6751         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6752         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6753         Reported by Rainer Tammer.
6754
6755 2010-07-30  Bruno Haible  <bruno@clisp.org>
6756
6757         symlink: Update regarding AIX.
6758         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6759         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6760         Reported by Rainer Tammer.
6761
6762 2010-07-30  Bruno Haible  <bruno@clisp.org>
6763
6764         strndup: Update regarding AIX.
6765         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6766         AIX 7.
6767         Reported by Rainer Tammer.
6768
6769 2010-07-30  Bruno Haible  <bruno@clisp.org>
6770
6771         stat: Update regarding AIX.
6772         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6773         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6774         Reported by Rainer Tammer.
6775
6776 2010-07-30  Bruno Haible  <bruno@clisp.org>
6777
6778         truncl: Fix autoconf test.
6779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6780         whether truncl works.
6781         Reported by Rainer Tammer.
6782
6783 2010-07-30  Bruno Haible  <bruno@clisp.org>
6784
6785         round: Update regarding AIX.
6786         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6787         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6788         Reported by Rainer Tammer.
6789
6790 2010-07-30  Bruno Haible  <bruno@clisp.org>
6791
6792         rename: Update regarding AIX.
6793         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6794         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6795         Reported by Rainer Tammer.
6796
6797 2010-07-30  Bruno Haible  <bruno@clisp.org>
6798
6799         printf.m4: Update regarding AIX.
6800         * m4/printf.m4: Update comments regarding AIX.
6801         Reported by Rainer Tammer.
6802
6803 2010-07-30  Bruno Haible  <bruno@clisp.org>
6804
6805         iconv: Update regarding AIX.
6806         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6807         AIX 7.
6808         Reported by Rainer Tammer.
6809
6810 2010-07-30  Bruno Haible  <bruno@clisp.org>
6811
6812         getopt: Update regarding AIX.
6813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6814         no on AIX.
6815         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6816         Reported by Rainer Tammer.
6817
6818 2010-07-30  Bruno Haible  <bruno@clisp.org>
6819
6820         ldexpl; Update regarding AIX.
6821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6822         on AIX 7.
6823         Reported by Rainer Tammer.
6824
6825 2010-07-30  Bruno Haible  <bruno@clisp.org>
6826
6827         frexpl: Update regarding AIX.
6828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6829         on AIX 7.
6830         Reported by Rainer Tammer.
6831
6832 2010-07-30  Bruno Haible  <bruno@clisp.org>
6833
6834         open, fopen: Update regarding AIX.
6835         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6836         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6837         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6838         * doc/posix-functions/fopen.texi: Likewise.
6839         Reported by Rainer Tammer.
6840
6841 2010-07-30  Bruno Haible  <bruno@clisp.org>
6842
6843         chown: Update doc regarding AIX.
6844         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6845         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6846         Reported by Rainer Tammer.
6847
6848 2010-07-30  Eric Blake  <eblake@redhat.com>
6849
6850         strtod: fix bug in replacement function on AIX
6851         * lib/strtod.c (strtod): Special case broken "0x" parse in
6852         underlying strtod.
6853         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6854         * doc/posix-functions/strtod.texi (strtod): Likewise.
6855         Reported by Rainer Tammer.
6856
6857 2010-07-30  Bruno Haible  <bruno@clisp.org>
6858
6859         mbrlen: Fix cross-compilation guess for AIX.
6860         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6861         guess. Leftover from 2008-12-22.
6862
6863 2010-07-30  Bruno Haible  <bruno@clisp.org>
6864
6865         mbrtowc: Fix cross-compilation guess for AIX.
6866         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6867         guess. Leftover from 2008-12-21.
6868
6869 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6870
6871         init.sh: work around trap limitation of some shells
6872         * tests/init.sh (setup_): Move exit trap outside of shell function.
6873
6874 2010-07-29  Eric Blake  <eblake@redhat.com>
6875
6876         strtod: aid debugging
6877         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6878         understanding why strtod is rejected.
6879
6880 2010-07-28  Bruno Haible  <bruno@clisp.org>
6881
6882         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6883         * lib/unistr/u8-chr.c: Include <string.h>.
6884         * tests/unistr/test-u8-chr.c: Likewise.
6885         * tests/unistr/test-u16-chr.c: Likewise.
6886         * tests/unistr/test-u32-chr.c: Likewise.
6887         * tests/unistr/test-u8-strchr.c: Likewise.
6888         * tests/unistr/test-u16-strchr.c: Likewise.
6889         * tests/unistr/test-u32-strchr.c: Likewise.
6890         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6891         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6892         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6893         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6894
6895 2010-07-28  Bruno Haible  <bruno@clisp.org>
6896
6897         Use spaces for indentation, not tabs.
6898         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6899
6900 2010-07-27  Bruno Haible  <bruno@clisp.org>
6901
6902         mbspcasecmp: Fix function specification.
6903         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6904         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6905         Reported by Eric Blake <eblake@redhat.com>.
6906
6907 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6908
6909         timespec: use cast and not conditional, as truncation isn't possible
6910         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6911         instead of a conditional.  Comment about the situation in more detail.
6912         This undoes most of the 2009-10-29 patch.
6913
6914 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6915
6916         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6917         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6918         * lib/unistr/u8-strchr.c: Likewise.
6919         * modules/unistr/u8-chr: Depend on memchr.
6920
6921         unistr/u*-strchr: add tests
6922         * modules/unistr/u8-strchr-tests: New file.
6923         * modules/unistr/u16-strchr-tests: New file.
6924         * modules/unistr/u32-strchr-tests: New file.
6925         * tests/unistr/test-strchr.h: New file.
6926         * tests/unistr/test-u8-strchr.c: New file.
6927         * tests/unistr/test-u16-strchr.c: New file.
6928         * tests/unistr/test-u32-strchr.c: New file.
6929
6930         unistr/u*-chr: test multibyte sequences more
6931         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6932         test vector.
6933         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6934         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6935         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6936
6937         unistr/u*-chr: test multibyte sequences
6938         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6939
6940         unistr/u*-chr: prepare for multibyte tests
6941         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6942         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6943         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6944         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6945         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6946         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6947
6948 2010-07-18  Bruno Haible  <bruno@clisp.org>
6949
6950         unistr/u8-strchr: Optimize non-ASCII argument case.
6951         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6952         because the first byte often matches anyway.
6953         Reported by Pádraig Brady <P@draigbrady.com>.
6954
6955 2010-07-15  Karl Berry  <karl@gnu.org>
6956
6957         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6958
6959 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6960
6961         getcwd: on Solaris, work better if ancestors are inaccessible
6962         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6963         buffer and size, try again with a large buffer.  This works better
6964         on Solaris, since its getcwd succeeds even if the path to the root
6965         is inaccessible, and this is helpful in common cases such as .zfs
6966         hidden directories.  Problem reported by J Chapman Flack in
6967         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6968         Use system getcwd if it's declared, not merely if it's partly
6969         working; use the partly-working test only to avoid needless effort
6970         if the system getcwd fails.
6971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6972         comment that was already obsolete and is now even more obsolete.
6973         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6974         now might call strdup.
6975
6976 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6977
6978         pthread: Add enough so that coreutils/src/sort.c compiles.
6979         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6980         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6981         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6982         Include <sys/types.h>, in case it defines pthread_t.
6983         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6984         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6985         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6986         (pthread_rwlockattr_t, pthread_spinlock_t):
6987         New typedefs, if HAVE_PTHREAD_T is not defined.
6988         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6989         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6990         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6991         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6992         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6993         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6994         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6995         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6996         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6997         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6998         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6999         New macros.
7000         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7001         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7002         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7003         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7004         (pthread_spin_unlock): New dummy functions.
7005         (pthread_create): Return EAGAIN; don't set errno.
7006         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7007         require AC_C_INLINE.
7008         * modules/pthread (Depends-on): Add sched, time.
7009         (pthread.h): Use AM_V_GEN.
7010
7011 2010-07-13  Bruno Haible  <bruno@clisp.org>
7012
7013         striconveh: Don't malloc memory if the result buffer is sufficient.
7014         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7015         buffer if its size is sufficient.
7016         Reported by Ludovic Courtès <ludo@gnu.org>.
7017
7018 2010-07-13  Bruno Haible  <bruno@clisp.org>
7019
7020         strtod: Add safety check.
7021         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7022
7023 2010-07-12  Bruno Haible  <bruno@clisp.org>
7024
7025         Unify tests that set gl_cv_func_ldexpl_no_libm.
7026         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7027         gl_FUNC_LDEXPL.
7028         (gl_FUNC_LDEXPL): Invoke it.
7029         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7030
7031 2010-07-12  Bruno Haible  <bruno@clisp.org>
7032
7033         Unify tests that set gl_cv_func_ldexp_no_libm.
7034         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7035         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7036         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7037         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7038         * modules/strtod (Files): Add m4/ldexp.m4.
7039
7040 2010-07-12  Bruno Haible  <bruno@clisp.org>
7041
7042         Unify tests that set gl_cv_func_frexpl_no_libm.
7043         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7044         gl_FUNC_FREXPL_NO_LIBM.
7045         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7046         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7047
7048 2010-07-12  Bruno Haible  <bruno@clisp.org>
7049
7050         Unify tests that set gl_cv_func_frexp_no_libm.
7051         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7052         gl_FUNC_FREXP_NO_LIBM.
7053         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7054         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7055
7056 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7057
7058         memcoll: clarify sizes versus lengths, document better, and tweak perf
7059         * lib/memcoll.c (strcoll_loop, memcoll0):
7060         Improve quality of descriptive comments.  Name variables
7061         consistently as to whether they are lengths (which do not include
7062         terminating null) versus sizes (which do).
7063         * lib/xmemcoll.c (xmemcoll0): Likewise.
7064         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7065         returned when s1size == 0; this is easier to compile and saves
7066         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7067
7068 2010-07-12  Bruno Haible  <bruno@clisp.org>
7069
7070         Tests for module '_Exit'.
7071         * modules/_Exit-tests: New file.
7072         * tests/test-_Exit.sh: New file.
7073         * tests/test-_Exit.c: New file.
7074
7075         New module '_Exit'.
7076         * lib/stdlib.in.h (__attribute__): New macro.
7077         (_Exit): New declaration.
7078         * lib/_Exit.c: New file.
7079         * m4/_Exit.m4: New file.
7080         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7081         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7082         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7083         * modules/_Exit: New file.
7084         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7085         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7086
7087 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7088
7089         strtod: make it more-accurate typically, and don't require libm
7090         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7091         Include limits.h.  Don't include string.h.
7092         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7093         (locale_isspace): New function, so that no casts are needed to
7094         check whether *s is a space.
7095         (ldexp): Provide an unused dummy if not available.
7096         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7097         (strtod): Use them.  This implementation prefers to use the
7098         underlying strtod if available, falling back on our own code
7099         only to fix known bugs.  This is more likely to produce an
7100         accurate result.  Also, it avoids the use of libm functions.
7101         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7102         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7103         was absent, but it caused a test failure with coreutils.
7104         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7105         with libm.
7106         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7107         * modules/strtod-tests (Makefile.am): Likewise.
7108
7109 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7110             Bruno Haible  <bruno@clisp.org>
7111
7112         unistr/u8-strchr: Optimize ASCII argument case.
7113         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7114
7115 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         (x)memcoll: minor tweaks
7118         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7119         is after the type that it qualifies.
7120         (memcoll0): Likewise.
7121         * lib/memcoll.h (memcoll0): Likewise.
7122         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7123         * lib/xmemcoll.h (xmemcoll0): Likewise.
7124         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7125         differs from memcoll in that the NUL byte is part of the argument.
7126         Omit the abort-checks, as performance is a real issue here.  Plus,
7127         the checks were wrong anyway (an off-by-one error).  Omit local
7128         variable 'diff', as it's a bit clearer that way.
7129         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7130         no longer needed.
7131
7132 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7133
7134         (x)memcoll: speedup when input is known to be NUL delimited
7135         * lib/memcoll.c: Include stdlib.
7136         (memcoll0) New function.
7137         (strcoll_loop) New function, refactored for use in both memcoll
7138         and memcoll0.
7139         * lib/memcoll.h: Add prototype for memcoll0.
7140         * lib/xmemcoll.c: (xmemcoll0) New function.
7141         (collate_error) New function, refactored for use in both xmemcoll
7142         and xmemcoll0.
7143         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7144         * m4/memcoll.m4: add inline invocation.
7145
7146 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7147
7148         * build-aux/bootstrap: Remove any local translations
7149         from the translation project synchronization directory,
7150         so that local only translations are not distributed.
7151
7152 2010-07-04  Bruno Haible  <bruno@clisp.org>
7153
7154         fsusage: Clarify which code applies to which platforms.
7155         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7156         platform.
7157         * lib/fsusage.c (get_fs_usage): Likewise.
7158
7159 2010-07-04  Bruno Haible  <bruno@clisp.org>
7160
7161         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7162         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7163         Reported by Martin Lambers <marlam@marlam.de>.
7164
7165 2010-07-04  Jim Meyering  <meyering@redhat.com>
7166
7167         hash: once again explicitly disallow insertion of NULL
7168         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7169         inserting a NULL pointer cannot work with these functions.
7170         Add a comment with details.
7171         This reverts part of the 2010-07-01 commit, 5bef1a35
7172         "hash: extend module to deal with non-pointer keys".
7173
7174 2010-07-01  Bruno Haible  <bruno@clisp.org>
7175
7176         stdbool: Update doc.
7177         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7178         Info from Christian Weisgerber <naddy@mips.inka.de>.
7179
7180 2010-07-01  Jim Meyering  <meyering@redhat.com>
7181
7182         hash: extend module to deal with non-pointer keys
7183         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7184         but that allows insertion of non-pointer entries.
7185         Do not disallow an ENTRY value of NULL.
7186         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7187         * lib/hash.h (hash_insert0): Declare.
7188
7189 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7190
7191         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7192         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7193         not present (i.e. with autoconf 2.59 and when using gettextize, not
7194         gnulib), require AC_GNU_SOURCE instead.
7195
7196 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7197
7198         idpriv-drop: Fix tests.
7199         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7200         not to the test-idpriv-droptemp program.
7201
7202 2010-06-29  Bruno Haible  <bruno@clisp.org>
7203
7204         string: Fix syntax error with g++ 2.96.
7205         * lib/string.in.h (__pure__): Remove definition.
7206         (_GL_ATTRIBUTE_PURE): New macro.
7207         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7208         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7209         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7210
7211 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7212
7213         unitypes: Fix bug introduced on 2010-05-18.
7214         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7215
7216 2010-06-22  Eric Blake  <eblake@redhat.com>
7217
7218         memmem: slight optimization
7219         * lib/str-two-way.h (critical_factorization): Update comments.
7220         Reduce work during factorization phase.
7221         Reported by Carlos Bueno <carlos@bueno.org>.
7222
7223 2010-06-21  Bruno Haible  <bruno@clisp.org>
7224
7225         Fix HAVE_CALLOC_POSIX misnomer.
7226         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7227         !HAVE_CALLOC_POSIX.
7228         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7229         HAVE_CALLOC_POSIX.
7230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7231         instead of HAVE_CALLOC_POSIX.
7232         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7233         HAVE_CALLOC_POSIX.
7234
7235         Use modern idiom for calloc() replacement.
7236         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7237         AC_FUNC_CALLOC.
7238         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7239         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7240         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7241         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7242         (gl_REPLACE_CALLOC): New macro.
7243
7244 2010-06-21  Bruno Haible  <bruno@clisp.org>
7245
7246         Fix HAVE_REALLOC_POSIX misnomer.
7247         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7248         !HAVE_REALLOC_POSIX.
7249         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7250         HAVE_REALLOC_POSIX.
7251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7252         instead of HAVE_REALLOC_POSIX.
7253         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7254         HAVE_REALLOC_POSIX.
7255
7256         Use modern idiom for realloc() replacement.
7257         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7258         AC_FUNC_REALLOC.
7259         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7260         Autoconf's AC_FUNC_REALLOC.
7261         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7262         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7263         (gl_REPLACE_REALLOC): New macro.
7264         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7265
7266 2010-06-21  Bruno Haible  <bruno@clisp.org>
7267
7268         Fix HAVE_MALLOC_POSIX misnomer.
7269         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7270         !HAVE_MALLOC_POSIX.
7271         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7272         HAVE_MALLOC_POSIX.
7273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7274         instead of HAVE_MALLOC_POSIX.
7275         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7276         HAVE_MALLOC_POSIX.
7277
7278         Use modern idiom for malloc() replacement.
7279         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7280         AC_FUNC_MALLOC.
7281         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7282         Autoconf's AC_FUNC_MALLOC.
7283         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7284         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7285         (gl_REPLACE_MALLOC): New macro.
7286         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7287
7288 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7289
7290         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
7291         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
7292         This macro takes 3 arguments, not 4.
7293
7294 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
7295
7296         ipv6: fix detection under mingw
7297         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
7298         in6_addr.
7299
7300 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
7301
7302         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
7303         that strtod() works when cross-compiling to a glibc version known
7304         to work.
7305
7306 2010-06-15  Bruno Haible  <bruno@clisp.org>
7307
7308         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
7309
7310 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
7311
7312         select: Correct timeout.
7313         * lib/select.c (rpl_select): Compute wait_timeout correctly.
7314
7315 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7316
7317         git-version-gen: init shell var to avoid env var influence
7318         * build-aux/git-version-gen (v): Init shell var to empty.
7319
7320 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7321
7322         priv-set: Don't assume that priv.h exists merely because getppriv does.
7323         See Jan Andersen's bug report about AIX 5L in
7324         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
7325         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
7326         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
7327         * lib/priv-set.h: Likewise.
7328         * tests/test-priv-set.c: Likewise.
7329
7330 2010-06-13  Bruno Haible  <bruno@clisp.org>
7331
7332         relocatable: Make it easier to test whether to install wrappers.
7333         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
7334         RELOCATABLE_VIA_WRAPPER.
7335
7336 2010-06-13  Bruno Haible  <bruno@clisp.org>
7337
7338         gnulib-tool: Display specified modules and dependencies differently.
7339         * gnulib-tool (func_show_module_list): New function.
7340         (func_import, func_create_testdir): Invoke it.
7341         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7342
7343 2010-06-13  Bruno Haible  <bruno@clisp.org>
7344
7345         gnulib-tool: Align code of func_import and func_create_testdir.
7346         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7347         specified_modules.
7348
7349 2010-06-12  Jim Meyering  <meyering@redhat.com>
7350
7351         test-inttostr: avoid spurious failure on Solaris 9
7352         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7353         to accept "%ju".  Reported by Bruno Haible.
7354
7355 2010-06-11  Jim Meyering  <meyering@redhat.com>
7356
7357         test-sys_socket: mark variables as used more readably
7358         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7359         as "used" explicitly via (void) statement casts.  This is more
7360         readable than using them in an artificial return expression.
7361         Suggestion from Bruno Haible.
7362
7363 2010-06-11  Bruno Haible  <bruno@clisp.org>
7364
7365         Avoid some more warnings from "gcc -Wwrite-strings".
7366         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7367         to 'const char *'.
7368         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7369         * tests/test-c-strcasestr.c (main): Likewise.
7370         * tests/test-mbscasestr1.c (main): Likewise.
7371         * tests/test-mbscasestr2.c (main): Likewise.
7372         * tests/test-memmem.c (main): Likewise.
7373         * tests/test-strstr.c (main): Likewise.
7374         * tests/test-strcasestr.c (main): Likewise.
7375
7376 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7377
7378         init.sh: change framework_failure_ to fail with status 99, not 1
7379         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7380         automake's parallel-tests rule that this is an unexpected failure,
7381         even if the test is listed in XFAIL_TESTS.
7382
7383 2010-06-11  Jim Meyering  <meyering@redhat.com>
7384
7385         test-inttostr: avoid warnings about 4-6KB literal strings
7386         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7387         Include "macros.h", for its definition of ASSERT.
7388         (CK): s/assert/ASSERT/
7389         * modules/inttostr-tests (Files): Add macros.h.
7390
7391         init.sh: don't use $ME_ or skip_ before they are defined
7392         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7393         their first uses.  Also hoist their companions: warn_, fail_,
7394         framework_failure_, $stderr_fileno.  Prompted by a patch from
7395         Stefano Lattarini.
7396
7397         test-sys_socket: avoid set-but-not-used warnings from gcc
7398         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7399         avoid warning about set-but-not-used variables.
7400
7401         test-xvasprintf: avoid 'const' discard warnings
7402         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7403         "const" when assigning from literal strings.
7404         (test_xasprintf): Add "void" in function argument list to placate
7405         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7406
7407         tests: avoid compilation warnings in argmatch and exclude tests...
7408         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7409         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7410         Since it always exits, declare with the "noreturn" attribute.
7411         * tests/test-argmatch.c: Likewise.
7412
7413         tests: avoid 'const' discard warnings in mbsstr tests
7414         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7415         * tests/test-mbsstr2.c (main): Likewise.
7416
7417         test-verify: avoid warning from gcc's -Wmissing-declarations
7418         * tests/test-verify.c (function): Declare to be static.
7419
7420         test-inttostr.c: include <string.h> for use of strcmp
7421         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7422
7423         test-linkat: avoid failed assertion on "other" architectures
7424         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7425         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7426         sparc: https://bugs.launchpad.net/bugs/591968
7427
7428 2010-06-11  Jim Meyering  <meyering@redhat.com>
7429
7430         printf.m4: avoid autoconf's "Expanded Before Required" warning
7431         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7432         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7433         autoconf warning.
7434
7435 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7436
7437         Replacement header templates are now named with ".in", not "_".
7438         * doc/gnulib-intro.texi: Correct.
7439
7440 2010-06-10  Jim Meyering  <meyering@redhat.com>
7441
7442         inttostr-tests: depend on snprintf, not snprintf-posix
7443         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7444         snprintf-posix, to avoid this aclocal failure:
7445           missing file gnulib-tests/vasnprintf.c
7446           configure.ac:45: error: expected source file, required through \
7447           AC_LIBSOURCES, not found
7448
7449 2010-06-10  Jim Meyering  <meyering@redhat.com>
7450
7451         inttostr: add a new function, inttostr, and tests
7452         The namesake function was not available.  The existence of the
7453         template file, inttostr.c makes its addition nontrivial.
7454         * lib/anytostr.c: Rename from inttostr.c.
7455         (anytostr): Rename from inttostr.
7456         * lib/inttostr.c: New file.
7457         * modules/inttostr (Files): Add anytostr.c.
7458         (Makefile.am): Set lib_SOURCES instead of ...
7459         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7460         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7461         * lib/offtostr.c: Likewise.
7462         * lib/uinttostr.c: Likewise.
7463         * lib/umaxtostr.c: Likewise.
7464         * modules/inttostr-tests: New file.
7465         * tests/test-inttostr.c: New file.  Test these functions.
7466
7467 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7468             Bruno Haible  <bruno@clisp.org>
7469
7470         Add "Extending Gnulib" chapter to manual.
7471         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7472         chapter.
7473         (Extending Gnulib): New chapter.
7474         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7475         chapter.
7476
7477 2010-06-09  Bruno Haible  <bruno@clisp.org>
7478
7479         Avoid relocwrapper link errors due to gnulib replacement functions.
7480         * lib/areadlink.c: Use the system's malloc, realloc functions.
7481         (areadlink): Set errno to ENOMEM explicitly.
7482         * modules/areadlink (Depends-on): Remove malloc-posix.
7483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7484
7485 2010-06-09  Bruno Haible  <bruno@clisp.org>
7486
7487         Avoid relocwrapper link errors due to gnulib replacement functions.
7488         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7489         * lib/malloca.c: Likewise.
7490         * lib/relocatable.c: Likewise.
7491         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7492         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7493         * lib/setenv.c: Use the system's malloc, realloc functions.
7494         * lib/strerror.c: Use the system's sprintf function.
7495         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7496
7497 2010-06-04  Bruno Haible  <bruno@clisp.org>
7498
7499         Prefer documented low-level autoconf macro names.
7500         * m4/lib-link.m4: Use m4_translit instead of translit.
7501         * m4/environ.m4: Likewise.
7502         * m4/mathfunc.m4: Likewise.
7503         * m4/onceonly.m4: Likewise.
7504         * m4/stdint.m4: Likewise.
7505         Suggested by Eric Blake.
7506
7507 2010-06-04  Martin Lambers  <marlam@marlam.de>
7508             Bruno Haible  <bruno@clisp.org>
7509
7510         havelib: Allow library names with '+' characters.
7511         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7512         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7513
7514 2010-06-09  Bruno Haible  <bruno@clisp.org>
7515
7516         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7517         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7518         realloc failed.
7519
7520 2010-06-08  Peter Simons  <simons@cryp.to>
7521
7522         maint.mk: make the news-check rule more configurable
7523         * top/maint.mk (news-check-lines-spec) New variable.
7524         (news-check): Use "sed -n 1,10p" in place of "head".
7525
7526 2010-06-07  Jim Meyering  <meyering@redhat.com>
7527
7528         do-release-commit-and-tag: fix typo in --help
7529         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7530
7531         regex: avoid new dead-code warning with gcc-4.6.0
7532         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7533         if-block containing a while-loop.  It's been unused for at least
7534         5 years.
7535
7536 2010-06-05  Bruno Haible  <bruno@clisp.org>
7537
7538         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7539         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7540
7541 2010-06-04  Bruno Haible  <bruno@clisp.org>
7542
7543         Update to GNU gettext 0.18.1.
7544         * modules/gettext (configure.ac): Require gettext infrastructure from
7545         version 0.18.1.
7546
7547 2010-06-03  Bruno Haible  <bruno@clisp.org>
7548
7549         Don't use AC_LIBOBJ with file names in subdirectories.
7550         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7551         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7552         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7553         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7554         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7555         gl_LIBUNISTRING_LIBSOURCE.
7556         (Makefile.am): Augment lib_SOURCES here, conditionally.
7557         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7558
7559 2010-06-03  Bruno Haible  <bruno@clisp.org>
7560
7561         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7562         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7563         expansion does not end with a newline.
7564         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7565         unnecessary newline.
7566
7567 2010-06-03  Bruno Haible  <bruno@clisp.org>
7568
7569         Reduce dependencies.
7570         * tests/test-quotearg.h: New file, extracted from
7571         tests/test-quotearg.c.
7572         * tests/test-quotearg-simple.c: New file, extracted from
7573         tests/test-quotearg.c.
7574         * tests/test-quotearg.c: Don't include <ctype.h>.
7575         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7576         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7577         use_quote_double_quotes, use_quotearg_colon): Moved to
7578         tests/test-quotearg.h.
7579         (results_g, flag_results, custom_quotes, custom_results): Moved
7580         to tests/test-quotearg-simple.c.
7581         (main): Moved the part that does not depend on gettext to
7582         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7583         performed.
7584         * modules/quotearg-simple: New file.
7585         * modules/quotearg-simple-tests: New file.
7586         * modules/quotearg (Depends-on): Add quotearg-simple.
7587         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7588         (Files): Add tests/test-quotearg.h.
7589         Reported by Paolo Bonzini.
7590
7591 2010-06-03  Bruno Haible  <bruno@clisp.org>
7592
7593         Reduce dependencies.
7594         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7595
7596 2010-06-03  Bruno Haible  <bruno@clisp.org>
7597
7598         time: Undefine more broken macros.
7599         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7600         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7601         Reported by Eric Blake.
7602
7603 2010-06-03  Bruno Haible  <bruno@clisp.org>
7604
7605         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7606         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7607         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7608         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7609         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7610         Reported by Ludovic Courtès <ludo@gnu.org>.
7611
7612 2010-06-02  Eric Blake  <eblake@redhat.com>
7613
7614         time: work with mingw + pthreads-win32 library
7615         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7616         if timespec is defined only in pthread.h.
7617         * modules/time (Makefile.am): Substitute it.
7618         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7619         <pthread.h>, when needed.
7620         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7621         from the library.
7622
7623 2010-05-31  Bruno Haible  <bruno@clisp.org>
7624
7625         Avoid expanding two macros in the wrong order.
7626         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7627         gl_LIBUNISTRING if it is defined.
7628         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7629         autoconf >= 2.64.
7630         Reported by Ludovic Courtès <ludo@gnu.org>.
7631
7632 2010-05-27  Jim Meyering  <meyering@redhat.com>
7633
7634         maint.mk: also prohibit "#undef" of always-defined symbols
7635         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7636         Allow more than one space before the symbol name.
7637         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7638         the regexp uses alternation.
7639
7640 2010-05-26  Eric Blake  <eblake@redhat.com>
7641
7642         maint.mk: avoid echo -e
7643         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7644         Convert all uses of echo -* to printf.
7645         Reported by Matthias Bolte.
7646
7647 2010-05-25  Bruno Haible  <bruno@clisp.org>
7648
7649         Update to GNU gettext 0.18, part 2.
7650         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7651         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7652
7653 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7654
7655         Add missing include in test-pwrite.c.
7656         * tests/test-pwrite.c: Include string.h, for strcmp.
7657
7658 2010-05-24  Bruno Haible  <bruno@clisp.org>
7659
7660         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7661
7662 2010-05-24  Bruno Haible  <bruno@clisp.org>
7663
7664         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7665         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7666         iconveh_error argument.
7667         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7668         U_STRCONV_TO_LOCALE.
7669         * lib/unistr/u16-strcoll.c: Likewise.
7670         * lib/unistr/u32-strcoll.c: Likewise.
7671         * modules/unistr/u8-strcoll (Depends-on): Add
7672         uniconv/u8-strconv-to-enc, localcharset. Remove
7673         uniconv/u8-strconv-to-locale.
7674         (configure.ac): Bump version number.
7675         * modules/unistr/u16-strcoll (Depends-on): Add
7676         uniconv/u16-strconv-to-enc, localcharset. Remove
7677         uniconv/u16-strconv-to-locale.
7678         (configure.ac): Bump version number.
7679         * modules/unistr/u32-strcoll (Depends-on): Add
7680         uniconv/u32-strconv-to-enc, localcharset. Remove
7681         uniconv/u32-strconv-to-locale.
7682         (configure.ac): Bump version number.
7683
7684 2010-05-24  Bruno Haible  <bruno@clisp.org>
7685
7686         Avoid a test failure on NetBSD 5.0.
7687         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7688         an iconv() bug.
7689
7690 2010-05-24  Bruno Haible  <bruno@clisp.org>
7691
7692         Adjust #include directive style.
7693         * modules/regex (Includes): Recommend to write <regex.h>.
7694
7695 2010-05-24  Bruno Haible  <bruno@clisp.org>
7696
7697         regex: Don't require alloca.
7698         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7699         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7700         only inside if (0).
7701
7702 2010-05-23  Jim Meyering  <meyering@redhat.com>
7703
7704         test-renameat.c: include <sys/stat.h>
7705         * tests/test-renameat.c: Include <sys/stat.h>; required for
7706         definition of S_IS* macros.
7707
7708 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7709
7710         Update maintainer documentation for 'relocatable-prog' module.
7711         * doc/relocatable-maint.texi: Update.
7712         Comments by Bruno Haible.
7713
7714 2010-05-23  Bruno Haible  <bruno@clisp.org>
7715
7716         git-merge-changelog: Enable --split-merged-entry by default.
7717         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7718         (usage): Don't mention this option any more.
7719         Reported by Ralf Wildenhues.
7720
7721 2010-05-23  Jim Meyering  <meyering@redhat.com>
7722
7723         test-pwrite: do not leave behind a test file named "out"
7724         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7725         The trivial-looking use of init.sh is really necessary.
7726         It ensures that the temporary file, "out", is created in
7727         a temporary directory, and removed upon termination.
7728         * tests/test-pwrite.sh: Re-add file.
7729         * modules/pwrite-tests: Reference it.
7730
7731 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7732
7733         Fix output redirection buglet in init.sh.
7734         * tests/init.sh: Fix redirection of stderr.
7735
7736 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7737
7738         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7739
7740 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7741
7742         * modules/valgrind-tests: New file.
7743         * m4/valgrind-tests.m4: New file.
7744         * doc/valgrind-tests.texi: New file.
7745         * doc/gnulib.texi (Running self-tests under valgrind): New
7746         section.
7747
7748 2010-05-19  Bruno Haible  <bruno@clisp.org>
7749
7750         Clean up dead code in recent commit.
7751         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7752         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7753         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7754         Suggested by Paolo Bonzini.
7755
7756 2010-05-19  Bruno Haible  <bruno@clisp.org>
7757
7758         Avoid valgrind error reports from libunistring.
7759         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7760         * modules/libunistring (Files): Add it.
7761         * modules/libunistring-optional (Files): Likewise.
7762
7763 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7764             Bruno Haible  <bruno@clisp.org>
7765
7766         New module 'libunistring-optional'.
7767         * modules/libunistring-optional: New file.
7768         * m4/libunistring-base.m4: New file.
7769         * m4/libunistring-optional.m4: New file.
7770         * lib/unicase.in.h: Renamed from lib/unicase.h.
7771         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7772         * lib/unictype.in.h: Renamed from lib/unictype.h.
7773         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7774         * lib/uniname.in.h: Renamed from lib/uniname.h.
7775         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7776         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7777         * lib/unistr.in.h: Renamed from lib/unistr.h.
7778         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7779         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7780         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7781         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7782         gl_LIBUNISTRING. If the library was found, determine the installed
7783         version and set LIBUNISTRING_VERSION.
7784         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7785         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7786         handle a configuration option --with-included-libunistring.
7787         * modules/libunistring (Files): Add m4/absolute-header.m4.
7788         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7789         Add m4/libunistring-base.m4.
7790         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7791         (Makefile.am): Build unicase.h from unicase.in.h.
7792         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7793         Add m4/libunistring-base.m4.
7794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7795         (Makefile.am): Build uniconv.h from uniconv.in.h.
7796         * modules/unictype/base (Files): Use unictype.in.h instead of
7797         unictype.h. Add m4/libunistring-base.m4.
7798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7799         (Makefile.am): Build unictype.h from unictype.in.h.
7800         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7801         Add m4/libunistring-base.m4.
7802         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7803         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7804         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7805         Add m4/libunistring-base.m4.
7806         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7807         (Makefile.am): Build uniname.h from uniname.in.h.
7808         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7809         Add m4/libunistring-base.m4.
7810         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7811         (Makefile.am): Build uninorm.h from uninorm.in.h.
7812         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7813         unistdio.h. Add m4/libunistring-base.m4.
7814         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7815         (Makefile.am): Build unistdio.h from unistdio.in.h.
7816         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7817         Add m4/libunistring-base.m4.
7818         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7819         (Makefile.am): Build unistr.h from unistr.in.h.
7820         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7821         Add m4/libunistring-base.m4.
7822         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7823         (Makefile.am): Build unitypes.h from unitypes.in.h.
7824         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7825         Add m4/libunistring-base.m4.
7826         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7827         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7828         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7829         uniwidth.h. Add m4/libunistring-base.m4.
7830         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7831         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7832         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7833         instead of augmenting lib_SOURCES.
7834         * modules/unicase/empty-suffix-context: Likewise.
7835         * modules/unicase/locale-language: Likewise.
7836         * modules/unicase/tolower: Likewise.
7837         * modules/unicase/totitle: Likewise.
7838         * modules/unicase/toupper: Likewise.
7839         * modules/unicase/u8-casecmp: Likewise.
7840         * modules/unicase/u8-casecoll: Likewise.
7841         * modules/unicase/u8-casefold: Likewise.
7842         * modules/unicase/u8-casexfrm: Likewise.
7843         * modules/unicase/u8-ct-casefold: Likewise.
7844         * modules/unicase/u8-ct-tolower: Likewise.
7845         * modules/unicase/u8-ct-totitle: Likewise.
7846         * modules/unicase/u8-ct-toupper: Likewise.
7847         * modules/unicase/u8-is-cased: Likewise.
7848         * modules/unicase/u8-is-casefolded: Likewise.
7849         * modules/unicase/u8-is-lowercase: Likewise.
7850         * modules/unicase/u8-is-titlecase: Likewise.
7851         * modules/unicase/u8-is-uppercase: Likewise.
7852         * modules/unicase/u8-prefix-context: Likewise.
7853         * modules/unicase/u8-suffix-context: Likewise.
7854         * modules/unicase/u8-tolower: Likewise.
7855         * modules/unicase/u8-totitle: Likewise.
7856         * modules/unicase/u8-toupper: Likewise.
7857         * modules/unicase/u16-casecmp: Likewise.
7858         * modules/unicase/u16-casecoll: Likewise.
7859         * modules/unicase/u16-casefold: Likewise.
7860         * modules/unicase/u16-casexfrm: Likewise.
7861         * modules/unicase/u16-ct-casefold: Likewise.
7862         * modules/unicase/u16-ct-tolower: Likewise.
7863         * modules/unicase/u16-ct-totitle: Likewise.
7864         * modules/unicase/u16-ct-toupper: Likewise.
7865         * modules/unicase/u16-is-cased: Likewise.
7866         * modules/unicase/u16-is-casefolded: Likewise.
7867         * modules/unicase/u16-is-lowercase: Likewise.
7868         * modules/unicase/u16-is-titlecase: Likewise.
7869         * modules/unicase/u16-is-uppercase: Likewise.
7870         * modules/unicase/u16-prefix-context: Likewise.
7871         * modules/unicase/u16-suffix-context: Likewise.
7872         * modules/unicase/u16-tolower: Likewise.
7873         * modules/unicase/u16-totitle: Likewise.
7874         * modules/unicase/u16-toupper: Likewise.
7875         * modules/unicase/u32-casecmp: Likewise.
7876         * modules/unicase/u32-casecoll: Likewise.
7877         * modules/unicase/u32-casefold: Likewise.
7878         * modules/unicase/u32-casexfrm: Likewise.
7879         * modules/unicase/u32-ct-casefold: Likewise.
7880         * modules/unicase/u32-ct-tolower: Likewise.
7881         * modules/unicase/u32-ct-totitle: Likewise.
7882         * modules/unicase/u32-ct-toupper: Likewise.
7883         * modules/unicase/u32-is-cased: Likewise.
7884         * modules/unicase/u32-is-casefolded: Likewise.
7885         * modules/unicase/u32-is-lowercase: Likewise.
7886         * modules/unicase/u32-is-titlecase: Likewise.
7887         * modules/unicase/u32-is-uppercase: Likewise.
7888         * modules/unicase/u32-prefix-context: Likewise.
7889         * modules/unicase/u32-suffix-context: Likewise.
7890         * modules/unicase/u32-tolower: Likewise.
7891         * modules/unicase/u32-totitle: Likewise.
7892         * modules/unicase/u32-toupper: Likewise.
7893         * modules/unicase/ulc-casecmp: Likewise.
7894         * modules/unicase/ulc-casecoll: Likewise.
7895         * modules/unicase/ulc-casexfrm: Likewise.
7896         * modules/uniconv/u8-conv-from-enc: Likewise.
7897         * modules/uniconv/u8-conv-to-enc: Likewise.
7898         * modules/uniconv/u8-strconv-from-enc: Likewise.
7899         * modules/uniconv/u8-strconv-from-locale: Likewise.
7900         * modules/uniconv/u8-strconv-to-enc: Likewise.
7901         * modules/uniconv/u8-strconv-to-locale: Likewise.
7902         * modules/uniconv/u16-conv-from-enc: Likewise.
7903         * modules/uniconv/u16-conv-to-enc: Likewise.
7904         * modules/uniconv/u16-strconv-from-enc: Likewise.
7905         * modules/uniconv/u16-strconv-from-locale: Likewise.
7906         * modules/uniconv/u16-strconv-to-enc: Likewise.
7907         * modules/uniconv/u16-strconv-to-locale: Likewise.
7908         * modules/uniconv/u32-conv-from-enc: Likewise.
7909         * modules/uniconv/u32-conv-to-enc: Likewise.
7910         * modules/uniconv/u32-strconv-from-enc: Likewise.
7911         * modules/uniconv/u32-strconv-from-locale: Likewise.
7912         * modules/uniconv/u32-strconv-to-enc: Likewise.
7913         * modules/uniconv/u32-strconv-to-locale: Likewise.
7914         * modules/unictype/bidicategory-byname: Likewise.
7915         * modules/unictype/bidicategory-name: Likewise.
7916         * modules/unictype/bidicategory-of: Likewise.
7917         * modules/unictype/bidicategory-test: Likewise.
7918         * modules/unictype/block-list: Likewise.
7919         * modules/unictype/block-test: Likewise.
7920         * modules/unictype/category-C: Likewise.
7921         * modules/unictype/category-Cc: Likewise.
7922         * modules/unictype/category-Cf: Likewise.
7923         * modules/unictype/category-Cn: Likewise.
7924         * modules/unictype/category-Co: Likewise.
7925         * modules/unictype/category-Cs: Likewise.
7926         * modules/unictype/category-L: Likewise.
7927         * modules/unictype/category-Ll: Likewise.
7928         * modules/unictype/category-Lm: Likewise.
7929         * modules/unictype/category-Lo: Likewise.
7930         * modules/unictype/category-Lt: Likewise.
7931         * modules/unictype/category-Lu: Likewise.
7932         * modules/unictype/category-M: Likewise.
7933         * modules/unictype/category-Mc: Likewise.
7934         * modules/unictype/category-Me: Likewise.
7935         * modules/unictype/category-Mn: Likewise.
7936         * modules/unictype/category-N: Likewise.
7937         * modules/unictype/category-Nd: Likewise.
7938         * modules/unictype/category-Nl: Likewise.
7939         * modules/unictype/category-No: Likewise.
7940         * modules/unictype/category-P: Likewise.
7941         * modules/unictype/category-Pc: Likewise.
7942         * modules/unictype/category-Pd: Likewise.
7943         * modules/unictype/category-Pe: Likewise.
7944         * modules/unictype/category-Pf: Likewise.
7945         * modules/unictype/category-Pi: Likewise.
7946         * modules/unictype/category-Po: Likewise.
7947         * modules/unictype/category-Ps: Likewise.
7948         * modules/unictype/category-S: Likewise.
7949         * modules/unictype/category-Sc: Likewise.
7950         * modules/unictype/category-Sk: Likewise.
7951         * modules/unictype/category-Sm: Likewise.
7952         * modules/unictype/category-So: Likewise.
7953         * modules/unictype/category-Z: Likewise.
7954         * modules/unictype/category-Zl: Likewise.
7955         * modules/unictype/category-Zp: Likewise.
7956         * modules/unictype/category-Zs: Likewise.
7957         * modules/unictype/category-and: Likewise.
7958         * modules/unictype/category-and-not: Likewise.
7959         * modules/unictype/category-byname: Likewise.
7960         * modules/unictype/category-name: Likewise.
7961         * modules/unictype/category-none: Likewise.
7962         * modules/unictype/category-of: Likewise.
7963         * modules/unictype/category-or: Likewise.
7964         * modules/unictype/category-test: Likewise.
7965         * modules/unictype/combining-class: Likewise.
7966         * modules/unictype/ctype-alnum: Likewise.
7967         * modules/unictype/ctype-alpha: Likewise.
7968         * modules/unictype/ctype-blank: Likewise.
7969         * modules/unictype/ctype-cntrl: Likewise.
7970         * modules/unictype/ctype-digit: Likewise.
7971         * modules/unictype/ctype-graph: Likewise.
7972         * modules/unictype/ctype-lower: Likewise.
7973         * modules/unictype/ctype-print: Likewise.
7974         * modules/unictype/ctype-punct: Likewise.
7975         * modules/unictype/ctype-space: Likewise.
7976         * modules/unictype/ctype-upper: Likewise.
7977         * modules/unictype/ctype-xdigit: Likewise.
7978         * modules/unictype/decimal-digit: Likewise.
7979         * modules/unictype/digit: Likewise.
7980         * modules/unictype/mirror: Likewise.
7981         * modules/unictype/numeric: Likewise.
7982         * modules/unictype/property-alphabetic: Likewise.
7983         * modules/unictype/property-ascii-hex-digit: Likewise.
7984         * modules/unictype/property-bidi-arabic-digit: Likewise.
7985         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7986         * modules/unictype/property-bidi-block-separator: Likewise.
7987         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7988         * modules/unictype/property-bidi-common-separator: Likewise.
7989         * modules/unictype/property-bidi-control: Likewise.
7990         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7991         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7992         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7993         * modules/unictype/property-bidi-european-digit: Likewise.
7994         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7995         * modules/unictype/property-bidi-left-to-right: Likewise.
7996         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7997         * modules/unictype/property-bidi-other-neutral: Likewise.
7998         * modules/unictype/property-bidi-pdf: Likewise.
7999         * modules/unictype/property-bidi-segment-separator: Likewise.
8000         * modules/unictype/property-bidi-whitespace: Likewise.
8001         * modules/unictype/property-byname: Likewise.
8002         * modules/unictype/property-combining: Likewise.
8003         * modules/unictype/property-composite: Likewise.
8004         * modules/unictype/property-currency-symbol: Likewise.
8005         * modules/unictype/property-dash: Likewise.
8006         * modules/unictype/property-decimal-digit: Likewise.
8007         * modules/unictype/property-default-ignorable-code-point: Likewise.
8008         * modules/unictype/property-deprecated: Likewise.
8009         * modules/unictype/property-diacritic: Likewise.
8010         * modules/unictype/property-extender: Likewise.
8011         * modules/unictype/property-format-control: Likewise.
8012         * modules/unictype/property-grapheme-base: Likewise.
8013         * modules/unictype/property-grapheme-extend: Likewise.
8014         * modules/unictype/property-grapheme-link: Likewise.
8015         * modules/unictype/property-hex-digit: Likewise.
8016         * modules/unictype/property-hyphen: Likewise.
8017         * modules/unictype/property-id-continue: Likewise.
8018         * modules/unictype/property-id-start: Likewise.
8019         * modules/unictype/property-ideographic: Likewise.
8020         * modules/unictype/property-ids-binary-operator: Likewise.
8021         * modules/unictype/property-ids-trinary-operator: Likewise.
8022         * modules/unictype/property-ignorable-control: Likewise.
8023         * modules/unictype/property-iso-control: Likewise.
8024         * modules/unictype/property-join-control: Likewise.
8025         * modules/unictype/property-left-of-pair: Likewise.
8026         * modules/unictype/property-line-separator: Likewise.
8027         * modules/unictype/property-logical-order-exception: Likewise.
8028         * modules/unictype/property-lowercase: Likewise.
8029         * modules/unictype/property-math: Likewise.
8030         * modules/unictype/property-non-break: Likewise.
8031         * modules/unictype/property-not-a-character: Likewise.
8032         * modules/unictype/property-numeric: Likewise.
8033         * modules/unictype/property-other-alphabetic: Likewise.
8034         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8035         * modules/unictype/property-other-grapheme-extend: Likewise.
8036         * modules/unictype/property-other-id-continue: Likewise.
8037         * modules/unictype/property-other-id-start: Likewise.
8038         * modules/unictype/property-other-lowercase: Likewise.
8039         * modules/unictype/property-other-math: Likewise.
8040         * modules/unictype/property-other-uppercase: Likewise.
8041         * modules/unictype/property-paired-punctuation: Likewise.
8042         * modules/unictype/property-paragraph-separator: Likewise.
8043         * modules/unictype/property-pattern-syntax: Likewise.
8044         * modules/unictype/property-pattern-white-space: Likewise.
8045         * modules/unictype/property-private-use: Likewise.
8046         * modules/unictype/property-punctuation: Likewise.
8047         * modules/unictype/property-quotation-mark: Likewise.
8048         * modules/unictype/property-radical: Likewise.
8049         * modules/unictype/property-sentence-terminal: Likewise.
8050         * modules/unictype/property-soft-dotted: Likewise.
8051         * modules/unictype/property-space: Likewise.
8052         * modules/unictype/property-terminal-punctuation: Likewise.
8053         * modules/unictype/property-test: Likewise.
8054         * modules/unictype/property-titlecase: Likewise.
8055         * modules/unictype/property-unassigned-code-value: Likewise.
8056         * modules/unictype/property-unified-ideograph: Likewise.
8057         * modules/unictype/property-uppercase: Likewise.
8058         * modules/unictype/property-variation-selector: Likewise.
8059         * modules/unictype/property-white-space: Likewise.
8060         * modules/unictype/property-xid-continue: Likewise.
8061         * modules/unictype/property-xid-start: Likewise.
8062         * modules/unictype/property-zero-width: Likewise.
8063         * modules/unictype/scripts: Likewise.
8064         * modules/unictype/syntax-c-ident: Likewise.
8065         * modules/unictype/syntax-c-whitespace: Likewise.
8066         * modules/unictype/syntax-java-ident: Likewise.
8067         * modules/unictype/syntax-java-whitespace: Likewise.
8068         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8069         * modules/unilbrk/u8-width-linebreaks: Likewise.
8070         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8071         * modules/unilbrk/u16-width-linebreaks: Likewise.
8072         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8073         * modules/unilbrk/u32-width-linebreaks: Likewise.
8074         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8075         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8076         * modules/uniname/uniname: Likewise.
8077         * modules/uninorm/canonical-decomposition: Likewise.
8078         * modules/uninorm/composition: Likewise.
8079         * modules/uninorm/decomposing-form: Likewise.
8080         * modules/uninorm/decomposition: Likewise.
8081         * modules/uninorm/filter: Likewise.
8082         * modules/uninorm/nfc: Likewise.
8083         * modules/uninorm/nfd: Likewise.
8084         * modules/uninorm/nfkc: Likewise.
8085         * modules/uninorm/nfkd: Likewise.
8086         * modules/uninorm/u8-normalize: Likewise.
8087         * modules/uninorm/u8-normcmp: Likewise.
8088         * modules/uninorm/u8-normcoll: Likewise.
8089         * modules/uninorm/u8-normxfrm: Likewise.
8090         * modules/uninorm/u16-normalize: Likewise.
8091         * modules/uninorm/u16-normcmp: Likewise.
8092         * modules/uninorm/u16-normcoll: Likewise.
8093         * modules/uninorm/u16-normxfrm: Likewise.
8094         * modules/uninorm/u32-normalize: Likewise.
8095         * modules/uninorm/u32-normcmp: Likewise.
8096         * modules/uninorm/u32-normcoll: Likewise.
8097         * modules/uninorm/u32-normxfrm: Likewise.
8098         * modules/unistdio/u8-asnprintf: Likewise.
8099         * modules/unistdio/u8-asprintf: Likewise.
8100         * modules/unistdio/u8-snprintf: Likewise.
8101         * modules/unistdio/u8-sprintf: Likewise.
8102         * modules/unistdio/u8-u8-asnprintf: Likewise.
8103         * modules/unistdio/u8-u8-asprintf: Likewise.
8104         * modules/unistdio/u8-u8-snprintf: Likewise.
8105         * modules/unistdio/u8-u8-sprintf: Likewise.
8106         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8107         * modules/unistdio/u8-u8-vasprintf: Likewise.
8108         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8109         * modules/unistdio/u8-u8-vsprintf: Likewise.
8110         * modules/unistdio/u8-vasnprintf: Likewise.
8111         * modules/unistdio/u8-vasprintf: Likewise.
8112         * modules/unistdio/u8-vsnprintf: Likewise.
8113         * modules/unistdio/u8-vsprintf: Likewise.
8114         * modules/unistdio/u16-asnprintf: Likewise.
8115         * modules/unistdio/u16-asprintf: Likewise.
8116         * modules/unistdio/u16-snprintf: Likewise.
8117         * modules/unistdio/u16-sprintf: Likewise.
8118         * modules/unistdio/u16-u16-asnprintf: Likewise.
8119         * modules/unistdio/u16-u16-asprintf: Likewise.
8120         * modules/unistdio/u16-u16-snprintf: Likewise.
8121         * modules/unistdio/u16-u16-sprintf: Likewise.
8122         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8123         * modules/unistdio/u16-u16-vasprintf: Likewise.
8124         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8125         * modules/unistdio/u16-u16-vsprintf: Likewise.
8126         * modules/unistdio/u16-vasnprintf: Likewise.
8127         * modules/unistdio/u16-vasprintf: Likewise.
8128         * modules/unistdio/u16-vsnprintf: Likewise.
8129         * modules/unistdio/u16-vsprintf: Likewise.
8130         * modules/unistdio/u32-asnprintf: Likewise.
8131         * modules/unistdio/u32-asprintf: Likewise.
8132         * modules/unistdio/u32-snprintf: Likewise.
8133         * modules/unistdio/u32-sprintf: Likewise.
8134         * modules/unistdio/u32-u32-asnprintf: Likewise.
8135         * modules/unistdio/u32-u32-asprintf: Likewise.
8136         * modules/unistdio/u32-u32-snprintf: Likewise.
8137         * modules/unistdio/u32-u32-sprintf: Likewise.
8138         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8139         * modules/unistdio/u32-u32-vasprintf: Likewise.
8140         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8141         * modules/unistdio/u32-u32-vsprintf: Likewise.
8142         * modules/unistdio/u32-vasnprintf: Likewise.
8143         * modules/unistdio/u32-vasprintf: Likewise.
8144         * modules/unistdio/u32-vsnprintf: Likewise.
8145         * modules/unistdio/u32-vsprintf: Likewise.
8146         * modules/unistdio/ulc-asnprintf: Likewise.
8147         * modules/unistdio/ulc-asprintf: Likewise.
8148         * modules/unistdio/ulc-fprintf: Likewise.
8149         * modules/unistdio/ulc-snprintf: Likewise.
8150         * modules/unistdio/ulc-sprintf: Likewise.
8151         * modules/unistdio/ulc-vasnprintf: Likewise.
8152         * modules/unistdio/ulc-vasprintf: Likewise.
8153         * modules/unistdio/ulc-vfprintf: Likewise.
8154         * modules/unistdio/ulc-vsnprintf: Likewise.
8155         * modules/unistdio/ulc-vsprintf: Likewise.
8156         * modules/unistr/u8-check: Likewise.
8157         * modules/unistr/u8-chr: Likewise.
8158         * modules/unistr/u8-cmp: Likewise.
8159         * modules/unistr/u8-cmp2: Likewise.
8160         * modules/unistr/u8-cpy: Likewise.
8161         * modules/unistr/u8-cpy-alloc: Likewise.
8162         * modules/unistr/u8-endswith: Likewise.
8163         * modules/unistr/u8-mblen: Likewise.
8164         * modules/unistr/u8-mbsnlen: Likewise.
8165         * modules/unistr/u8-mbtouc: Likewise.
8166         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8167         * modules/unistr/u8-mbtoucr: Likewise.
8168         * modules/unistr/u8-move: Likewise.
8169         * modules/unistr/u8-next: Likewise.
8170         * modules/unistr/u8-prev: Likewise.
8171         * modules/unistr/u8-set: Likewise.
8172         * modules/unistr/u8-startswith: Likewise.
8173         * modules/unistr/u8-stpcpy: Likewise.
8174         * modules/unistr/u8-stpncpy: Likewise.
8175         * modules/unistr/u8-strcat: Likewise.
8176         * modules/unistr/u8-strchr: Likewise.
8177         * modules/unistr/u8-strcmp: Likewise.
8178         * modules/unistr/u8-strcoll: Likewise.
8179         * modules/unistr/u8-strcpy: Likewise.
8180         * modules/unistr/u8-strcspn: Likewise.
8181         * modules/unistr/u8-strdup: Likewise.
8182         * modules/unistr/u8-strlen: Likewise.
8183         * modules/unistr/u8-strmblen: Likewise.
8184         * modules/unistr/u8-strmbtouc: Likewise.
8185         * modules/unistr/u8-strncat: Likewise.
8186         * modules/unistr/u8-strncmp: Likewise.
8187         * modules/unistr/u8-strncpy: Likewise.
8188         * modules/unistr/u8-strnlen: Likewise.
8189         * modules/unistr/u8-strpbrk: Likewise.
8190         * modules/unistr/u8-strrchr: Likewise.
8191         * modules/unistr/u8-strspn: Likewise.
8192         * modules/unistr/u8-strstr: Likewise.
8193         * modules/unistr/u8-strtok: Likewise.
8194         * modules/unistr/u8-to-u16: Likewise.
8195         * modules/unistr/u8-to-u32: Likewise.
8196         * modules/unistr/u8-uctomb: Likewise.
8197         * modules/unistr/u16-check: Likewise.
8198         * modules/unistr/u16-chr: Likewise.
8199         * modules/unistr/u16-cmp: Likewise.
8200         * modules/unistr/u16-cmp2: Likewise.
8201         * modules/unistr/u16-cpy: Likewise.
8202         * modules/unistr/u16-cpy-alloc: Likewise.
8203         * modules/unistr/u16-endswith: Likewise.
8204         * modules/unistr/u16-mblen: Likewise.
8205         * modules/unistr/u16-mbsnlen: Likewise.
8206         * modules/unistr/u16-mbtouc: Likewise.
8207         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8208         * modules/unistr/u16-mbtoucr: Likewise.
8209         * modules/unistr/u16-move: Likewise.
8210         * modules/unistr/u16-next: Likewise.
8211         * modules/unistr/u16-prev: Likewise.
8212         * modules/unistr/u16-set: Likewise.
8213         * modules/unistr/u16-startswith: Likewise.
8214         * modules/unistr/u16-stpcpy: Likewise.
8215         * modules/unistr/u16-stpncpy: Likewise.
8216         * modules/unistr/u16-strcat: Likewise.
8217         * modules/unistr/u16-strchr: Likewise.
8218         * modules/unistr/u16-strcmp: Likewise.
8219         * modules/unistr/u16-strcoll: Likewise.
8220         * modules/unistr/u16-strcpy: Likewise.
8221         * modules/unistr/u16-strcspn: Likewise.
8222         * modules/unistr/u16-strdup: Likewise.
8223         * modules/unistr/u16-strlen: Likewise.
8224         * modules/unistr/u16-strmblen: Likewise.
8225         * modules/unistr/u16-strmbtouc: Likewise.
8226         * modules/unistr/u16-strncat: Likewise.
8227         * modules/unistr/u16-strncmp: Likewise.
8228         * modules/unistr/u16-strncpy: Likewise.
8229         * modules/unistr/u16-strnlen: Likewise.
8230         * modules/unistr/u16-strpbrk: Likewise.
8231         * modules/unistr/u16-strrchr: Likewise.
8232         * modules/unistr/u16-strspn: Likewise.
8233         * modules/unistr/u16-strstr: Likewise.
8234         * modules/unistr/u16-strtok: Likewise.
8235         * modules/unistr/u16-to-u32: Likewise.
8236         * modules/unistr/u16-to-u8: Likewise.
8237         * modules/unistr/u16-uctomb: Likewise.
8238         * modules/unistr/u32-check: Likewise.
8239         * modules/unistr/u32-chr: Likewise.
8240         * modules/unistr/u32-cmp: Likewise.
8241         * modules/unistr/u32-cmp2: Likewise.
8242         * modules/unistr/u32-cpy: Likewise.
8243         * modules/unistr/u32-cpy-alloc: Likewise.
8244         * modules/unistr/u32-endswith: Likewise.
8245         * modules/unistr/u32-mblen: Likewise.
8246         * modules/unistr/u32-mbsnlen: Likewise.
8247         * modules/unistr/u32-mbtouc: Likewise.
8248         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8249         * modules/unistr/u32-mbtoucr: Likewise.
8250         * modules/unistr/u32-move: Likewise.
8251         * modules/unistr/u32-next: Likewise.
8252         * modules/unistr/u32-prev: Likewise.
8253         * modules/unistr/u32-set: Likewise.
8254         * modules/unistr/u32-startswith: Likewise.
8255         * modules/unistr/u32-stpcpy: Likewise.
8256         * modules/unistr/u32-stpncpy: Likewise.
8257         * modules/unistr/u32-strcat: Likewise.
8258         * modules/unistr/u32-strchr: Likewise.
8259         * modules/unistr/u32-strcmp: Likewise.
8260         * modules/unistr/u32-strcoll: Likewise.
8261         * modules/unistr/u32-strcpy: Likewise.
8262         * modules/unistr/u32-strcspn: Likewise.
8263         * modules/unistr/u32-strdup: Likewise.
8264         * modules/unistr/u32-strlen: Likewise.
8265         * modules/unistr/u32-strmblen: Likewise.
8266         * modules/unistr/u32-strmbtouc: Likewise.
8267         * modules/unistr/u32-strncat: Likewise.
8268         * modules/unistr/u32-strncmp: Likewise.
8269         * modules/unistr/u32-strncpy: Likewise.
8270         * modules/unistr/u32-strnlen: Likewise.
8271         * modules/unistr/u32-strpbrk: Likewise.
8272         * modules/unistr/u32-strrchr: Likewise.
8273         * modules/unistr/u32-strspn: Likewise.
8274         * modules/unistr/u32-strstr: Likewise.
8275         * modules/unistr/u32-strtok: Likewise.
8276         * modules/unistr/u32-to-u16: Likewise.
8277         * modules/unistr/u32-to-u8: Likewise.
8278         * modules/unistr/u32-uctomb: Likewise.
8279         * modules/uniwbrk/u8-wordbreaks: Likewise.
8280         * modules/uniwbrk/u16-wordbreaks: Likewise.
8281         * modules/uniwbrk/u32-wordbreaks: Likewise.
8282         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8283         * modules/uniwbrk/wordbreak-property: Likewise.
8284         * modules/uniwidth/u8-strwidth: Likewise.
8285         * modules/uniwidth/u8-width: Likewise.
8286         * modules/uniwidth/u16-strwidth: Likewise.
8287         * modules/uniwidth/u16-width: Likewise.
8288         * modules/uniwidth/u32-strwidth: Likewise.
8289         * modules/uniwidth/u32-width: Likewise.
8290         * modules/uniwidth/width: Likewise.
8291         * modules/unicase/cased-tests (Makefile.am): Link all test programs
8292         with $(LIBUNISTRING).
8293         * modules/unicase/ignorable-tests: Likewise.
8294         * modules/unicase/locale-language-tests: Likewise.
8295         * modules/unicase/tolower-tests: Likewise.
8296         * modules/unicase/totitle-tests: Likewise.
8297         * modules/unicase/toupper-tests: Likewise.
8298         * modules/unicase/u8-casecmp-tests: Likewise.
8299         * modules/unicase/u8-casecoll-tests: Likewise.
8300         * modules/unicase/u8-casefold-tests: Likewise.
8301         * modules/unicase/u8-is-cased-tests: Likewise.
8302         * modules/unicase/u8-is-casefolded-tests: Likewise.
8303         * modules/unicase/u8-is-lowercase-tests: Likewise.
8304         * modules/unicase/u8-is-titlecase-tests: Likewise.
8305         * modules/unicase/u8-is-uppercase-tests: Likewise.
8306         * modules/unicase/u8-tolower-tests: Likewise.
8307         * modules/unicase/u8-totitle-tests: Likewise.
8308         * modules/unicase/u8-toupper-tests: Likewise.
8309         * modules/unicase/u16-casecmp-tests: Likewise.
8310         * modules/unicase/u16-casecoll-tests: Likewise.
8311         * modules/unicase/u16-casefold-tests: Likewise.
8312         * modules/unicase/u16-is-cased-tests: Likewise.
8313         * modules/unicase/u16-is-casefolded-tests: Likewise.
8314         * modules/unicase/u16-is-lowercase-tests: Likewise.
8315         * modules/unicase/u16-is-titlecase-tests: Likewise.
8316         * modules/unicase/u16-is-uppercase-tests: Likewise.
8317         * modules/unicase/u16-tolower-tests: Likewise.
8318         * modules/unicase/u16-totitle-tests: Likewise.
8319         * modules/unicase/u16-toupper-tests: Likewise.
8320         * modules/unicase/u32-casecmp-tests: Likewise.
8321         * modules/unicase/u32-casecoll-tests: Likewise.
8322         * modules/unicase/u32-casefold-tests: Likewise.
8323         * modules/unicase/u32-is-cased-tests: Likewise.
8324         * modules/unicase/u32-is-casefolded-tests: Likewise.
8325         * modules/unicase/u32-is-lowercase-tests: Likewise.
8326         * modules/unicase/u32-is-titlecase-tests: Likewise.
8327         * modules/unicase/u32-is-uppercase-tests: Likewise.
8328         * modules/unicase/u32-tolower-tests: Likewise.
8329         * modules/unicase/u32-totitle-tests: Likewise.
8330         * modules/unicase/u32-toupper-tests: Likewise.
8331         * modules/unicase/ulc-casecmp-tests: Likewise.
8332         * modules/unicase/ulc-casecoll-tests: Likewise.
8333         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
8334         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8335         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8336         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8337         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8338         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8339         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8340         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8341         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8342         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8343         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8344         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8345         * modules/unictype/bidicategory-byname-tests: Likewise.
8346         * modules/unictype/bidicategory-name-tests: Likewise.
8347         * modules/unictype/bidicategory-of-tests: Likewise.
8348         * modules/unictype/bidicategory-test-tests: Likewise.
8349         * modules/unictype/block-list-tests: Likewise.
8350         * modules/unictype/block-of-tests: Likewise.
8351         * modules/unictype/block-test-tests: Likewise.
8352         * modules/unictype/category-C-tests: Likewise.
8353         * modules/unictype/category-Cc-tests: Likewise.
8354         * modules/unictype/category-Cf-tests: Likewise.
8355         * modules/unictype/category-Cn-tests: Likewise.
8356         * modules/unictype/category-Co-tests: Likewise.
8357         * modules/unictype/category-Cs-tests: Likewise.
8358         * modules/unictype/category-L-tests: Likewise.
8359         * modules/unictype/category-Ll-tests: Likewise.
8360         * modules/unictype/category-Lm-tests: Likewise.
8361         * modules/unictype/category-Lo-tests: Likewise.
8362         * modules/unictype/category-Lt-tests: Likewise.
8363         * modules/unictype/category-Lu-tests: Likewise.
8364         * modules/unictype/category-M-tests: Likewise.
8365         * modules/unictype/category-Mc-tests: Likewise.
8366         * modules/unictype/category-Me-tests: Likewise.
8367         * modules/unictype/category-Mn-tests: Likewise.
8368         * modules/unictype/category-N-tests: Likewise.
8369         * modules/unictype/category-Nd-tests: Likewise.
8370         * modules/unictype/category-Nl-tests: Likewise.
8371         * modules/unictype/category-No-tests: Likewise.
8372         * modules/unictype/category-P-tests: Likewise.
8373         * modules/unictype/category-Pc-tests: Likewise.
8374         * modules/unictype/category-Pd-tests: Likewise.
8375         * modules/unictype/category-Pe-tests: Likewise.
8376         * modules/unictype/category-Pf-tests: Likewise.
8377         * modules/unictype/category-Pi-tests: Likewise.
8378         * modules/unictype/category-Po-tests: Likewise.
8379         * modules/unictype/category-Ps-tests: Likewise.
8380         * modules/unictype/category-S-tests: Likewise.
8381         * modules/unictype/category-Sc-tests: Likewise.
8382         * modules/unictype/category-Sk-tests: Likewise.
8383         * modules/unictype/category-Sm-tests: Likewise.
8384         * modules/unictype/category-So-tests: Likewise.
8385         * modules/unictype/category-Z-tests: Likewise.
8386         * modules/unictype/category-Zl-tests: Likewise.
8387         * modules/unictype/category-Zp-tests: Likewise.
8388         * modules/unictype/category-Zs-tests: Likewise.
8389         * modules/unictype/category-and-not-tests: Likewise.
8390         * modules/unictype/category-and-tests: Likewise.
8391         * modules/unictype/category-byname-tests: Likewise.
8392         * modules/unictype/category-name-tests: Likewise.
8393         * modules/unictype/category-none-tests: Likewise.
8394         * modules/unictype/category-of-tests: Likewise.
8395         * modules/unictype/category-or-tests: Likewise.
8396         * modules/unictype/category-test-withtable-tests: Likewise.
8397         * modules/unictype/combining-class-tests: Likewise.
8398         * modules/unictype/ctype-alnum-tests: Likewise.
8399         * modules/unictype/ctype-alpha-tests: Likewise.
8400         * modules/unictype/ctype-blank-tests: Likewise.
8401         * modules/unictype/ctype-cntrl-tests: Likewise.
8402         * modules/unictype/ctype-digit-tests: Likewise.
8403         * modules/unictype/ctype-graph-tests: Likewise.
8404         * modules/unictype/ctype-lower-tests: Likewise.
8405         * modules/unictype/ctype-print-tests: Likewise.
8406         * modules/unictype/ctype-punct-tests: Likewise.
8407         * modules/unictype/ctype-space-tests: Likewise.
8408         * modules/unictype/ctype-upper-tests: Likewise.
8409         * modules/unictype/ctype-xdigit-tests: Likewise.
8410         * modules/unictype/decimal-digit-tests: Likewise.
8411         * modules/unictype/digit-tests: Likewise.
8412         * modules/unictype/mirror-tests: Likewise.
8413         * modules/unictype/numeric-tests: Likewise.
8414         * modules/unictype/property-alphabetic-tests: Likewise.
8415         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8416         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8417         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8418         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8419         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8420         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8421         * modules/unictype/property-bidi-control-tests: Likewise.
8422         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8423         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8424         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8425         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8426         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8427         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8428         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8429         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8430         * modules/unictype/property-bidi-pdf-tests: Likewise.
8431         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8432         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8433         * modules/unictype/property-byname-tests: Likewise.
8434         * modules/unictype/property-combining-tests: Likewise.
8435         * modules/unictype/property-composite-tests: Likewise.
8436         * modules/unictype/property-currency-symbol-tests: Likewise.
8437         * modules/unictype/property-dash-tests: Likewise.
8438         * modules/unictype/property-decimal-digit-tests: Likewise.
8439         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8440         * modules/unictype/property-deprecated-tests: Likewise.
8441         * modules/unictype/property-diacritic-tests: Likewise.
8442         * modules/unictype/property-extender-tests: Likewise.
8443         * modules/unictype/property-format-control-tests: Likewise.
8444         * modules/unictype/property-grapheme-base-tests: Likewise.
8445         * modules/unictype/property-grapheme-extend-tests: Likewise.
8446         * modules/unictype/property-grapheme-link-tests: Likewise.
8447         * modules/unictype/property-hex-digit-tests: Likewise.
8448         * modules/unictype/property-hyphen-tests: Likewise.
8449         * modules/unictype/property-id-continue-tests: Likewise.
8450         * modules/unictype/property-id-start-tests: Likewise.
8451         * modules/unictype/property-ideographic-tests: Likewise.
8452         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8453         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8454         * modules/unictype/property-ignorable-control-tests: Likewise.
8455         * modules/unictype/property-iso-control-tests: Likewise.
8456         * modules/unictype/property-join-control-tests: Likewise.
8457         * modules/unictype/property-left-of-pair-tests: Likewise.
8458         * modules/unictype/property-line-separator-tests: Likewise.
8459         * modules/unictype/property-logical-order-exception-tests: Likewise.
8460         * modules/unictype/property-lowercase-tests: Likewise.
8461         * modules/unictype/property-math-tests: Likewise.
8462         * modules/unictype/property-non-break-tests: Likewise.
8463         * modules/unictype/property-not-a-character-tests: Likewise.
8464         * modules/unictype/property-numeric-tests: Likewise.
8465         * modules/unictype/property-other-alphabetic-tests: Likewise.
8466         * modules/unictype/property-other-default-ignorable-code-point-tests:
8467         Likewise.
8468         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8469         * modules/unictype/property-other-id-continue-tests: Likewise.
8470         * modules/unictype/property-other-id-start-tests: Likewise.
8471         * modules/unictype/property-other-lowercase-tests: Likewise.
8472         * modules/unictype/property-other-math-tests: Likewise.
8473         * modules/unictype/property-other-uppercase-tests: Likewise.
8474         * modules/unictype/property-paired-punctuation-tests: Likewise.
8475         * modules/unictype/property-paragraph-separator-tests: Likewise.
8476         * modules/unictype/property-pattern-syntax-tests: Likewise.
8477         * modules/unictype/property-pattern-white-space-tests: Likewise.
8478         * modules/unictype/property-private-use-tests: Likewise.
8479         * modules/unictype/property-punctuation-tests: Likewise.
8480         * modules/unictype/property-quotation-mark-tests: Likewise.
8481         * modules/unictype/property-radical-tests: Likewise.
8482         * modules/unictype/property-sentence-terminal-tests: Likewise.
8483         * modules/unictype/property-soft-dotted-tests: Likewise.
8484         * modules/unictype/property-space-tests: Likewise.
8485         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8486         * modules/unictype/property-test-tests: Likewise.
8487         * modules/unictype/property-titlecase-tests: Likewise.
8488         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8489         * modules/unictype/property-unified-ideograph-tests: Likewise.
8490         * modules/unictype/property-uppercase-tests: Likewise.
8491         * modules/unictype/property-variation-selector-tests: Likewise.
8492         * modules/unictype/property-white-space-tests: Likewise.
8493         * modules/unictype/property-xid-continue-tests: Likewise.
8494         * modules/unictype/property-xid-start-tests: Likewise.
8495         * modules/unictype/property-zero-width-tests: Likewise.
8496         * modules/unictype/scripts-tests: Likewise.
8497         * modules/unictype/syntax-c-ident-tests: Likewise.
8498         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8499         * modules/unictype/syntax-java-ident-tests: Likewise.
8500         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8501         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8502         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8503         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8504         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8505         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8506         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8507         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8508         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8509         * modules/uniname/uniname-tests: Likewise.
8510         * modules/uninorm/canonical-decomposition-tests: Likewise.
8511         * modules/uninorm/compat-decomposition-tests: Likewise.
8512         * modules/uninorm/composition-tests: Likewise.
8513         * modules/uninorm/decomposing-form-tests: Likewise.
8514         * modules/uninorm/decomposition-tests: Likewise.
8515         * modules/uninorm/filter-tests: Likewise.
8516         * modules/uninorm/nfc-tests: Likewise.
8517         * modules/uninorm/nfd-tests: Likewise.
8518         * modules/uninorm/nfkc-tests: Likewise.
8519         * modules/uninorm/nfkd-tests: Likewise.
8520         * modules/uninorm/u8-normcmp-tests: Likewise.
8521         * modules/uninorm/u8-normcoll-tests: Likewise.
8522         * modules/uninorm/u16-normcmp-tests: Likewise.
8523         * modules/uninorm/u16-normcoll-tests: Likewise.
8524         * modules/uninorm/u32-normcmp-tests: Likewise.
8525         * modules/uninorm/u32-normcoll-tests: Likewise.
8526         * modules/unistdio/u8-asnprintf-tests: Likewise.
8527         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8528         * modules/unistdio/u8-vasprintf-tests: Likewise.
8529         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8530         * modules/unistdio/u8-vsprintf-tests: Likewise.
8531         * modules/unistdio/u16-asnprintf-tests: Likewise.
8532         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8533         * modules/unistdio/u16-vasprintf-tests: Likewise.
8534         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8535         * modules/unistdio/u16-vsprintf-tests: Likewise.
8536         * modules/unistdio/u32-asnprintf-tests: Likewise.
8537         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8538         * modules/unistdio/u32-vasprintf-tests: Likewise.
8539         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8540         * modules/unistdio/u32-vsprintf-tests: Likewise.
8541         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8542         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8543         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8544         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8545         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8546         * modules/unistr/u8-check-tests: Likewise.
8547         * modules/unistr/u8-chr-tests: Likewise.
8548         * modules/unistr/u8-cmp-tests: Likewise.
8549         * modules/unistr/u8-cmp2-tests: Likewise.
8550         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8551         * modules/unistr/u8-cpy-tests: Likewise.
8552         * modules/unistr/u8-mblen-tests: Likewise.
8553         * modules/unistr/u8-mbsnlen-tests: Likewise.
8554         * modules/unistr/u8-mbtouc-tests: Likewise.
8555         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8556         * modules/unistr/u8-mbtoucr-tests: Likewise.
8557         * modules/unistr/u8-move-tests: Likewise.
8558         * modules/unistr/u8-next-tests: Likewise.
8559         * modules/unistr/u8-prev-tests: Likewise.
8560         * modules/unistr/u8-set-tests: Likewise.
8561         * modules/unistr/u8-stpcpy-tests: Likewise.
8562         * modules/unistr/u8-stpncpy-tests: Likewise.
8563         * modules/unistr/u8-strcat-tests: Likewise.
8564         * modules/unistr/u8-strcmp-tests: Likewise.
8565         * modules/unistr/u8-strcoll-tests: Likewise.
8566         * modules/unistr/u8-strcpy-tests: Likewise.
8567         * modules/unistr/u8-strdup-tests: Likewise.
8568         * modules/unistr/u8-strlen-tests: Likewise.
8569         * modules/unistr/u8-strmblen-tests: Likewise.
8570         * modules/unistr/u8-strmbtouc-tests: Likewise.
8571         * modules/unistr/u8-strncat-tests: Likewise.
8572         * modules/unistr/u8-strncmp-tests: Likewise.
8573         * modules/unistr/u8-strncpy-tests: Likewise.
8574         * modules/unistr/u8-strnlen-tests: Likewise.
8575         * modules/unistr/u8-to-u16-tests: Likewise.
8576         * modules/unistr/u8-to-u32-tests: Likewise.
8577         * modules/unistr/u8-uctomb-tests: Likewise.
8578         * modules/unistr/u16-check-tests: Likewise.
8579         * modules/unistr/u16-chr-tests: Likewise.
8580         * modules/unistr/u16-cmp-tests: Likewise.
8581         * modules/unistr/u16-cmp2-tests: Likewise.
8582         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8583         * modules/unistr/u16-cpy-tests: Likewise.
8584         * modules/unistr/u16-mblen-tests: Likewise.
8585         * modules/unistr/u16-mbsnlen-tests: Likewise.
8586         * modules/unistr/u16-mbtouc-tests: Likewise.
8587         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8588         * modules/unistr/u16-mbtoucr-tests: Likewise.
8589         * modules/unistr/u16-move-tests: Likewise.
8590         * modules/unistr/u16-next-tests: Likewise.
8591         * modules/unistr/u16-prev-tests: Likewise.
8592         * modules/unistr/u16-set-tests: Likewise.
8593         * modules/unistr/u16-stpcpy-tests: Likewise.
8594         * modules/unistr/u16-stpncpy-tests: Likewise.
8595         * modules/unistr/u16-strcat-tests: Likewise.
8596         * modules/unistr/u16-strcmp-tests: Likewise.
8597         * modules/unistr/u16-strcoll-tests: Likewise.
8598         * modules/unistr/u16-strcpy-tests: Likewise.
8599         * modules/unistr/u16-strdup-tests: Likewise.
8600         * modules/unistr/u16-strlen-tests: Likewise.
8601         * modules/unistr/u16-strmblen-tests: Likewise.
8602         * modules/unistr/u16-strmbtouc-tests: Likewise.
8603         * modules/unistr/u16-strncat-tests: Likewise.
8604         * modules/unistr/u16-strncmp-tests: Likewise.
8605         * modules/unistr/u16-strncpy-tests: Likewise.
8606         * modules/unistr/u16-strnlen-tests: Likewise.
8607         * modules/unistr/u16-to-u32-tests: Likewise.
8608         * modules/unistr/u16-to-u8-tests: Likewise.
8609         * modules/unistr/u16-uctomb-tests: Likewise.
8610         * modules/unistr/u32-check-tests: Likewise.
8611         * modules/unistr/u32-chr-tests: Likewise.
8612         * modules/unistr/u32-cmp-tests: Likewise.
8613         * modules/unistr/u32-cmp2-tests: Likewise.
8614         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8615         * modules/unistr/u32-cpy-tests: Likewise.
8616         * modules/unistr/u32-mblen-tests: Likewise.
8617         * modules/unistr/u32-mbsnlen-tests: Likewise.
8618         * modules/unistr/u32-mbtouc-tests: Likewise.
8619         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8620         * modules/unistr/u32-mbtoucr-tests: Likewise.
8621         * modules/unistr/u32-move-tests: Likewise.
8622         * modules/unistr/u32-next-tests: Likewise.
8623         * modules/unistr/u32-prev-tests: Likewise.
8624         * modules/unistr/u32-set-tests: Likewise.
8625         * modules/unistr/u32-stpcpy-tests: Likewise.
8626         * modules/unistr/u32-stpncpy-tests: Likewise.
8627         * modules/unistr/u32-strcat-tests: Likewise.
8628         * modules/unistr/u32-strcmp-tests: Likewise.
8629         * modules/unistr/u32-strcoll-tests: Likewise.
8630         * modules/unistr/u32-strcpy-tests: Likewise.
8631         * modules/unistr/u32-strdup-tests: Likewise.
8632         * modules/unistr/u32-strlen-tests: Likewise.
8633         * modules/unistr/u32-strmblen-tests: Likewise.
8634         * modules/unistr/u32-strmbtouc-tests: Likewise.
8635         * modules/unistr/u32-strncat-tests: Likewise.
8636         * modules/unistr/u32-strncmp-tests: Likewise.
8637         * modules/unistr/u32-strncpy-tests: Likewise.
8638         * modules/unistr/u32-strnlen-tests: Likewise.
8639         * modules/unistr/u32-to-u16-tests: Likewise.
8640         * modules/unistr/u32-to-u8-tests: Likewise.
8641         * modules/unistr/u32-uctomb-tests: Likewise.
8642         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8643         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8644         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8645         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8646         * modules/uniwidth/u8-strwidth-tests: Likewise.
8647         * modules/uniwidth/u8-width-tests: Likewise.
8648         * modules/uniwidth/u16-strwidth-tests: Likewise.
8649         * modules/uniwidth/u16-width-tests: Likewise.
8650         * modules/uniwidth/u32-strwidth-tests: Likewise.
8651         * modules/uniwidth/u32-width-tests: Likewise.
8652         * modules/uniwidth/width-tests: Likewise.
8653
8654 2010-05-18  Richard Jones  <rjones@redhat.com>
8655
8656         doc: users.txt: list hivex
8657         * users.txt: Add hivex.
8658
8659 2010-05-18  Richard Jones  <rjones@redhat.com>
8660
8661         doc: users.txt: list febootstrap
8662         * users.txt: Add febootstrap.
8663
8664 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8665
8666         bootstrap: fix an error when gnulib is not used as a git submodule
8667         * build-aux/bootstrap (gnulib_path): If its length is zero then
8668         assign "gnulib" to it.
8669         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8670
8671 2010-05-16  Bruno Haible  <bruno@clisp.org>
8672
8673         Avoid autoconf warnings about AM_ICONV.
8674         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8675         2.64.
8676
8677 2010-05-16  Bruno Haible  <bruno@clisp.org>
8678
8679         absolute-header: Make the macro usable in more situations.
8680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8681         from gl_ABSOLUTE_HEADER.
8682         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8683
8684 2010-05-16  James Youngman  <jay@gnu.org>
8685
8686         doc: update users.txt
8687         * users.txt: Add CSSC.
8688
8689 2010-05-16  Jim Meyering  <meyering@redhat.com>
8690
8691         init.sh: fix an error in the previous change; add more comments
8692         * tests/init.sh: Compare exit code in loop against 9, not 2.
8693         Patch by Bruno Haible.
8694         Make the two tests more similar by adding an empty "then" clause.
8695         Add comments.
8696
8697         init.sh: avoid unnecessary shell re-exec
8698         * tests/init.sh: Improve the re-exec-required check to first test the
8699         current shell.  If it passes the test, do not search for a shell that
8700         does pass, and do not re-exec.  This test is particularly contorted to
8701         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8702         of $(...) evokes a syntax error and causes immediate shell exit with
8703         status 2.  Bruno Haible reported that the re-exec made it impossible
8704         to single-step through any init.sh-using script.
8705
8706 2010-05-16  Bruno Haible  <bruno@clisp.org>
8707
8708         Fix collision between gnulib's and libintl's printf replacements.
8709         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8710         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8711         (printf): When using GNU C, map the __printf__ function to rpl_printf
8712         via __asm__. When not using GNU C, define rpl_printf instead of
8713         __printf__.
8714         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8715         commit.
8716         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8717         commit.
8718         * m4/asm-underscore.m4: New file.
8719         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8720         * modules/stdio (Files): Add m4/asm-underscore.m4.
8721         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8722         Reported by Ben Pfaff.
8723
8724 2010-05-16  Bruno Haible  <bruno@clisp.org>
8725
8726         verify: Avoid skipping the test on openSUSE 11.0.
8727         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8728
8729 2010-05-13  Bruno Haible  <bruno@clisp.org>
8730
8731         Avoid useless warnings from G++.
8732         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8733         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8734         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8735
8736 2010-05-11  Jim Meyering  <meyering@redhat.com>
8737
8738         maint.mk: tweak preceding change
8739         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8740         regexps tighter by anchoring at EOL, and make the new group "shy"
8741         for slightly decreased overhead.
8742
8743 2010-05-11  Eric Blake  <eblake@redhat.com>
8744
8745         maint.mk: gnulib doesn't guarantee NSIG
8746         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8747
8748 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8749
8750         test-pwrite.c: Remove unused variable declaration.
8751         * tests/test-pwrite.c (main): Remove read_buf declaration.
8752
8753         Remove useless test-pwrite.sh file.
8754         * tests/test-pwrite.sh: Delete file.
8755         * modules/pwrite-tests: Remove references.
8756         Reported by Bruno Haible.
8757
8758 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8759
8760         init.sh: fix a typo
8761         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8762
8763 2010-05-10  Jim Meyering  <meyering@redhat.com>
8764
8765         maint.mk: avoid using a temporary file in the always-defined-macros check
8766         * top/maint.mk (.re-defmac): Remove rule.
8767         (gl_trap_): Remove definition.
8768         (sc_prohibit_always-defined_macros): Rewrite not to create and
8769         depend on a temporary file.  Instead, depend on GNU grep's ability
8770         to read a list of regular expressions from stdin when given "-f -".
8771
8772 2010-05-09  Bruno Haible  <bruno@clisp.org>
8773
8774         Update to GNU gettext 0.18, part 1.
8775         * m4/gettext.m4: Update to GNU gettext 0.18.
8776         * m4/intl.m4: Likewise.
8777         * m4/po.m4: Likewise.
8778         * modules/gettext (Files): Add m4/fcntl-o.m4.
8779         (configure.ac): Require gettext infrastructure from version 0.18.
8780
8781 2010-05-09  Jim Meyering  <meyering@redhat.com>
8782
8783         init.sh: enable MALLOC_PERTURB_
8784         * tests/init.sh: Enable glibc's malloc-perturbing option.
8785
8786         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8787         With my recent change in init.sh from the two-line form:
8788             -#   : ${srcdir=.}
8789             -#   . "$srcdir/init.sh"; path_prepend_ .
8790             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8791         I noticed that using the one-line form would cause this test
8792         to fail with a false-positive, or to stop working altogether,
8793         depending on whether help-version changed or all the tests did.
8794         * top/maint.mk (_hv_regex): Remove this definition.
8795         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8796         (_hv_regex_strong): Use a stronger regex to check for conformance.
8797         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8798         Give a separate diagnostic for lack of conforming use.
8799
8800         maint.mk: prohibit definition of symbols defined by gnulib
8801         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8802         definition of symbols defined by gnulib.
8803
8804 2010-05-09  Bruno Haible  <bruno@clisp.org>
8805
8806         acl: Avoid test failure on Cygwin-hosted mingw.
8807         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8808
8809 2010-05-09  Bruno Haible  <bruno@clisp.org>
8810
8811         error: Use system's fcntl function.
8812         * lib/error.c (fcntl): Undefine.
8813
8814 2010-05-09  Jim Meyering  <meyering@redhat.com>
8815
8816         verify: adjust formatting to be more consistent
8817         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8818         argument-list '('s, and after one comma.
8819
8820 2010-05-09  Bruno Haible  <bruno@clisp.org>
8821
8822         error: More reliable output on mingw.
8823         * lib/error.c: Include <windows.h>.
8824         (is_open): New function.
8825         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8826         defined.
8827
8828 2010-05-09  Bruno Haible  <bruno@clisp.org>
8829
8830         vasnprintf: Fix syntax errors in libintl build on mingw.
8831         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8832         pad_ourselves and prec_ourselves after use.
8833
8834 2010-05-08  Bruno Haible  <bruno@clisp.org>
8835
8836         * lib/config.charset: Update comments for Cygwin 1.7.
8837         * lib/localcharset.c: Likewise.
8838
8839 2010-05-07  Jim Meyering  <meyering@redhat.com>
8840
8841         init.sh: improve comments
8842         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8843         . "${srcdir=.}/init.sh"; path_prepend_ .
8844         Add a note about path_prepend_ and the alternative of using
8845         TESTS_ENVIRONMENT.
8846
8847 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8848
8849         exclude: Unescape hashed patterns in wildcard mode.
8850         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8851         to the hash list.
8852         * tests/test-exclude8.sh: New test case.
8853         * modules/exclude-tests: Add new test.
8854
8855 2010-05-05  Eric Blake  <eblake@redhat.com>
8856
8857         verify: automate tests
8858         * modules/verify-tests: New module.
8859         * tests/test-verify.sh: New file.
8860         * tests/test-verify.c: Guard each negative test with a unique id.
8861         Also avoid warning about unused left hand of comma expressions.
8862
8863 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8864
8865         Further improvements to verify.h, suggested by Eric Blake.
8866         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8867         the GL_* versions, to avoid collision with OpenGL.
8868         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8869         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8870         than testing merely whether it's defined.
8871
8872         Modify verify.h to pacify gcc -Wredundant_decls.
8873         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8874         These use the prefix "GL_" since they're likely to be useful elsewhere.
8875         We may need to break them out into a different .h file.
8876         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8877         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8878         of verify_function__.
8879
8880 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8881
8882         Tests for module pwrite.
8883         * modules/pwrite-tests: New file.
8884         * tests/test-pwrite.sh: New file.
8885         * tests/test-pwrite.c: New file.
8886
8887         New module pwrite.
8888         * lib/unistd.in.h (pwrite): New declaration.
8889         * lib/pwrite.c: New file, from glibc with modifications.
8890         * m4/pwrite.m4: New file.
8891         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8892         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8893         REPLACE_PWRITE.
8894         * modules/pwrite: New file.
8895         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8896         REPLACE_PWRITE.
8897         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8898         * doc/posix-functions/pwrite.texi: Mention the new module.
8899
8900 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8901
8902         pread: Update documentation.
8903         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8904
8905 2010-05-04  Eric Blake  <eblake@redhat.com>
8906
8907         docs: update cygwin progress
8908         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8909         this bug.
8910         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8911         Added in cygwin 1.7.2.
8912         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8913         Likewise.
8914         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8915         Likewise.
8916         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8917         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8918         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8919         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8920         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8921         Mention nproc module.
8922         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8923         bug in cygwin 1.7.5 addition.
8924         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8925         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8926         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8927         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8928         1.7.5.
8929         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8930         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8931         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8932         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8933         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8934         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8935         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8936         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8937         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8938         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8939         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8940         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8941         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8942         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8943         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8944         Likewise.
8945         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8946         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8947         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8948         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8949         Likewise.
8950         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8951         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8952         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8953         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8954         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8955         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8956         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8957         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8958         Likewise.
8959         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8960         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8961         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8962         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8963         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8964         Likewise.
8965         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8966         Likewise.
8967         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8968         Likewise.
8969         * doc/glibc-functions/xdrrec_endofrecord.texi
8970         (xdrrec_endofrecord): Likewise.
8971         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8972         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8973         Likewise.
8974         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8975         Likewise.
8976
8977 2010-05-04  Jim Meyering  <meyering@redhat.com>
8978
8979         gendocs.sh: make its "-s FILE" option more useful
8980         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8981         $PACKAGE to reflect the probably-different basename of "FILE".
8982
8983 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8984
8985         bootstrap: don't ignore download_po_files failure
8986         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8987         failure.
8988
8989 2010-05-03  Jim Meyering  <meyering@redhat.com>
8990
8991         maint.mk: allow to pass options to gendocs.sh
8992         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8993         (gendocs_options_): New overridable variable.
8994
8995         gnu-web-doc-update: don't ignore configure or build failure
8996         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8997
8998         announce-gen: backslash-escape '@'s in --help output
8999         * build-aux/announce-gen: Fix syntax errors.
9000
9001         maint.mk, announce-gen: allow project-specific announcement mail headers
9002         * top/maint.mk (translation_project_): Define default.
9003         (announcement_Cc_, announcement_mail_headers_): Likewise.
9004         (announcement): Invoke announce-gen with new --mail-headers option.
9005         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9006
9007         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9008         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9009         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9010         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9011         line in the "err2" output file when running "make check" in verbose
9012         mode (i.e., with set -x enabled).
9013
9014 2010-05-03  Bruno Haible  <bruno@clisp.org>
9015
9016         wctob: Fix for weird platforms.
9017         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9018         argument value.
9019
9020 2010-05-03  Jim Meyering  <meyering@redhat.com>
9021
9022         maint.mk: prohibit unwarranted use of <strings.h>
9023         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9024         strings.h in a file that does not also use strcasecmp, strncasecmp,
9025         ffs or ffsll.
9026
9027         maint.mk: remove obsolete comments
9028         * top/maint.mk: Remove stale, commented-out rules.
9029
9030 2010-05-02  Bruno Haible  <bruno@clisp.org>
9031
9032         wcwidth: Declare also when it's aliased.
9033         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9034         macro.
9035
9036 2010-05-02  Bruno Haible  <bruno@clisp.org>
9037
9038         Fix regression from 2010-04-25.
9039         * gnulib-tool (func_modules_transitive_closure): Check the status of
9040         all modules, not only of the tests that are of the form foo-tests where
9041         foo is a module.
9042
9043 2010-05-02  Bruno Haible  <bruno@clisp.org>
9044
9045         wctob: Work around nasty Cygwin 1.7.2 bug.
9046         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9047         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9048
9049 2010-05-01  Bruno Haible  <bruno@clisp.org>
9050
9051         fpurge: Sharper test.
9052         * tests/test-fpurge.c (main): Add one more ftell check.
9053         * modules/fpurge-tests (Depends-on): Add ftell.
9054         Suggested by Eric Blake.
9055
9056 2010-05-01  Bruno Haible  <bruno@clisp.org>
9057
9058         ftello: Another test.
9059         * tests/test-ftello3.c: New file.
9060         * modules/ftello-tests (Files): Add it.
9061         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9062         MOSTLYCLEANFILES.
9063
9064         ftell: Another test.
9065         * tests/test-ftell3.c: New file.
9066         * modules/ftell-tests (Files): Add it.
9067         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9068         MOSTLYCLEANFILES.
9069
9070 2010-05-01  Bruno Haible  <bruno@clisp.org>
9071
9072         ftell, ftello: Work around Solaris bug.
9073         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9074         * lib/ftello.c: Include stdio-impl.h.
9075         (ftello): On Solaris, when _IOWRT is set, compute the result without
9076         looking at _IOREAD.
9077         * modules/ftello (Files): Add lib/stdio-impl.h.
9078         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9079         * doc/posix-functions/ftello.texi: Likewise.
9080         Reported by Eric Blake.
9081
9082 2010-05-01  Bruno Haible  <bruno@clisp.org>
9083
9084         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9085         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9086         the _IOWRT flag is also set.
9087
9088 2010-05-01  Bruno Haible  <bruno@clisp.org>
9089
9090         Fix doc about a HP-UX stdio bug.
9091         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9092         * doc/posix-functions/ftello.texi: Likewise.
9093
9094 2010-05-01  Bruno Haible  <bruno@clisp.org>
9095
9096         lseek test: Fix failure on Solaris.
9097         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9098         output.
9099
9100 2010-04-30  Jim Meyering  <meyering@redhat.com>
9101
9102         bootstrap: don't ignore failure to generate po*/Makevars
9103         * build-aux/bootstrap (with_gettext): Don't ignore failure
9104         to create po/Makevars or runtime-po/Makevars.
9105
9106 2010-04-29  Eric Blake  <eblake@redhat.com>
9107
9108         headers: relax license to LGPLv2+
9109         * modules/fcntl-h (License): Relax license.
9110         * modules/getopt-posix (License): Likewise.
9111         * modules/locale (License): Likewise.
9112         * modules/math (License): Likewise.
9113         * modules/pty (License): Likewise.
9114         * modules/sched (License): Likewise.
9115         * modules/search (License): Likewise.
9116         * modules/spawn (License): Likewise.
9117         * modules/stdarg (License): Likewise.
9118         * modules/sysexits (License): Likewise.
9119
9120 2010-04-29  Jim Meyering  <meyering@redhat.com>
9121
9122         inttypes: relax license to LGPLv2+
9123         * modules/inttypes (License): Relax license.
9124
9125 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9126
9127         * top/maint.mk (indent): Run twice to produce idempotent results.
9128
9129 2010-04-28  Bruno Haible  <bruno@clisp.org>
9130
9131         getdate: Generate getdate.c in the source directory.
9132         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9133         MOSTLYCLEANFILES.
9134         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9135
9136 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9137
9138         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9139         is not declared as a const *; avoid warnings in that case.
9140
9141 2010-04-28  Eric Blake  <eblake@redhat.com>
9142
9143         canonicalize-lgpl: avoid compiler warning
9144         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9145         declaration' / 'extraneous semicolon' warning with some compilers.
9146         Reported by Andreas Gruenbacher.
9147
9148 2010-04-28  Jim Meyering  <meyering@redhat.com>
9149
9150         init.sh: ensure a more reliable exit status when exiting via trap
9151         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9152         Inspired by patches from Dmitry V. Levin.
9153         Also trap on signal 3 (SIGQUIT).
9154
9155 2010-04-27  Bruno Haible  <bruno@clisp.org>
9156
9157         Update doc about utimes().
9158         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9159         'utimens' module.
9160         Reported by Andreas Gruenbacher <agruen@suse.de>.
9161
9162 2010-04-27  Eric Blake  <eblake@redhat.com>
9163
9164         full-read, full-write: relax license
9165         * modules/full-read (License): Drop to LGPLv2+.
9166         * modules/full-write (License): Likewise.
9167         * modules/safe-read (License): Likewise.
9168         * modules/safe-write (License): Likewise.
9169
9170         pthread: mention library for linking
9171         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9172
9173 2010-04-27  Jim Meyering  <meyering@redhat.com>
9174
9175         maint.mk: fix a bug introduced in last change
9176         * top/maint.mk (gl_assured_headers_): Now that all names are on
9177         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9178         is not anchored to end of word, it should be adequate.
9179
9180         maint.mk: avoid side-effect in latest syntax-check
9181         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9182         to run commands via $(shell...), and hence to incur cost only when
9183         the new rule is actually run.
9184
9185         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9186         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9187         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9188         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9189         (gl_assured_headers_, az_, AZ_): Define.
9190         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9191
9192 2010-04-26  Jim Meyering  <jim@meyering.net>
9193             Bruno Haible  <bruno@clisp.org>
9194
9195         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9196         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9197         Prompted by an exchange with Gilles Espinasse.
9198
9199 2010-04-26  Jim Meyering  <meyering@redhat.com>
9200
9201         git-version-gen: aesthetic tweak
9202         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9203         so that the command remains on a single line.
9204
9205 2010-04-26  Eric Blake  <eblake@redhat.com>
9206
9207         git-version-gen: allow use on EBCDIC hosts
9208         * build-aux/git-version-gen (dirty): Use literal rather than tying
9209         ourselves to ascii.
9210         Reported by Steve Goetze.
9211
9212 2010-04-25  Bruno Haible  <bruno@clisp.org>
9213
9214         netdb: Add support for GNULIB_POSIXCHECK.
9215         * lib/netdb.in.h: Include warn-on-use.h.
9216         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9217         functions are used when GNULIB_POSIXCHECK is defined and the
9218         getaddrinfo module is not in use.
9219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9220         freeaddrinfo, gai_strerror, getnameinfo are declared.
9221         * modules/netdb (Depends-on): Add warn-on-use.
9222         (Makefile.am): Include warn-on-use.h in netdb.h.
9223
9224 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9225
9226         build: avoid "make check" failure without .git/ directory
9227         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9228         there is no .git/ directory.
9229
9230 2010-04-25  Bruno Haible  <bruno@clisp.org>
9231
9232         ptsname: Fix misuse of ttyname_r.
9233         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9234         of errno.
9235
9236 2010-04-25  Bruno Haible  <bruno@clisp.org>
9237
9238         ttyname_r: Make it work on Solaris 10.
9239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9240         if the system function has the POSIX declaration. Test whether the
9241         function fails if the buffer is less than 128 bytes large.
9242         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9243         system's ttyname_r function. Provide a reasonably large buffer.
9244         * modules/ttyname_r (Depends-on): Add extensions.
9245         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9246
9247 2010-04-25  Bruno Haible  <bruno@clisp.org>
9248
9249         Use the 'extensions' module for some more functions on Solaris.
9250         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9251         module.
9252         * doc/posix-functions/ctime_r.texi: Likewise.
9253         * doc/posix-functions/getgrgid_r.texi: Likewise.
9254         * doc/posix-functions/getgrnam_r.texi: Likewise.
9255         * doc/posix-functions/getpwnam_r.texi: Likewise.
9256         * doc/posix-functions/getpwuid_r.texi: Likewise.
9257         * doc/posix-functions/readdir_r.texi: Likewise.
9258         * doc/posix-functions/sigwait.texi: Likewise.
9259         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9260         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9261
9262 2010-04-25  Bruno Haible  <bruno@clisp.org>
9263
9264         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9265         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9266         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9267         * lib/ttyname_r.c: Include <limits.h>.
9268         (ttyname_r): Define using the system's ttyname_r function, if it exists
9269         and not on Solaris.
9270         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9271         set.
9272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9273         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9274         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9275         Reported by Simon Josefsson.
9276
9277 2010-04-25  Bruno Haible  <bruno@clisp.org>
9278
9279         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9280         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9281         * doc/posix-functions/ctime_r.texi: Likewise.
9282         * doc/posix-functions/getgrgid_r.texi: Likewise.
9283         * doc/posix-functions/getgrnam_r.texi: Likewise.
9284         * doc/posix-functions/getlogin_r.texi: Likewise.
9285         * doc/posix-functions/getpwnam_r.texi: Likewise.
9286         * doc/posix-functions/getpwuid_r.texi: Likewise.
9287         * doc/posix-functions/readdir_r.texi: Likewise.
9288         * doc/posix-functions/sigwait.texi: Likewise.
9289         * doc/posix-functions/ttyname_r.texi: Likewise.
9290         Reported by Simon Josefsson.
9291
9292 2010-04-25  Bruno Haible  <bruno@clisp.org>
9293
9294         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
9295         * gnulib-tool (func_usage): Document that --with-*-tests options apply
9296         also to --create-testdir.
9297         (func_acceptable): Don't consider the status of *-tests modules here.
9298         (func_modules_transitive_closure): Consider it here, before including a
9299         test module.
9300         (func_import, func_create_testdir): Set inc_all_direct_tests,
9301         inc_all_indirect_tests.
9302         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
9303         --create-testdir and --create-megatestdir.
9304
9305 2010-04-25  Bruno Haible  <bruno@clisp.org>
9306
9307         gnulib-tool: Add --without-*-tests options.
9308         * gnulib-tool (func_usage): Document the --without-*-tests options.
9309         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
9310         excl_unportable_tests): New variables.
9311         Fail if they are specified with --import or --update.
9312         (func_acceptable): Respect the excl_*_tests variables.
9313         (func_import): Set the excl_*_tests variables to empty.
9314
9315 2010-04-25  Simon Josefsson  <simon@josefsson.org>
9316             Bruno Haible  <bruno@clisp.org>
9317
9318         Work around a MacOS X 10.4 bug with openpty.
9319         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
9320         * tests/test-openpty.c (main): Close the master side explicitly.
9321
9322 2010-04-25  Bruno Haible  <bruno@clisp.org>
9323
9324         strnlen: Fix a C++ test error on MacOS X and Solaris.
9325         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
9326         the function is not declared.
9327         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
9328         Simon Josefsson.
9329
9330 2010-04-24  Bruno Haible  <bruno@clisp.org>
9331
9332         Avoid a gcc warning.
9333         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
9334         of correct type for %08lx directive.
9335         Reported by Eric Blake.
9336
9337 2010-04-24  Bruno Haible  <bruno@clisp.org>
9338
9339         vasnprintf: Correct errno value in case of out-of-memory.
9340         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9341         or sprintf. Use the errno value from SNPRINTF or sprintf.
9342         Reported by Ian Beckwith <ianb@erislabs.net>.
9343
9344 2010-04-24  Bruno Haible  <bruno@clisp.org>
9345
9346         ansi-c++-opt: Find correct compiler when cross-compiling.
9347         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9348         AC_CHECK_PROGS.
9349         Reported by Simon Josefsson.
9350
9351 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9352
9353         vc-list-files: Add support for subversion
9354         * build-aux/vc-list-files: Use "svn list" to generate the list of
9355         files controlled by subversion.
9356
9357 2010-04-23  Jim Meyering  <meyering@redhat.com>
9358
9359         vc-list-files tests: convert to use init.sh
9360         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9361         path_prepend_.
9362         Use Exit, not exit.
9363         Use skip_ rather than open coding it.
9364         Remove trap set-up and compare definitions.
9365         * tests/test-vc-list-files-git.sh: Likewise.
9366         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9367
9368 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9369
9370         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9371         backup files.
9372
9373 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9374
9375         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9376
9377 2010-04-20  Eric Blake  <eblake@redhat.com>
9378
9379         tests: be robust to ignored SIGPIPE
9380         * tests/test-select-in.sh: Consume all output.
9381         * tests/test-lseek.sh: Check correct exit status, while avoiding
9382         EPIPE.
9383
9384 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9385             Bruno Haible  <bruno@clisp.org>
9386
9387         visibility: Don't use -fvisibility if it leads to a warning.
9388         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9389         yes, don't pretend that visibility works if it leads to a warning.
9390         Reported by Mike Gran <spk121@yahoo.com>.
9391
9392 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9393
9394         * build-aux/bootstrap: Use "git -h" for testing for supported options
9395         instead of "git --help".  The short-form option only shows a summary,
9396         and doesn't layout the full man page.  Grep for the full option name
9397         in the summary, too.
9398
9399 2010-04-19  Bruno Haible  <bruno@clisp.org>
9400
9401         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9402         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9403         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9404         mention of RELOCATABLE_STRIP.
9405         Reported by Sylvain Beucler <beuc@beuc.net>.
9406
9407 2010-04-19  Bruno Haible  <bruno@clisp.org>
9408
9409         * lib/diffseq.h: Fix typo in comment.
9410         Reported by Eric Blake.
9411
9412 2010-04-19  Bruno Haible  <bruno@clisp.org>
9413
9414         ioctl: Move autoconf macro to a .m4 file.
9415         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9416         * modules/ioctl (Files): Add it.
9417         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9418         Reported by Ian Beckwith <ianb@erislabs.net>.
9419
9420 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9421             Bruno Haible  <bruno@clisp.org>
9422
9423         diffseq: Accommodate use-case with abstract arrays.
9424         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9425         is not defined.
9426         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9427         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9428
9429 2010-04-18  Bruno Haible  <bruno@clisp.org>
9430
9431         * doc/posix-headers/stdbool.texi: More precise wording.
9432
9433 2010-04-17  Jim Meyering  <meyering@redhat.com>
9434
9435         maint.mk: use gnu-style indentation in an embedded perl script
9436         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9437         Rename variable: s/two/last_two_bytes/
9438
9439 2010-04-16  Eric Blake  <eblake@redhat.com>
9440
9441         test-stdbool: skip test that fails with Solaris CC
9442         * tests/test-stdbool.c (f): Skip test that causes compilation
9443         error under buggy C++ compiler.
9444         * lib/stdbool.in.h: Document the limitation.
9445         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9446
9447         setenv: allow compilation with C++
9448         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9449         register keyword.
9450
9451         stdint: allow test to pass with C++
9452         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9453
9454         getopt: allow compilation with C++
9455         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9456         struct.
9457         * lib/getopt.c (_getopt_internal_r): Use correct type.
9458         Reported by Dagobert Michelson, via Joel E. Denny.
9459
9460 2010-04-16  Bruno Haible  <bruno@clisp.org>
9461
9462         Override netdb.h always.
9463         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9464         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9465         Reported by Ludovic Courtès <ludo@gnu.org>.
9466
9467 2010-04-15  Bruno Haible  <bruno@clisp.org>
9468
9469         openpty: Fix mistake from 2010-03-21.
9470         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9471         Reported by Simon Josefsson.
9472
9473 2010-04-15  Eric Blake  <eblake@redhat.com>
9474
9475         test-forkpty: fix expected signature
9476         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9477         Reported by Simon Josefsson.
9478
9479 2010-04-15  Jim Meyering  <meyering@redhat.com>
9480
9481         maint.mk: texinfo_suffix_re_: correct the default regexp
9482         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9483
9484         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9485         make it configurable via texinfo_suffix_re_.
9486
9487 2010-04-14  Eric Blake  <eblake@redhat.com>
9488
9489         strtok_r: relax license to LGPLv2+
9490         * modules/strtok_r (License): Relax license.
9491         Reported by Matthias Bolte.
9492
9493 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9494
9495         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9496         version 1.4.4 by default instead of requiring the libgcrypt
9497         version used during build.  This makes it possible to use the
9498         application with older but still binary compatible libgcrypt
9499         versions.
9500
9501 2010-04-13  Eric Blake  <eblake@redhat.com>
9502
9503         getopt-gnu: match recent glibc fixes and posix ruling
9504         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9505         '+' handling, when requesting extensions.
9506         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9507         'W;' handling.
9508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9509         * doc/posix-functions/getopt.texi (getopt): Document this.
9510         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9511         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9512         Likewise.
9513
9514         getopt: merge bug fixes from glibc
9515         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9516         diagnostics.  Honor '+:' correctly.  Reject ';'.
9517
9518         getopt-posix: detect MacOS bug
9519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9520         optind when missing a required argument.
9521         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9522         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9523         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9524         Likewise.
9525
9526         getopt-posix: avoid spurious failure on Solaris
9527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9528         an indicator that setting optind=1 is sufficient for reset.
9529
9530         getopt-posix: avoid spurious failure on FreeBSD
9531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9532         in POSIX mode, since the m4 test uses it.
9533
9534         gnulib-tool: silence warning on BSD sh
9535         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9536
9537 2010-04-13  Jim Meyering  <meyering@redhat.com>
9538
9539         doc: users.txt: GNU patch now uses gnulib
9540         * users.txt: Add patch.
9541
9542 2010-04-12  Jim Meyering  <meyering@redhat.com>
9543
9544         maint.mk: generate more concise timing data for syntax-check rules
9545         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9546         " done" from each line that reports a syntax-check test duration.
9547
9548 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9549
9550         git-version-gen: use "git update-index..." rather than "git status"
9551         * build-aux/git-version-gen: Use git update-index --refresh, not
9552         "git status".  With some versions of git, "git status" would fail
9553         to update the index and result in an unwarranted "-dirty" suffix.
9554
9555 2010-04-11  Jim Meyering  <meyering@redhat.com>
9556
9557         openat: correct formatting (no semantic change)
9558         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9559         Suggested by Bruno Haible.
9560
9561 2010-04-11  Bruno Haible  <bruno@clisp.org>
9562
9563         Stricter declaration checking in testdirs.
9564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9565         If for_tests is true, augment AM_CPPFLAGS to define
9566         GNULIB_STRICT_CHECKING.
9567         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9568         GNULIB_STRICT_CHECKING is defined, verify that the function is
9569         declared.
9570
9571 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9572             Bruno Haible  <bruno@clisp.org>
9573
9574         libunistring: Improve configure output.
9575         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9576         Don't say "consider installing GNU libunistring" when checking again
9577         with libiconv.
9578
9579 2010-04-11  Bruno Haible  <bruno@clisp.org>
9580
9581         libunistring: Correct value of $LTLIBUNISTRING.
9582         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9583         correct the value of $LTLIBUNISTRING.
9584
9585 2010-04-11  Bruno Haible  <bruno@clisp.org>
9586
9587         havelib: Add static libraries to LIBS in the right order.
9588         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9589         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9590
9591 2010-04-11  Bruno Haible  <bruno@clisp.org>
9592
9593         libunistring: Detect libunistring also when it depends on libiconv.
9594         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9595         the second AC_LIB_HAVE_LINKFLAGS invocation.
9596
9597 2010-04-11  James Youngman  <jay@gnu.org>
9598
9599         close-stream: declare local scalars to be "const"
9600         * lib/close-stream.c (close_stream): Make boolean variables const
9601         to document the fact that we set but do not change them.
9602
9603 2010-04-11  Bruno Haible  <bruno@clisp.org>
9604
9605         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9606
9607 2010-04-11  Jim Meyering  <meyering@redhat.com>
9608
9609         maint.mk: don't include dist-check.mk
9610         * top/maint.mk: Remove bogus include directive.
9611
9612         maint.mk: improve empty-line-at-EOF check
9613         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9614         solution, rather than tail+Perl-based one.  The latter would read
9615         a few kilobytes from the end of each file, and did not handle empty
9616         files properly.
9617
9618         maint.mk: print the elapsed time for each syntax-check rule
9619         * top/maint.mk (sc_m_rules_): Save start time in a file.
9620         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9621         (local-check): Interpose the .z rules
9622
9623 2010-04-11  Jim Meyering  <meyering@redhat.com>
9624
9625         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9626         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9627         empty file with one that ends in an empty line.
9628
9629 2010-04-10  Bruno Haible  <bruno@clisp.org>
9630
9631         mkdir: Make it work on mingw64.
9632         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9633         * lib/mkdir.c: Update comment.
9634         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
9635
9636 2010-04-10  Bruno Haible  <bruno@clisp.org>
9637
9638         Don't override improved macro from newer autoconf.
9639         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9640         autoconf >= 2.62.
9641         Reported by Joel E. Denny <jdenny@clemson.edu>.
9642
9643 2010-04-10  Jim Meyering  <meyering@redhat.com>
9644
9645         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9646         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9647
9648         maint.mk: correct a diagnostic
9649         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9650         in diagnostic; now use $prohibit.
9651
9652 2010-04-10  Bruno Haible  <address@hidden>
9653
9654         fchownat: Fix a C++ test error on Solaris 8.
9655         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9656         the function does not exist.
9657
9658 2010-04-10  Bruno Haible  <bruno@clisp.org>
9659
9660         vasnprintf: Add more tests.
9661         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9662         (test_function): Test converting an invalid wide string.
9663
9664         vasnprintf: Correct handling of unconvertible wide string arguments.
9665         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9666         VASNPRINTF.
9667         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9668         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9669         smaller than the expected maximum need for the directive. Set errno to
9670         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9671         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9673         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9674         * modules/vasnprintf (Files): Add m4/printf.m4.
9675         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9676
9677 2010-04-10  Bruno Haible  <bruno@clisp.org>
9678
9679         vasnprintf: Fix crash in %ls directive.
9680         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9681         string is passed as argument to %ls, with no precision and no width.
9682         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9683
9684 2010-04-10  Bruno Haible  <bruno@clisp.org>
9685
9686         vasnprintf: Fix multiple test failures on mingw.
9687         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9688         _snprintf, or snwprintf, not _snwprintf.
9689
9690 2010-04-10  Bruno Haible  <bruno@clisp.org>
9691
9692         write: Fix a C++ test error on mingw.
9693         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9694
9695 2010-04-10  Bruno Haible  <bruno@clisp.org>
9696
9697         vasnprintf test: Reduce code duplication.
9698         * tests/test-vasnprintf.c (test_function): New function, extracted from
9699         test_vasnprintf.
9700         (test_vasnprintf, test_asnprintf): Invoke it.
9701
9702 2010-04-10  Bruno Haible  <bruno@clisp.org>
9703
9704         strnlen: Fix warning in C++ mode on MacOS X.
9705         * lib/string.in.h (strnlen): Use the modern idiom.
9706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9707         defining strnlen as a macro already in <config.h>.
9708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9709         REPLACE_STRNLEN.
9710         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9711         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9712
9713 2010-04-08  James Youngman  <jay@gnu.org>
9714
9715         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9716         the example.
9717
9718 2010-04-09  Jim Meyering  <meyering@redhat.com>
9719
9720         maint.mk: print better diagnostic when there is no $(_hv_file)
9721         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9722         announce that when $(_hv_file) (aka help-version) does not exist.
9723
9724         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9725         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9726         not try to interpret its random input bytes.  Jarno Rajahalme reported
9727         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9728         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9729         (mktempd_): Likewise, just in case.
9730
9731         ftruncate: add two years to projected module removal date: 2012
9732         * m4/ftruncate.m4: Adjust comments.
9733
9734         ftruncate: mark module as obsolete; even MinGW provides it, now
9735         * modules/ftruncate (Status): Obsolete.
9736         (Notice): Say that.
9737         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9739
9740 2010-04-08  Bruno Haible  <bruno@clisp.org>
9741
9742         Fix side effects from tests-related modules.
9743         * modules/dprintf-posix (Comment): New section.
9744         * modules/fprintf-posix (Comment): Likewise.
9745         * modules/obstack-printf-posix (Comment): Likewise.
9746         * modules/printf-posix (Comment): Likewise.
9747         * modules/snprintf-posix (Comment): Likewise.
9748         * modules/sprintf-posix (Comment): Likewise.
9749         * modules/vasnprintf-posix (Comment): Likewise.
9750         * modules/vasprintf-posix (Comment): Likewise.
9751         * modules/vdprintf-posix (Comment): Likewise.
9752         * modules/vfprintf-posix (Comment): Likewise.
9753         * modules/vprintf-posix (Comment): Likewise.
9754         * modules/vsnprintf-posix (Comment): Likewise.
9755         * modules/vsprintf-posix (Comment): Likewise.
9756         * modules/xprintf-posix (Comment): Likewise.
9757         * modules/xvasprintf-posix (Comment): Likewise.
9758         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9759         * modules/floorf-tests (Depends-on): Likewise.
9760         * modules/round-tests (Depends-on): Likewise.
9761         * modules/roundf-tests (Depends-on): Likewise.
9762         * modules/trunc-tests (Depends-on): Likewise.
9763         * modules/truncf-tests (Depends-on): Likewise.
9764         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9765         'fprintf-posix' module is not present.
9766         * tests/test-floorf2.c (check): Likewise.
9767         * tests/test-trunc2.c (check): Likewise.
9768         * tests/test-truncf2.c (check): Likewise.
9769         * tests/test-round2.c (equal): Likewise.
9770         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9771
9772 2010-04-07  Karl Berry  <karl@gnu.org>
9773
9774         * config/srclist.txt,
9775         * config/srclistvars.sh,
9776         * config/srclist-update: doc fixes.
9777
9778 2010-04-07  Jim Meyering  <meyering@redhat.com>
9779
9780         maint.mk: add a PATH crosschecking syntax-check rule
9781         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9782         Useful if you use a test like the one in help-version (coreutils,
9783         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9784         printed by prog --version.
9785
9786 2010-04-06  Bruno Haible  <bruno@clisp.org>
9787
9788         Fix link error on mingw.
9789         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9790         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9791
9792 2010-04-06  Bruno Haible  <bruno@clisp.org>
9793
9794         Assume rmdir exists.
9795         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9796
9797 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9798
9799         doc: update users.txt
9800         * users.txt: Add gcal.
9801
9802 2010-04-06  Jim Meyering  <meyering@redhat.com>
9803
9804         init.sh: simply unset TMPDIR rather than risking env -i
9805         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9806         although it probably works fine on all Unix-based systems, some
9807         systems (Cygwin?) cannot tolerate a totally cleared environment.
9808         Suggestion from Eric Blake.
9809
9810 2010-04-06  Jim Meyering  <meyering@redhat.com>
9811
9812         init.sh: portability fix: use env's POSIX-specified -i option not -u
9813         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9814         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9815
9816 2010-04-05  Bruno Haible  <bruno@clisp.org>
9817
9818         btowc: Work around Cygwin 1.7.2 bug.
9819         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9820         does not map NUL to 0.
9821         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9822
9823 2010-04-05  Bruno Haible  <bruno@clisp.org>
9824
9825         Make the multithread modules work on Cygwin 1.7.2.
9826         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9827         imported symbols can be declared weak, so that it returns "no" on
9828         Cygwin 1.7.2.
9829
9830 2010-04-05  Bruno Haible  <bruno@clisp.org>
9831
9832         Use the module 'strncat'.
9833         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9834
9835         Tests for module 'strncat'.
9836         * modules/strncat-tests: New file.
9837         * tests/test-strncat.c: New file.
9838
9839         New module 'strncat'.
9840         * lib/string.in.h (strncat): New declaration.
9841         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9842         * m4/strncat.m4: New file, based on m4/memchr.m4.
9843         * modules/strncat: New file.
9844         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9845         is declared.
9846         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9847         REPLACE_STRNCAT.
9848         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9849         REPLACE_STRNCAT.
9850         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9851         module.
9852         * tests/test-string-c++.cc: Check signature of strncat.
9853
9854 2010-04-05  Jim Meyering  <meyering@redhat.com>
9855
9856         xstrtoumax-tests: convert to use init.sh
9857         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9858         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9859         Use Exit, not exit.
9860         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9861
9862         xstrtoimax-tests: convert to use init.sh
9863         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9864         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9865         Use Exit, not exit.
9866         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9867
9868 2010-04-05  Bruno Haible  <bruno@clisp.org>
9869
9870         sys_socket: Avoid #define replacements in C++ mode.
9871         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9872         warning to the function if possible, rather than #defining the symbol
9873         to a dysfunctional alias.
9874
9875 2010-04-05  Bruno Haible  <bruno@clisp.org>
9876
9877         fseeko: Fix C++ test error on mingw.
9878         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9879         gl_FUNC_FSEEKO.
9880         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9881         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9882         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9883         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9884
9885 2010-04-05  Bruno Haible  <bruno@clisp.org>
9886
9887         duplocale: Improve test output.
9888         * tests/test-duplocale.c (main): Print reason for skipped test.
9889
9890 2010-04-05  Bruno Haible  <bruno@clisp.org>
9891
9892         Assume rmdir exists.
9893         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9894         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9895
9896 2010-04-05  Bruno Haible  <bruno@clisp.org>
9897
9898         Fix link error on Solaris 8 with cc.
9899         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9900
9901 2010-04-05  Bruno Haible  <bruno@clisp.org>
9902
9903         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9904         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9905
9906 2010-04-05  Bruno Haible  <bruno@clisp.org>
9907
9908         vasprintf: Update documentation.
9909         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9910
9911 2010-04-05  Bruno Haible  <bruno@clisp.org>
9912
9913         ptsname: Improve test.
9914         * tests/test-ptsname.c (main): Also try the various master names of BSD
9915         systems.
9916
9917 2010-04-05  Bruno Haible  <bruno@clisp.org>
9918
9919         memchr: Avoid a possible C++ test error.
9920         * lib/string.in.h (memchr): Provide declaration if function is missing.
9921         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9922         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9924         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9925
9926 2010-04-05  Bruno Haible  <bruno@clisp.org>
9927
9928         strtok_r: Improve idiom.
9929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9930         AC_LIBOBJ is used.
9931
9932 2010-04-05  Bruno Haible  <bruno@clisp.org>
9933
9934         strdup: Improve idiom.
9935         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9936         AC_LIBOBJ is used.
9937         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9938         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9939         when AC_LIBOBJ is used.
9940
9941 2010-04-05  Bruno Haible  <bruno@clisp.org>
9942
9943         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9944         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9945         don't set REPLACE_MBSINIT to 1.
9946         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9947         don't set REPLACE_MBRTOWC to 1.
9948         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9949         exist, don't set REPLACE_MBSRTOWCS to 1.
9950         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9951         exist, don't set REPLACE_MBSNRTOWCS to 1.
9952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9953         don't set REPLACE_WCRTOMB to 1.
9954         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9955         exist, don't set REPLACE_WCSRTOMBS to 1.
9956         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9957         exist, don't set REPLACE_WCSNRTOMBS to 1.
9958
9959 2010-04-05  Bruno Haible  <bruno@clisp.org>
9960
9961         ldexpl: Improve idiom.
9962         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9963         make sure to set HAVE_DECL_LDEXPL to 0.
9964
9965 2010-04-05  Jim Meyering  <meyering@redhat.com>
9966
9967         xstrtol-tests: convert to use init.sh
9968         * modules/xstrtol-tests (Files): Add tests/init.sh.
9969         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9970         Use Exit, not exit.
9971         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9972
9973         atexit-tests: convert to use init.sh
9974         * modules/atexit-tests (Files): Add tests/init.sh.
9975         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9976         Use Exit, not exit.
9977         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9978
9979         init.sh: fix typo
9980         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9981
9982         init.sh: make it easier for a test script to write to the tty, ...
9983         when using automake's parallel-tests mode.
9984         * tests/init.sh (stderr_fileno_): Define overridable variable.
9985         (warn_): New function, to use it.
9986         (fail_, skip_, framework_failure_): Use warn_.
9987
9988 2010-04-04  Bruno Haible  <bruno@clisp.org>
9989
9990         btowc: Avoid warning.
9991         * lib/btowc.c: Include <stdlib.h>.
9992         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9993
9994 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9995             Bruno Haible  <bruno@clisp.org>
9996
9997         wchar: Port to NetBSD 1.5.
9998         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9999         * lib/wctype.in.h (WEOF): Likewise.
10000
10001 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10002             Bruno Haible  <bruno@clisp.org>
10003
10004         Port extended stdio to NetBSD 1.5.
10005         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10006         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10007         older.
10008
10009 2010-04-04  Bruno Haible  <bruno@clisp.org>
10010
10011         string: Remove unused substitution.
10012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10013         HAVE_DECL_STRERROR.
10014         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10015
10016 2010-04-04  Bruno Haible  <bruno@clisp.org>
10017
10018         strtod: Avoid a possible C++ test error.
10019         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10020         set REPLACE_STRTOD.
10021
10022 2010-04-04  Bruno Haible  <bruno@clisp.org>
10023
10024         strerror: Update documentation.
10025         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10026
10027 2010-04-04  Bruno Haible  <bruno@clisp.org>
10028
10029         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10030         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10031         _GL_CXXALIAS_SYS_CAST.
10032
10033 2010-04-04  Bruno Haible  <bruno@clisp.org>
10034
10035         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10036         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10037         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10038         REPLACE_FREXPL to 1.
10039         * doc/posix-functions/frexpl.texi: Update documentation.
10040
10041 2010-04-04  Bruno Haible  <bruno@clisp.org>
10042
10043         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10044         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10045
10046 2010-04-04  Bruno Haible  <bruno@clisp.org>
10047
10048         Implement nanosleep for native Windows.
10049         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10050
10051 2010-04-04  Bruno Haible  <bruno@clisp.org>
10052
10053         math: Fix some C++ test errors on Solaris 8.
10054         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10055
10056 2010-04-04  Bruno Haible  <bruno@clisp.org>
10057
10058         math: Fix some C++ test errors on Cygwin.
10059         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10060         truncl): Provide declaration if the system does not have it.
10061         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10062         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10063         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10064         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10065         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10066         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10067         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10068         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10069         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10070         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10071         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10072         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10073         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10074         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10075         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10076         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10078         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10079         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10080         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10081         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10082         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10083
10084 2010-04-04  Bruno Haible  <bruno@clisp.org>
10085
10086         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10087         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10088         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10089         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10090         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10091         * m4/isinf.m4 (gl_ISINF): Likewise.
10092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10093
10094 2010-04-04  Bruno Haible  <bruno@clisp.org>
10095
10096         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10097         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10098
10099 2010-04-04  Bruno Haible  <bruno@clisp.org>
10100
10101         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10102         * modules/tmpfile (configure.ac): Update.
10103
10104         tmpfile: Fix C++ test error on mingw.
10105         * lib/stdio.in.h (tmpfile): New declaration.
10106         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10107         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10108         * modules/tmpfile (Depends-on): Add stdio.
10109         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10110         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10111         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10112         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10113         REPLACE_TMPFILE.
10114         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10115
10116 2010-04-04  Bruno Haible  <bruno@clisp.org>
10117
10118         ioctl: Fix C++ test error on mingw.
10119         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10120         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10121         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10122
10123 2010-04-03  Bruno Haible  <bruno@clisp.org>
10124
10125         wcwidth: Fix C++ test error on mingw.
10126         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10128         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10129
10130 2010-04-03  Bruno Haible  <bruno@clisp.org>
10131
10132         nanosleep: Fix C++ test error on mingw.
10133         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10134         * lib/time.in.h (nanosleep): Use modern idiom.
10135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10136         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10137         REPLACE_NANOSLEEP to 1.
10138         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10139         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10140
10141 2010-04-03  Bruno Haible  <bruno@clisp.org>
10142
10143         strptime: Fix C++ test error on mingw.
10144         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10145         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10146         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10147         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10148         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10149         not REPLACE_STRPTIME.
10150         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10151         REPLACE_STRPTIME.
10152
10153 2010-04-03  Bruno Haible  <bruno@clisp.org>
10154
10155         timegm: Fix C++ test error on mingw.
10156         * lib/time.in.h (timegm): Use modern idiom.
10157         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10158         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10160         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10161
10162 2010-04-03  Bruno Haible  <bruno@clisp.org>
10163
10164         timegm: Assume declaration if function exists.
10165         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10166         if it exists. Don't clobber ac_cv_func_timegm.
10167
10168 2010-04-03  Bruno Haible  <bruno@clisp.org>
10169
10170         time_r: Fix C++ test error on mingw.
10171         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10172         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10173         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10174         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10175         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10176
10177 2010-04-03  Bruno Haible  <bruno@clisp.org>
10178
10179         time_r: Minor updates.
10180         * modules/time_r (Description): Mention the provided functions.
10181         * lib/time_r.c: Don't include <string.h>.
10182         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10183         * doc/posix-functions/localtime_r.texi: Likewise.
10184
10185 2010-04-03  Bruno Haible  <bruno@clisp.org>
10186
10187         time: Fix regression introduced on 2010-03-08.
10188         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10189         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10190
10191 2010-04-03  Jim Meyering  <meyering@redhat.com>
10192
10193         maint.mk: don't silently disable project-specific syntax-check rules
10194         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10195         that they need to convert their project-specific syntax-check rules
10196         to use the new _sc_search_regexp.
10197
10198 2010-04-03  Bruno Haible  <bruno@clisp.org>
10199
10200         fchdir: Fix regression introduced on 2010-03-08.
10201         * lib/unistd.in.h (fchdir): Fix declaration.
10202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10204         REPLACE_FCHDIR.
10205         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10206         REPLACE_FCHDIR.
10207
10208 2010-04-03  Bruno Haible  <bruno@clisp.org>
10209
10210         getpagesize: Fix C++ test error on mingw.
10211         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10212         system does not declare the function.
10213         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10214         declared.
10215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10216         HAVE_DECL_GETPAGESIZE.
10217         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10218
10219 2010-04-03  Bruno Haible  <bruno@clisp.org>
10220
10221         stdio: Make C++ tests work on mingw.
10222         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10223         does not declare the function.
10224
10225 2010-04-03  Bruno Haible  <bruno@clisp.org>
10226
10227         ftello: Fix C++ test error on mingw.
10228         * lib/stdio.in.h (ftello): Use modern idiom.
10229         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10230         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10231         is missing and that it needs to be replaced.
10232         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10234         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10235
10236 2010-04-03  Bruno Haible  <bruno@clisp.org>
10237
10238         fseeko: Fix C++ test error on mingw.
10239         * lib/stdio.in.h (fseeko): Use modern idiom.
10240         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10241         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10242         is missing and that it needs to be replaced.
10243         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10245         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10246
10247 2010-04-03  Bruno Haible  <bruno@clisp.org>
10248
10249         mkstemp: Fix C++ test error on mingw.
10250         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10252         function is missing and that it needs to be replaced.
10253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10254         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10255
10256 2010-04-03  Bruno Haible  <bruno@clisp.org>
10257
10258         stpncpy: Fix C++ test error on mingw.
10259         * lib/string.in.h (stpncpy): Use modern idiom.
10260         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10261         function is missing and that it needs to be replaced.
10262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10263         REPLACE_STPNCPY.
10264         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10265
10266 2010-04-03  Bruno Haible  <bruno@clisp.org>
10267
10268         sys_stat: Fix C++ test error on mingw.
10269         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10270         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10271
10272 2010-04-03  Bruno Haible  <bruno@clisp.org>
10273
10274         pty: Update doc.
10275         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10276
10277 2010-04-03  Bruno Haible  <bruno@clisp.org>
10278
10279         unistd: Fix C++ test error on mingw.
10280         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10281
10282 2010-04-03  Bruno Haible  <bruno@clisp.org>
10283
10284         Update doc regarding mingw.
10285         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10286         * doc/glibc-functions/login_tty.texi: Likewise.
10287         * doc/glibc-functions/forkpty.texi: Likewise.
10288
10289 2010-04-03  Bruno Haible  <bruno@clisp.org>
10290
10291         stdlib: Avoid compilation failure of c-strtold on mingw.
10292         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
10293
10294 2010-04-03  Bruno Haible  <bruno@clisp.org>
10295
10296         locale: Make C++ tests work on Cygwin and mingw.
10297         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10298         cannot provide the function.
10299         Reported by Simon Josefsson.
10300
10301 2010-04-03  Bruno Haible  <bruno@clisp.org>
10302
10303         localename: Port to MacOS X 10.6.
10304         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
10305         memory layout of the locales in MacOS X 10.6 as well.
10306         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
10307
10308 2010-04-02  Bruno Haible  <bruno@clisp.org>
10309
10310         gnulib-tool: Ensure that long-running tests are executed last.
10311         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
10312         running tests after the one for the other tests.
10313
10314 2010-04-02  Bruno Haible  <bruno@clisp.org>
10315
10316         gnulib-tool: Ensure the tests in the main directory are executed first.
10317         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
10318         start with the current directory.
10319
10320 2010-04-02  Bruno Haible  <bruno@clisp.org>
10321
10322         Tests for module 'havelib', moved here from GNU gettext.
10323         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
10324         modifications.
10325         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
10326         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
10327         with modifications.
10328         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
10329         modifications.
10330         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
10331         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
10332         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
10333         with modifications.
10334         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10335         with modifications.
10336         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10337         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10338         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10339         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10340         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10341         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10342         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10343         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10344         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10345         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10346         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10347         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10348         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10349         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10350         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10351         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10352         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10353         with modifications.
10354         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10355         with modifications.
10356         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10357         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10358         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10359         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10360         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10361         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10362         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10363         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10364         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10365         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10366         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10367         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10368         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10369         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10370         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10371         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10372         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10373         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10374         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10375         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10376         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10377         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10378         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10379         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10380         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10381         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10382         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10383         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10384         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10385         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10386         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10387         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10388         * tests/havelib/rpathx/rpathx.c: New file, from
10389         gettext/autoconf-lib-link.
10390         * tests/havelib/rpathx/Makefile.am: New file, from
10391         gettext/autoconf-lib-link.
10392         * tests/havelib/rpathx/configure.ac: New file, from
10393         gettext/autoconf-lib-link with modifications.
10394         * tests/havelib/rpathy/rpathy.c: New file, from
10395         gettext/autoconf-lib-link.
10396         * tests/havelib/rpathy/Makefile.am: New file, from
10397         gettext/autoconf-lib-link.
10398         * tests/havelib/rpathy/configure.ac: New file, from
10399         gettext/autoconf-lib-link with modifications.
10400         * tests/havelib/rpathz/rpathz.c: New file, from
10401         gettext/autoconf-lib-link.
10402         * tests/havelib/rpathz/Makefile.am: New file, from
10403         gettext/autoconf-lib-link.
10404         * tests/havelib/rpathz/configure.ac: New file, from
10405         gettext/autoconf-lib-link with modifications.
10406         * tests/havelib/rpathlx/usex.c: New file, from
10407         gettext/autoconf-lib-link.
10408         * tests/havelib/rpathlx/Makefile.am: New file, from
10409         gettext/autoconf-lib-link.
10410         * tests/havelib/rpathlx/configure.ac: New file, from
10411         gettext/autoconf-lib-link with modifications.
10412         * tests/havelib/rpathly/usey.c: New file, from
10413         gettext/autoconf-lib-link.
10414         * tests/havelib/rpathly/Makefile.am: New file, from
10415         gettext/autoconf-lib-link.
10416         * tests/havelib/rpathly/configure.ac: New file, from
10417         gettext/autoconf-lib-link with modifications.
10418         * tests/havelib/rpathlz/usez.c: New file, from
10419         gettext/autoconf-lib-link.
10420         * tests/havelib/rpathlz/Makefile.am: New file, from
10421         gettext/autoconf-lib-link.
10422         * tests/havelib/rpathlz/configure.ac: New file, from
10423         gettext/autoconf-lib-link with modifications.
10424         * tests/havelib/rpathlyx/usey.c: New file, from
10425         gettext/autoconf-lib-link.
10426         * tests/havelib/rpathlyx/Makefile.am: New file, from
10427         gettext/autoconf-lib-link.
10428         * tests/havelib/rpathlyx/configure.ac: New file, from
10429         gettext/autoconf-lib-link with modifications.
10430         * tests/havelib/rpathlzyx/usez.c: New file, from
10431         gettext/autoconf-lib-link.
10432         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10433         gettext/autoconf-lib-link.
10434         * tests/havelib/rpathlzyx/configure.ac: New file, from
10435         gettext/autoconf-lib-link with modifications.
10436         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10437         with modifications.
10438
10439 2010-04-02  Bruno Haible  <bruno@clisp.org>
10440
10441         gnulib-tool: Create distributed built sources also for the tests.
10442         * gnulib-tool (func_create_testdir): Also generate distributed built
10443         sources in the tests directory.
10444
10445 2010-04-02  Bruno Haible  <bruno@clisp.org>
10446
10447         gnulib-tool: Obey user's environment variables.
10448         * gnulib-tool (func_create_testdir): When creating built sources,
10449         respect the environment variables for autoconf, automake, etc. given by
10450         the user.
10451
10452 2010-04-02  Bruno Haible  <bruno@clisp.org>
10453
10454         gnulib-tool: Provide the value of --m4-base to modules.
10455         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10456         of gl_m4_base.
10457
10458 2010-04-02  Eric Blake  <eblake@redhat.com>
10459
10460         maint.mk: fix some fallout
10461         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10462         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10463
10464 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10465
10466         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10467         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10468         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10469         (sc_cast_of_x_alloc_return_value): Likewise.
10470         (sc_cast_of_alloca_return_value): Likewise.
10471         (sc_space_tab): Likewise.
10472         (sc_prohibit_atoi_atof): Likewise.
10473         (sc_prohibit_magic_number_exit): Likewise.
10474         (sc_error_exit_success): Likewise.
10475         (sc_file_system): Likewise.
10476         (sc_prohibit_have_config_h): Likewise.
10477         (sc_require_config_h): Likewise.
10478         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10479         (sc_obsolete_symbols): Likewise.
10480         (sc_changelog): Likewise.
10481         (sc_program_name): Likewise.
10482         (sc_the_the): Likewise.
10483         (sc_trailing_blank): Likewise.
10484         (sc_two_space_separator_in_usage): Likewise.
10485         (sc_useless_cpp_parens): Likewise.
10486         (sc_GPL_version): Likewise.
10487         (sc_GFDL_version): Likewise.
10488         (sc_texinfo_acronym): Likewise.
10489         (sc_prohibit_cvs_keyword): Likewise.
10490         (sc_prohibit_stat_st_blocks): Likewise.
10491         (sc_prohibit_S_IS_definition): Likewise.
10492         (sc_redundant_const): Likewise.
10493         (sc_makefile_TAB_only_indentation): Likewise.
10494         (sc_m4_quote_check): Likewise.
10495         (sc_makefile_path_separator_check): Likewise.
10496         (sc_copyright_check): Likewise.
10497         (sc_Wundef_boolean): Likewise.
10498         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10499
10500         maint.mk: match 0 or more whitespace-before-function-call '('
10501         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10502         that have zero or two-and-more spaces between the function name
10503         and the open parenthesis.
10504         (sc_error_message_warn_fatal): Likewise.
10505         (sc_error_message_uppercase): Likewise.
10506         (sc_error_message_period): Likewise.
10507
10508 2010-03-31  Eric Blake  <eblake@redhat.com>
10509
10510         maint.mk: check for [ as well as test
10511         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10512         Based on a libvirt report by Matthias Bolte.
10513
10514         gnumakefile: don't squelch _version output
10515         * top/GNUmakefile (_version): Create one-shot dependency rather
10516         than using $(shell) when version must be regenerated.
10517         (_autoreconf): Run verbosely, by default.
10518
10519         sys_time: avoid compiler warnings
10520         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10521         unconditional, fixing regression from 2010-03-29.
10522         Reported by Simon Josefsson.
10523
10524 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10525
10526         maint.mk: s/_header_without_use/_sc_header_without_use/
10527         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10528         (sc_prohibit_assert_without_use): Use the new name.
10529         (sc_prohibit_close_stream_without_use): Likewise.
10530         (sc_prohibit_getopt_without_use): Likewise.
10531         (sc_prohibit_quotearg_without_use): Likewise.
10532         (sc_prohibit_quote_without_use): Likewise.
10533         (sc_prohibit_long_options_without_use): Likewise.
10534         (sc_prohibit_inttostr_without_use): Likewise.
10535         (sc_prohibit_ignore_value_without_use): Likewise.
10536         (sc_prohibit_error_without_use): Likewise.
10537         (sc_prohibit_xalloc_without_use): Likewise.
10538         (sc_prohibit_hash_without_use): Likewise.
10539         (sc_prohibit_hash_pjw_without_use): Likewise.
10540         (sc_prohibit_safe_read_without_use): Likewise.
10541         (sc_prohibit_argmatch_without_use): Likewise.
10542         (sc_prohibit_canonicalize_without_use): Likewise.
10543         (sc_prohibit_root_dev_ino_without_use): Likewise.
10544         (sc_prohibit_openat_without_use): Likewise.
10545         (sc_prohibit_c_ctype_without_use): Likewise.
10546         (sc_prohibit_signal_without_use): Likewise.
10547         (sc_prohibit_intprops_without_use): Likewise.
10548
10549 2010-03-30  Eric Blake  <eblake@redhat.com>
10550
10551         maint: improve module indicators
10552         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10553         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10554         columns, and avoid extra macro expansion.
10555
10556         fdopendir: work around FreeBSD bug
10557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10558         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10559         * modules/dirent (Makefile.am): Substitute it.
10560         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10561         declaration.
10562         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10563         fix.
10564         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10565
10566 2010-03-29  Bruno Haible  <bruno@clisp.org>
10567
10568         Emit #pragma system_header after the inclusion guard, not before.
10569         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10570         guard that spans the entire file, not before. This enables an
10571         optimization in GCC's preprocessor.
10572         * lib/ctype.in.h: Likewise.
10573         * lib/dirent.in.h: Likewise.
10574         * lib/errno.in.h: Likewise.
10575         * lib/float.in.h: Likewise.
10576         * lib/getopt.in.h: Likewise.
10577         * lib/iconv.in.h: Likewise.
10578         * lib/langinfo.in.h: Likewise.
10579         * lib/locale.in.h: Likewise.
10580         * lib/math.in.h: Likewise.
10581         * lib/netdb.in.h: Likewise.
10582         * lib/netinet_in.in.h: Likewise.
10583         * lib/pty.in.h: Likewise.
10584         * lib/sched.in.h: Likewise.
10585         * lib/se-selinux.in.h: Likewise.
10586         * lib/search.in.h: Likewise.
10587         * lib/spawn.in.h: Likewise.
10588         * lib/stdarg.in.h: Likewise.
10589         * lib/stdint.in.h: Likewise.
10590         * lib/string.in.h: Likewise.
10591         * lib/strings.in.h: Likewise.
10592         * lib/sys_file.in.h: Likewise.
10593         * lib/sys_ioctl.in.h: Likewise.
10594         * lib/sys_time.in.h: Likewise.
10595         * lib/sys_times.in.h: Likewise.
10596         * lib/sys_utsname.in.h: Likewise.
10597         * lib/sys_wait.in.h: Likewise.
10598         * lib/sysexits.in.h: Likewise.
10599         * lib/wctype.in.h: Likewise.
10600
10601 2010-03-28  James Youngman  <jay@gnu.org>
10602
10603         save-cwd: don't leak a file descriptor when the caller execs.
10604         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10605         saved file descriptor.
10606         * modules/save-cwd (Depends-on): Depend on cloexec.
10607
10608 2010-03-29  Bruno Haible  <bruno@clisp.org>
10609
10610         Remove vestiges of fts-lgpl module.
10611         * lib/fts_.h: Assume GNULIB_FTS is 1.
10612         * lib/fts.c: Likewise.
10613         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10614
10615 2010-03-28  Bruno Haible  <bruno@clisp.org>
10616
10617         Fix definition of tests witness macro.
10618         * gnulib-tool (func_import): Fix definition of witness macro.
10619
10620 2010-03-28  Bruno Haible  <bruno@clisp.org>
10621
10622         Fix ioctl's protoype on glibc systems.
10623         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10624         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10625         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10626         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10627         signature. If not, arrange to replace the ioctl function.
10628         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10629         REPLACE_IOCTL.
10630         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10631         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10632         Reported by Ludovic Courtès <ludo@gnu.org>.
10633
10634 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10635
10636         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10637         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10638         made it so grep -r --include=GLOB* ... did not work.
10639
10640 2010-03-26  Jim Meyering  <meyering@redhat.com>
10641             Eric Blake  <eblake@redhat.com>
10642
10643         maint.mk: prohibit use of test's -o and -a operators
10644         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10645
10646 2010-03-28  Bruno Haible  <bruno@clisp.org>
10647
10648         Remove unused GNULIB_XYZ macro definitions.
10649         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10650         invocation.
10651
10652 2010-03-28  Bruno Haible  <bruno@clisp.org>
10653
10654         Mark privileged tests modules.
10655         * modules/idpriv-drop-tests (Status): New section.
10656         * modules/idpriv-droptemp-tests (Status): New section.
10657
10658 2010-03-28  Bruno Haible  <bruno@clisp.org>
10659
10660         Split C++ tests into separate tests modules.
10661         * modules/dirent-c++-tests: New file, extracted from
10662         modules/dirent-tests.
10663         * modules/dirent-tests: Depend on it.
10664         * modules/fcntl-h-c++-tests: New file, extracted from
10665         modules/fcntl-h-tests.
10666         * modules/fcntl-h-tests: Depend on it.
10667         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10668         * modules/glob-tests: Depend on it.
10669         * modules/iconv-h-c++-tests: New file, extracted from
10670         modules/iconv-h-tests.
10671         * modules/iconv-h-tests: Depend on it.
10672         * modules/langinfo-c++-tests: New file, extracted from
10673         modules/langinfo-tests.
10674         * modules/langinfo-tests: Depend on it.
10675         * modules/locale-c++-tests: New file, extracted from
10676         modules/locale-tests.
10677         * modules/locale-tests: Depend on it.
10678         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10679         * modules/math-tests: Depend on it.
10680         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10681         * modules/pty-tests: Depend on it.
10682         * modules/search-c++-tests: New file, extracted from
10683         modules/search-tests.
10684         * modules/search-tests: Depend on it.
10685         * modules/signal-c++-tests: New file, extracted from
10686         modules/signal-tests.
10687         * modules/signal-tests: Depend on it.
10688         * modules/spawn-c++-tests: New file, extracted from
10689         modules/spawn-tests.
10690         * modules/spawn-tests: Depend on it.
10691         * modules/stdio-c++-tests: New file, extracted from
10692         modules/stdio-tests.
10693         * modules/stdio-tests: Depend on it.
10694         * modules/stdlib-c++-tests: New file, extracted from
10695         modules/stdlib-tests.
10696         * modules/stdlib-tests: Depend on it.
10697         * modules/string-c++-tests: New file, extracted from
10698         modules/string-tests.
10699         * modules/string-tests: Depend on it.
10700         * modules/sys_ioctl-c++-tests: New file, extracted from
10701         modules/sys_ioctl-tests.
10702         * modules/sys_ioctl-tests: Depend on it.
10703         * modules/sys_select-c++-tests: New file, extracted from
10704         modules/sys_select-tests.
10705         * modules/sys_select-tests: Depend on it.
10706         * modules/sys_socket-c++-tests: New file, extracted from
10707         modules/sys_socket-tests.
10708         * modules/sys_socket-tests: Depend on it.
10709         * modules/sys_stat-c++-tests: New file, extracted from
10710         modules/sys_stat-tests.
10711         * modules/sys_stat-tests: Depend on it.
10712         * modules/sys_time-c++-tests: New file, extracted from
10713         modules/sys_time-tests.
10714         * modules/sys_time-tests: Depend on it.
10715         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10716         * modules/time-tests: Depend on it.
10717         * modules/unistd-c++-tests: New file, extracted from
10718         modules/unistd-tests.
10719         * modules/unistd-tests: Depend on it.
10720         * modules/wchar-c++-tests: New file, extracted from
10721         modules/wchar-tests.
10722         * modules/wchar-tests: Depend on it.
10723         * modules/wctype-c++-tests: New file, extracted from
10724         modules/wctype-tests.
10725         * modules/wctype-tests: Depend on it.
10726         Reported by Simon Josefsson.
10727
10728 2010-03-28  Bruno Haible  <bruno@clisp.org>
10729
10730         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10731         * gnulib-tool (func_exists_module): New function, extracted from
10732         func_verify_module.
10733         (func_verify_module): Use it.
10734         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10735         'foo' only if 'foo' exists.
10736         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10737         module.
10738
10739 2010-03-28  Bruno Haible  <bruno@clisp.org>
10740
10741         gnulib-tool: Add support for special categories of tests.
10742         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10743         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10744         (func_usage): Document them.
10745         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10746         inc_unportable_tests, inc_all_tests): New variables.
10747         (func_acceptable): Consider these variables.
10748         (func_modules_transitive_closure): Make it work when the 'Status' field
10749         consists of multiple words.
10750         (func_import): Store and restore the values of inc_cxx_tests,
10751         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10752         inc_all_tests in gnulib-comp.m4.
10753         (func_create_testdir): Set inc_all_tests to true.
10754         * doc/gnulib.texi (Extra tests modules): New section.
10755         Suggested by Jim Meyering.
10756
10757 2010-03-28  Bruno Haible  <bruno@clisp.org>
10758
10759         ansi-c++-opt: Allow turning off the C++ build by default.
10760         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10761         gl_CXX_CHOICE_DEFAULT_NO is defined.
10762         Requested by Eric Blake.
10763
10764 2010-03-28  Bruno Haible  <bruno@clisp.org>
10765
10766         unistd: Avoid #define replacements in C++ mode.
10767         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10768         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10769         setsockopt, shutdown, select): In C++, attach a warning to the function
10770         if possible, rather than #defining the symbol to a dysfunctional alias.
10771         Reported by John W. Eaton <jwe@gnu.org>.
10772
10773 2010-03-28  Bruno Haible  <bruno@clisp.org>
10774
10775         Fix link errors on mingw.
10776         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10777         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10778         $(LIBSOCKET).
10779         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10780         $(LIBSOCKET).
10781
10782 2010-03-28  Bruno Haible  <bruno@clisp.org>
10783             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10784
10785         lib-ignore: Determine different options for different compilers.
10786         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10787         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10788         Add comments.
10789         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10790         * NEWS: Mention the change.
10791
10792 2010-03-27  Bruno Haible  <bruno@clisp.org>
10793
10794         Remove unused GNULIB_XYZ macro definitions.
10795         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10796         * modules/fseek (configure.ac): Likewise.
10797         * modules/ioctl (configure.ac): Likewise.
10798         * modules/open (configure.ac): Likewise.
10799         * modules/stdlib-safer (configure.ac): Likewise.
10800
10801 2010-03-27  Bruno Haible  <bruno@clisp.org>
10802
10803         Add a remark about certain modules.
10804         * modules/malloc (Comment): New section.
10805         * modules/realloc (Comment): Likewise.
10806         * modules/sigpipe (Comment): Likewise.
10807
10808 2010-03-27  Bruno Haible  <bruno@clisp.org>
10809
10810         Resolve conflict between the two kinds of module indicators.
10811         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10812         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10813         * modules/canonicalize (configure.ac): Invoke
10814         gl_MODULE_INDICATOR_FOR_TESTS.
10815         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10816         GNULIB_XYZ.
10817         * tests/test-dirent-c++.cc: Likewise.
10818         * tests/test-dirent-safer.c: Likewise.
10819         * tests/test-dup2.c: Likewise.
10820         * tests/test-fchdir.c: Likewise.
10821         * tests/test-fcntl-h-c++.cc: Likewise.
10822         * tests/test-getopt.c: Likewise.
10823         * tests/test-getopt.h: Likewise.
10824         * tests/test-langinfo-c++.cc: Likewise.
10825         * tests/test-locale-c++.cc: Likewise.
10826         * tests/test-math-c++.cc: Likewise.
10827         * tests/test-pty-c++.cc: Likewise.
10828         * tests/test-search-c++.cc: Likewise.
10829         * tests/test-signal-c++.cc: Likewise.
10830         * tests/test-spawn-c++.cc: Likewise.
10831         * tests/test-stdio-c++.cc: Likewise.
10832         * tests/test-stdlib-c++.cc: Likewise.
10833         * tests/test-string-c++.cc: Likewise.
10834         * tests/test-sys_ioctl-c++.cc: Likewise.
10835         * tests/test-sys_select-c++.cc: Likewise.
10836         * tests/test-sys_socket-c++.cc: Likewise.
10837         * tests/test-sys_stat-c++.cc: Likewise.
10838         * tests/test-sys_time-c++.cc: Likewise.
10839         * tests/test-time-c++.cc: Likewise.
10840         * tests/test-unistd-c++.cc: Likewise.
10841         * tests/test-wchar-c++.cc: Likewise.
10842         * tests/uninorm/test-u8-nfc.c: Likewise.
10843         * tests/uninorm/test-u8-nfd.c: Likewise.
10844         * tests/uninorm/test-u8-nfkc.c: Likewise.
10845         * tests/uninorm/test-u8-nfkd.c: Likewise.
10846         * tests/uninorm/test-u16-nfc.c: Likewise.
10847         * tests/uninorm/test-u16-nfd.c: Likewise.
10848         * tests/uninorm/test-u16-nfkc.c: Likewise.
10849         * tests/uninorm/test-u16-nfkd.c: Likewise.
10850         * tests/uninorm/test-u32-nfc.c: Likewise.
10851         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10852         * tests/uninorm/test-u32-nfd.c: Likewise.
10853         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10854         * tests/uninorm/test-u32-nfkc.c: Likewise.
10855         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10856         * tests/uninorm/test-u32-nfkd.c: Likewise.
10857         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10858         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10859
10860 2010-03-27  Bruno Haible  <bruno@clisp.org>
10861
10862         Distinguish two kinds of module indicators.
10863         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10864         gl_MODULE_INDICATOR.
10865         (gl_MODULE_INDICATOR): New macro.
10866         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10867         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10868         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10869         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10870         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10871         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10872         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10873         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10874         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10875         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10876         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10877         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10880         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10882         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10883         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10884         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10885         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10886         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10887         * modules/cloexec (configure.ac): Likewise.
10888         * modules/getopt-gnu (configure.ac): Likewise.
10889         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10890         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10891         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10892         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10893
10894 2010-03-27  Bruno Haible  <bruno@clisp.org>
10895
10896         New module description field 'Comment'.
10897         * gnulib-tool: New option --extract-comment.
10898         (func_usage): Document it.
10899         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10900         (func_get_comment): New function.
10901         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10902
10903 2010-03-27  Bruno Haible  <bruno@clisp.org>
10904
10905         Addendum to 2010-02-07 commit.
10906         * gnulib-tool (func_usage): Document --extract-applicability option.
10907
10908 2010-03-27  Bruno Haible  <bruno@clisp.org>
10909
10910         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10911         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10912         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10913         rather than link errors.
10914
10915 2010-03-27  Bruno Haible  <bruno@clisp.org>
10916
10917         Avoid side effects from tests-related modules on the compilation of lib.
10918         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10919         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10920         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10921         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10922         macro.
10923         (func_import): Define a witness macro. Assign it a value that depends
10924         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10925         tests-related modules.
10926         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10927         Reported by Jim Meyering.
10928
10929 2010-03-27  Bruno Haible  <bruno@clisp.org>
10930
10931         Factorize common .m4 code.
10932         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10933         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10934         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10935         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10936         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10937         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10938         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10939         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10940         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10941         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10942         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10943         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10944         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10945         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10946         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10947         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10948         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10949         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10951         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10952         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10954         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10956         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10957         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10958         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10960         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10961         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10962         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10963         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10964
10965 2010-03-27  Bruno Haible  <bruno@clisp.org>
10966
10967         Fix a compilation error on Cygwin with g++ >= 4.3.
10968         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10969         if it is undefined or if we alias it to chmod.
10970         (lstat): Don't warn about the use of this function if it is undefined
10971         or if we alias it to stat.
10972         Reported by Simon Josefsson.
10973
10974 2010-03-27  Bruno Haible  <bruno@clisp.org>
10975
10976         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10977         * modules/getlogin (configure.ac): Update.
10978
10979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10980         * modules/getlogin_r (configure.ac): Update.
10981
10982         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10984         * modules/inet_ntop (configure.ac): Update.
10985
10986         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10987         * modules/inet_pton (configure.ac): Update.
10988
10989         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10990         * modules/mbslen (configure.ac): Update.
10991
10992         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10993         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10994         * modules/forkpty (configure.ac): Update.
10995         * modules/openpty (configure.ac): Update.
10996
10997 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10998
10999         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11000         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11001
11002 2010-03-25  Eric Blake  <eblake@redhat.com>
11003
11004         maint: use pragma consistently across replacement headers
11005         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11006         * lib/dirent.in.h (system_header): Likewise.
11007         * lib/errno.in.h (system_header): Likewise.
11008         * lib/float.in.h (system_header): Likewise.
11009         * lib/getopt.in.h (system_header): Likewise.
11010         * lib/iconv.in.h (system_header): Likewise.
11011         * lib/inttypes.in.h (system_header): Likewise.
11012         * lib/langinfo.in.h (system_header): Likewise.
11013         * lib/locale.in.h (system_header): Likewise.
11014         * lib/math.in.h (system_header): Likewise.
11015         * lib/netdb.in.h (system_header): Likewise.
11016         * lib/netinet_in.in.h (system_header): Likewise.
11017         * lib/pty.in.h (system_header): Likewise.
11018         * lib/sched.in.h (system_header): Likewise.
11019         * lib/se-selinux.in.h (system_header): Likewise.
11020         * lib/search.in.h (system_header): Likewise.
11021         * lib/spawn.in.h (system_header): Likewise.
11022         * lib/stdarg.in.h (system_header): Likewise.
11023         * lib/stdint.in.h (system_header): Likewise.
11024         * lib/string.in.h (system_header): Likewise.
11025         * lib/strings.in.h (system_header): Likewise.
11026         * lib/sys_file.in.h (system_header): Likewise.
11027         * lib/sys_ioctl.in.h (system_header): Likewise.
11028         * lib/sys_socket.in.h (system_header): Likewise.
11029         * lib/sys_times.in.h (system_header): Likewise.
11030         * lib/sys_utsname.in.h (system_header): Likewise.
11031         * lib/sys_wait.in.h (system_header): Likewise.
11032         * lib/sysexits.in.h (system_header): Likewise.
11033         * lib/unistd.in.h (system_header): Likewise.
11034         * lib/wctype.in.h (system_header): Likewise.
11035
11036         arpa/inet: fix mingw compilation warning
11037         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11038         Reported by Matthew Bolte.
11039
11040 2010-03-25  Bruno Haible  <bruno@clisp.org>
11041
11042         Avoid collision between gnulib wrapper and libintl wrapper.
11043         * lib/printf.c (printf): Don't define if a printf wrapper is already
11044         defined in intl/printf.c.
11045         Reported by Michel Boaventura <michel@michelboaventura.com>.
11046
11047 2010-03-25  Bruno Haible  <bruno@clisp.org>
11048
11049         Use ANSI C.
11050         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11051
11052 2010-03-25  Bruno Haible  <bruno@clisp.org>
11053
11054         Minor formatting changes.
11055         * lib/acosl.c: Insert space before function argument list.
11056         * lib/argz.c: Likewise.
11057         * lib/asinl.c: Likewise.
11058         * lib/expl.c: Likewise.
11059         * lib/gen-uni-tables.c: Likewise.
11060         * lib/gettext.h: Likewise.
11061         * lib/glthread/lock.h: Likewise.
11062         * lib/tanl.c: Likewise.
11063         * lib/uniname/uniname.c: Likewise.
11064         * tests/test-idpriv-drop.c: Likewise.
11065         * tests/test-idpriv-droptemp.c: Likewise.
11066         * tests/test-lock.c: Likewise.
11067         * tests/test-tls.c: Likewise.
11068         * lib/argp-help.c: Insert space before function-like macro argument
11069         list.
11070         * lib/memcmp.c: Likewise.
11071         * tests/test-base64.c: Likewise.
11072         * lib/localename.c: Insert space before sizeof's argument list.
11073         * lib/safe-alloc.h: Likewise.
11074         * lib/file-set.h: Insert space before macro argument list.
11075         * tests/test-argp.c: Likewise.
11076         * lib/argp-namefrob.h: Insert space before function parameter list.
11077         * lib/getaddrinfo.c: Likewise.
11078         * lib/netdb.in.h: Likewise.
11079         * lib/parse-duration.h: Likewise.
11080         * lib/parse-duration.c: Likewise.
11081         * lib/poll.c: Likewise.
11082         * lib/select.c: Likewise.
11083         * lib/trim.h: Likewise.
11084         * tests/test-usleep.c: Likewise.
11085         * lib/ldexpl.c: Insert space before function parameter list and before
11086         function argument list.
11087         * lib/logl.c: Likewise.
11088         * lib/sqrtl.c: Likewise.
11089         * lib/trim.c: Likewise.
11090         * lib/cosl.c: Use GNU style indentation. Insert space before function
11091         argument list.
11092         * lib/sinl.c: Likewise.
11093         * lib/tsearch.c: Insert space after 'for'.
11094         Reported by Jim Meyering.
11095
11096 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11097
11098         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11099         config header before grepping, as it's not present before
11100         autoreconf/configure are run.  Reported by Simon Josefsson.
11101
11102 2010-03-23  Bruno Haible  <bruno@clisp.org>
11103
11104         pt_chown: Make it work with automake < 1.11.
11105         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11106         Reported by Simon Josefsson.
11107
11108 2010-03-23  Bruno Haible  <bruno@clisp.org>
11109
11110         pt_chown: Don't depend on GPLed modules.
11111         * lib/pt_chown.c: Don't include idpriv.h.
11112         (main): Don't drop privileges.
11113         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11114         Reported by Simon Josefsson.
11115
11116 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11117
11118         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11119         suggestions from karl@freefriends.org (Karl Berry).
11120
11121 2010-03-22  Eric Blake  <eblake@redhat.com>
11122
11123         gethostname: further tweaks
11124         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11125         are overriding gethostname.
11126         Suggested by Bruno Haible.
11127
11128 2010-03-21  Bruno Haible  <bruno@clisp.org>
11129
11130         Fix comments.
11131         * lib/forkpty.c (rpl_forkpty): Fix comment.
11132         * lib/openpty.c (rpl_openpty): Likewise.
11133         Reported by Eric Blake.
11134
11135 2010-03-22  Eric Blake  <eblake@redhat.com>
11136
11137         gethostname: fix build on mingw
11138         * lib/unistd.in.h (includes): Work around fact that mingw
11139         <winsock2.h> re-includes <unistd.h>, by avoiding any
11140         redeclarations if we are being included by <winsock2.h>.
11141         Reported by Matthias Bolte.
11142
11143 2010-03-21  Bruno Haible  <bruno@clisp.org>
11144
11145         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11146         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11147         modifications.
11148         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11149         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11150         provide the replacement.
11151         * modules/forkpty (Depends-on): Add openpty, login_tty.
11152         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11153         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11154         * doc/glibc-functions/forkpty.texi: More supported platforms.
11155         * config/srclist.txt: Add forkpty.c (commented).
11156
11157 2010-03-21  Bruno Haible  <bruno@clisp.org>
11158
11159         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11160         (Makefile.am): Verify that PTY_LIB is defined.
11161
11162         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11163
11164 2010-03-21  Bruno Haible  <bruno@clisp.org>
11165
11166         Tests for module 'login_tty'.
11167         * modules/login_tty-tests: New file.
11168         * tests/test-login_tty.c: New file.
11169
11170         New module 'login_tty'.
11171         * lib/login_tty.c: New file.
11172         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11173         * modules/login_tty: New file.
11174         * doc/glibc-functions/login_tty.texi: Mention the new module.
11175
11176 2010-03-21  Bruno Haible  <bruno@clisp.org>
11177
11178         login_tty: Documentation.
11179         * doc/glibc-functions/login_tty.texi: New file.
11180         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11181
11182 2010-03-21  Bruno Haible  <bruno@clisp.org>
11183
11184         pty: Consistent macro naming.
11185         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11186         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11187         * modules/pty (configure.ac): Update.
11188
11189 2010-03-21  Bruno Haible  <bruno@clisp.org>
11190
11191         Tests for openpty: Make stricter.
11192         * tests/test-openpty.c (main): Add test of canonical processing and
11193         erase.
11194         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11195
11196         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11197         * lib/openpty.c (openpty): New replacement function.
11198         * lib/pty.in.h: Include <termios.h>.
11199         (openpty): Update declaration. Add comments.
11200         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11201         is not declared, arrange to provide the replacement. Check for _getpty
11202         and posix_openpt.
11203         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11204         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11205         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11206         * modules/pty-tests (test_pty_c___LDADD): New variable.
11207         * doc/glibc-functions/openpty.texi: More supported platforms.
11208
11209 2010-03-21  Bruno Haible  <bruno@clisp.org>
11210
11211         setenv: Tweaks.
11212         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11213         the test program.
11214         * doc/posix-functions/setenv.texi: Update platforms list.
11215
11216 2010-03-21  Bruno Haible  <bruno@clisp.org>
11217
11218         New module 'unlockpt'.
11219         * lib/unlockpt.c: New file, from glibc with modifications.
11220         * m4/unlockpt.m4: New file.
11221         * modules/unlockpt: New file.
11222         * lib/stdlib.in.h (unlockpt): New declaration.
11223         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11224         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11225         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11226         HAVE_UNLOCKPT.
11227         * doc/posix-functions/unlockpt.texi: Mention the new module.
11228         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11229         * config/srclist.txt: Add unlockpt.c (commented).
11230
11231 2010-03-21  Jim Meyering  <meyering@redhat.com>
11232
11233         maint.mk: prohibit inclusion of "intprops.h" without use
11234         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11235
11236 2010-03-21  Bruno Haible  <bruno@clisp.org>
11237
11238         New module 'grantpt'.
11239         * lib/grantpt.c: New file, from glibc with modifications.
11240         * m4/grantpt.m4: New file.
11241         * modules/grantpt: New file.
11242         * lib/stdlib.in.h (grantpt): New declaration.
11243         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11244         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11245         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11246         HAVE_GRANTPT.
11247         * doc/posix-functions/grantpt.texi: Mention the new module.
11248         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11249         * config/srclist.txt: Add grantpt.c (commented).
11250
11251 2010-03-21  Bruno Haible  <bruno@clisp.org>
11252
11253         New module 'pt_chown'.
11254         * lib/pt_chown.c: New file, from glibc with modifications.
11255         * lib/pty-private.h: New file, from glibc with modifications.
11256         * modules/pt_chown: New file.
11257         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11258
11259 2010-03-21  Bruno Haible  <bruno@clisp.org>
11260
11261         Tests for module 'ptsname'.
11262         * modules/ptsname-tests: New file.
11263         * tests/test-ptsname.c: New file.
11264
11265         New module 'ptsname'.
11266         * lib/ptsname.c: New file, from glibc with modifications.
11267         * m4/ptsname.m4: New file.
11268         * modules/ptsname: New file.
11269         * lib/stdlib.in.h (ptsname): New declaration.
11270         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11271         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11272         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11273         HAVE_PTSNAME.
11274         * doc/posix-functions/ptsname.texi: Mention the new module.
11275         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11276         * config/srclist.txt: Add ptsname.c (commented).
11277
11278 2010-03-21  Bruno Haible  <bruno@clisp.org>
11279
11280         Tests for module 'ttyname_r'.
11281         * modules/ttyname_r-tests: New file.
11282         * tests/test-ttyname_r.c: New file.
11283
11284         New module 'ttyname_r'.
11285         * lib/ttyname_r.c: New file.
11286         * m4/ttyname_r.m4: New file.
11287         * modules/ttyname_r: New file.
11288         * lib/unistd.in.h (ttyname_r): New declaration.
11289         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11290         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
11291         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
11292         HAVE_TTYNAME_R.
11293         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
11294         * doc/posix-functions/ttyname_r.texi: Mention the new module.
11295
11296 2010-03-20  Bruno Haible  <bruno@clisp.org>
11297
11298         signal: Undefine macro definitions in C++ mode.
11299         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
11300         sigfillset): Undefine macro definitions from the system header in C++
11301         mode.
11302         Reported by John W. Eaton <jwe@gnu.org>.
11303
11304 2010-03-20  Bruno Haible  <bruno@clisp.org>
11305
11306         Ensure no #include statements inside extern "C" { ... }.
11307         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
11308         contain #include statements.
11309         * lib/time.in.h: Likewise.
11310
11311 2010-03-20  Bruno Haible  <bruno@clisp.org>
11312
11313         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
11314         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
11315         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
11316         Reported by John W. Eaton <jwe@gnu.org>.
11317
11318 2010-03-20  Bruno Haible  <bruno@clisp.org>
11319
11320         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
11321         Reported by Jim Meyering.
11322
11323 2010-03-20  Bruno Haible  <bruno@clisp.org>
11324
11325         pipe: Set errno upon failure.
11326         * lib/pipe.h: Specify that when -1 is returned, errno is set.
11327         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
11328         errno value in error message.
11329
11330 2010-03-20  Bruno Haible  <bruno@clisp.org>
11331             Jim Meyering  <meyering@redhat.com>
11332
11333         lchown: Avoid "unused variable" warning.
11334         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11335
11336 2010-03-20  Bruno Haible  <bruno@clisp.org>
11337
11338         Work around unlink() bug on MacOS X 10.5.6.
11339         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11340         attempting to unlink a parent directory.
11341         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11342         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11343         activate for the replacement function.
11344         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11345
11346 2010-03-20  Bruno Haible  <bruno@clisp.org>
11347
11348         Fix link errors on Solaris 8.
11349         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11350         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11351
11352 2010-03-19  Jim Meyering  <meyering@redhat.com>
11353
11354         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11355         The _LIBC implementation of build_range_exp correctly honors the
11356         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11357         However, the non-_LIBC implementation would ignore that syntax-bit
11358         flag and return REG_ERANGE unconditionally.
11359         This change makes it honor that flag.
11360         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11361         Make two pointer parameters "const".
11362         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11363         (parse_bracket_exp): Update caller.
11364
11365         regex.m4: correct the reversed range endpoint ([b-a]) test
11366         * m4/regex.m4: When requiring that [b-a] evoke failure,
11367         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11368         test pass once again for x86-based systems.
11369
11370 2010-03-19  Bruno Haible  <bruno@clisp.org>
11371
11372         scandir: Fix link error on Solaris 8.
11373         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11374         macros.
11375
11376 2010-03-19  Bruno Haible  <bruno@clisp.org>
11377
11378         getusershell: Fix documentation.
11379         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11380         module.
11381         * doc/glibc-functions/setusershell.texi: Likewise.
11382
11383         getusershell: Provide declaration, missing on Solaris 9.
11384         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11385         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11386         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11387         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11389         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11390         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11391         HAVE_GETUSERSHELL.
11392         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11393
11394 2010-03-19  Bruno Haible  <bruno@clisp.org>
11395
11396         wctype: Provide iswblank function.
11397         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11398         exists and is fine.
11399         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11400         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11401         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11402         * doc/posix-functions/iswblank.texi: Update.
11403
11404 2010-03-19  Bruno Haible  <bruno@clisp.org>
11405
11406         Tests of module 'pty' in C++ mode.
11407         * modules/pty-tests: New file.
11408         * tests/test-pty-c++.cc: New file.
11409         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11410
11411 2010-03-19  Eric Blake  <eblake@redhat.com>
11412
11413         logb: fix documentation
11414         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11415         1.5 declaration bug.
11416
11417         forkpty, openpty: prefer glibc's const-safe prototype
11418         * lib/forkpty.c (rpl_forkpty): New file.
11419         * lib/openpty.c (rpl_openpty): Likewise.
11420         * modules/forkpty (Files): Distribute it.
11421         * modules/openpty (Files): Likewise.
11422         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11423         check...
11424         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11425         replacement for for non-const BSD signature.
11426         * modules/pty (Makefile.am): Substitute witnesses.
11427         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11428         * tests/test-forkpty.c: Update signature check.
11429         * tests/test-openpty.c: Likewise.
11430         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11431         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11432
11433         forkpty, openpty: split functions into new modules
11434         * modules/pty (Makefile.am): Substitute new witnesses.
11435         (Libraries): Move library detection...
11436         * modules/forkpty: ...into new module.
11437         * modules/openpty: Another new module.
11438         * modules/pty-tests: Rename and split...
11439         * modules/forkpty-tests: ...to this...
11440         * modules/openpty-tests: ...and this.
11441         * tests/test-pty.c: Rename and split...
11442         * tests/test-forkpty.c: ...to this...
11443         * tests/test-openpty.c: ...and this.
11444         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11445         (gl_PTY): Split library searching...
11446         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11447         (gl_FORKPTY, gl_OPENPTY): New macros.
11448         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11449         * NEWS: Mention the split.
11450         * MODULES.html.sh (Misc): Document the modules.
11451         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11452         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11453
11454         pty: improve replacement header
11455         * lib/pty.in.h: New file.
11456         * modules/pty (Files): Ship it.
11457         (Makefile.am): Always build replacement.
11458         * m4/pty.m4: Rename...
11459         * m4/pty_h.m4: ...to this.
11460         (gl_PTY): Modernize setting of witness macros; update check of
11461         forkpty to take proper advantage of cache.
11462         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11463
11464         getopt: avoid compiler warning
11465         * lib/getopt.c (attribute_hidden): Remove unused macro.
11466
11467 2010-03-18  Bruno Haible  <bruno@clisp.org>
11468
11469         Fix link errors on Solaris 8.
11470         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11471         * modules/search-tests (test_search_c___LDADD): Likewise.
11472         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11473         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11474         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11475         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11476         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11477         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11478         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11479
11480 2010-03-18  Bruno Haible  <bruno@clisp.org>
11481
11482         Fix bug introduced on 2010-03-14.
11483         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11484         (gl_SPAWN_H): Require it.
11485         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11486         Reported by Simon Josefsson.
11487
11488 2010-03-18  Bruno Haible  <bruno@clisp.org>
11489
11490         Fix typo introduced on 2009-12-31.
11491         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11492         posix_spawn_file_actions_adddup2.
11493
11494 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11495         and Eric Blake  <eblake@redhat.com>
11496
11497         test-vc-list-files-git: make more robust
11498         * tests/test-vc-list-files-git.sh: Unset problematic environment
11499         variables.  Chain commands together.
11500
11501 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11502
11503         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11504         `AC_CHECK_DECL' invocation.
11505
11506 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11507
11508         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11509         appears before executable statements. Suggested by Petr Sumbera
11510         <Petr.Sumbera@Sun.COM>.
11511
11512 2010-03-14  Bruno Haible  <bruno@clisp.org>
11513
11514         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11515         portability problems. Instead use a simpler test.
11516         (main): Check that invalid arguments are rejected only on Linux.
11517
11518 2010-03-14  Bruno Haible  <bruno@clisp.org>
11519
11520         Fix bug introduced on 2009-12-31.
11521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11522         gl_PREREQ_SYS_H_WINSOCK2 always.
11523         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11524         SYS_SOCKET_H variable.
11525         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11526         Update comments.
11527         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11528         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11529         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11530         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11531         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11532
11533 2010-03-14  Bruno Haible  <bruno@clisp.org>
11534
11535         Fix values returned by sinl, cosl.
11536         * lib/trigl.h: Add specification comments.
11537         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11538         that combines the values from the precomputed table with the values of
11539         the Chebyshev polynomials.
11540
11541 2010-03-14  Bruno Haible  <bruno@clisp.org>
11542
11543         Fix compilation error when modules 'posix_spawn[p]' are not used.
11544         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11545         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11546
11547 2010-03-14  Bruno Haible  <bruno@clisp.org>
11548
11549         Fix compilation error on mingw when module 'time_r' is not used.
11550         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11551         is 1.
11552         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11553         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11554         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11556
11557 2010-03-14  Bruno Haible  <bruno@clisp.org>
11558
11559         Fix compilation error with Sun C.
11560         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11561         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11562         instead of GCC specific ULONG_LONG_MAX.
11563         * lib/xstrtoll.c: Likewise.
11564         * lib/xstrtoull.c: Likewise.
11565
11566 2010-03-13  Bruno Haible  <bruno@clisp.org>
11567
11568         Allow the user to disable C++ code and tests.
11569         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11570         (gl_PROG_ANSI_CXX): Require it.
11571
11572 2010-03-13  Bruno Haible  <bruno@clisp.org>
11573
11574         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11575         cases.
11576
11577 2010-03-13  Bruno Haible  <bruno@clisp.org>
11578
11579         Test that gnulib does not break the standard C++ headers.
11580         * tests/test-locale-c++2.cc: New file.
11581         * modules/locale-tests (Files): Add it.
11582         (Makefile.am): Compile it for test-locale-c++.
11583         * tests/test-math-c++2.cc: New file.
11584         * modules/math-tests (Files): Add it.
11585         (Makefile.am): Compile it for test-math-c++.
11586         * tests/test-signal-c++2.cc: New file.
11587         * modules/signal-tests (Files): Add it.
11588         (Makefile.am): Compile it for test-signal-c++.
11589         * tests/test-stdio-c++2.cc: New file.
11590         * modules/stdio-tests (Files): Add it.
11591         (Makefile.am): Compile it for test-stdio-c++.
11592         * tests/test-stdlib-c++2.cc: New file.
11593         * modules/stdlib-tests (Files): Add it.
11594         (Makefile.am): Compile it for test-stdlib-c++.
11595         * tests/test-string-c++2.cc: New file.
11596         * modules/string-tests (Files): Add it.
11597         (Makefile.am): Compile it for test-string-c++.
11598         * tests/test-time-c++2.cc: New file.
11599         * modules/time-tests (Files): Add it.
11600         (Makefile.am): Compile it for test-time-c++.
11601         Reported by John W. Eaton <jwe@gnu.org>.
11602
11603 2010-03-13  Bruno Haible  <bruno@clisp.org>
11604
11605         * gnulib-tool (func_usage): Clarify which options are available for
11606         --create-testdir and --create-megatestdir.
11607
11608 2010-03-13  Bruno Haible  <bruno@clisp.org>
11609
11610         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11611         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11612         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11613         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11614         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11615         when appropriate.
11616         Reported by Jim Meyering.
11617
11618 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11619
11620         * gnulib-tool (func_import): Explain origin of code.
11621
11622 2010-03-12  Bruno Haible  <bruno@clisp.org>
11623
11624         Fix problem with automake's definition of CXXLINK.
11625         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11626         Reported by Simon Josefsson and Ludovic Courtès.
11627
11628 2010-03-12  Bruno Haible  <bruno@clisp.org>
11629
11630         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11631         stable releases.
11632
11633 2010-03-11  Bruno Haible  <bruno@clisp.org>
11634
11635         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11636         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11637         whether the system provides one variant or multiple variants of the
11638         function.
11639         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11640         C++ compilers.
11641         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11642         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11643         Reported by Jim Meyering.
11644
11645 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11646
11647         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11648
11649 2010-03-08  Bruno Haible  <bruno@clisp.org>
11650
11651         gnulib-tool: Add support for --libtool in --create-testdir.
11652         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11653         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11654
11655 2010-03-08  Eric Blake  <eblake@redhat.com>
11656
11657         gnulib-tool.texi: mention possibility of git submodule
11658         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11659         submodules.
11660         * doc/.gitignore: Ignore another generated file.
11661
11662 2010-03-08  Karl Berry  <karl@gnu.org>
11663
11664         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11665         of committing gnulib files while skipping others.
11666
11667 2010-03-07  Bruno Haible  <bruno@clisp.org>
11668
11669         Tests of module 'wctype' in C++ mode.
11670         * tests/test-wctype-c++.cc: New file.
11671         * modules/wctype-tests (Files): Add it and tests/signature.h.
11672         (Depends-on): Add ansi-c++-opt.
11673         (Makefile.am): Arrange to compile and run test-wctype-c++.
11674
11675         Tests of module 'wchar' in C++ mode.
11676         * tests/test-wchar-c++.cc: New file.
11677         * modules/wchar-tests (Files): Add it and tests/signature.h.
11678         (Depends-on): Add ansi-c++-opt.
11679         (Makefile.am): Arrange to compile and run test-wchar-c++.
11680         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11681         gl_MODULE_INDICATOR.
11682
11683         Tests of module 'unistd' in C++ mode.
11684         * tests/test-unistd-c++.cc: New file.
11685         * modules/unistd-tests (Files): Add it and tests/signature.h.
11686         (Depends-on): Add ansi-c++-opt.
11687         (Makefile.am): Arrange to compile and run test-unistd-c++.
11688         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11689         gl_MODULE_INDICATOR.
11690
11691         Tests of module 'time' in C++ mode.
11692         * tests/test-time-c++.cc: New file.
11693         * modules/time-tests (Files): Add it and tests/signature.h.
11694         (Depends-on): Add ansi-c++-opt.
11695         (Makefile.am): Arrange to compile and run test-time-c++.
11696         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11697
11698         Tests of module 'sys_time' in C++ mode.
11699         * tests/test-sys_time-c++.cc: New file.
11700         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11701         (Depends-on): Add ansi-c++-opt.
11702         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11703         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11704         gl_MODULE_INDICATOR.
11705
11706         Tests of module 'sys_stat' in C++ mode.
11707         * tests/test-sys_stat-c++.cc: New file.
11708         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11709         (Depends-on): Add ansi-c++-opt.
11710         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11711         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11712         gl_MODULE_INDICATOR.
11713
11714         Tests of module 'sys_socket' in C++ mode.
11715         * tests/test-sys_socket-c++.cc: New file.
11716         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11717         (Depends-on): Add ansi-c++-opt.
11718         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11719         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11720         gl_MODULE_INDICATOR.
11721
11722         Tests of module 'sys_select' in C++ mode.
11723         * tests/test-sys_select-c++.cc: New file.
11724         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11725         (Depends-on): Add ansi-c++-opt.
11726         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11727         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11728         gl_MODULE_INDICATOR.
11729
11730         Tests of module 'sys_ioctl' in C++ mode.
11731         * tests/test-sys_ioctl-c++.cc: New file.
11732         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11733         (Depends-on): Add ansi-c++-opt.
11734         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11735         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11736         gl_MODULE_INDICATOR.
11737
11738         Tests of module 'string' in C++ mode.
11739         * tests/test-string-c++.cc: New file.
11740         * modules/string-tests (Files): Add it and tests/signature.h.
11741         (Depends-on): Add ansi-c++-opt.
11742         (Makefile.am): Arrange to compile and run test-string-c++.
11743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11744         gl_MODULE_INDICATOR.
11745
11746         Tests of module 'stdlib' in C++ mode.
11747         * tests/test-stdlib-c++.cc: New file.
11748         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11749         (Depends-on): Add ansi-c++-opt.
11750         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11751         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11752         gl_MODULE_INDICATOR.
11753
11754         Tests of module 'stdio' in C++ mode.
11755         * tests/test-stdio-c++.cc: New file.
11756         * modules/stdio-tests (Files): Add it and tests/signature.h.
11757         (Depends-on): Add ansi-c++-opt.
11758         (Makefile.am): Arrange to compile and run test-stdio-c++.
11759         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11760         gl_MODULE_INDICATOR.
11761
11762         Tests of module 'spawn' in C++ mode.
11763         * tests/test-spawn-c++.cc: New file.
11764         * modules/spawn-tests (Files): Add it and tests/signature.h.
11765         (Depends-on): Add ansi-c++-opt.
11766         (Makefile.am): Arrange to compile and run test-spawn-c++.
11767         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11768         gl_MODULE_INDICATOR.
11769
11770         Tests of module 'signal' in C++ mode.
11771         * tests/test-signal-c++.cc: New file.
11772         * modules/signal-tests (Files): Add it and tests/signature.h.
11773         (Depends-on): Add ansi-c++-opt.
11774         (Makefile.am): Arrange to compile and run test-signal-c++.
11775         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11776         gl_MODULE_INDICATOR.
11777
11778         Tests of module 'search' in C++ mode.
11779         * tests/test-search-c++.cc: New file.
11780         * modules/search-tests (Files): Add it and tests/signature.h.
11781         (Depends-on): Add ansi-c++-opt.
11782         (Makefile.am): Arrange to compile and run test-search-c++.
11783         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11784         gl_MODULE_INDICATOR.
11785
11786         Tests of module 'math' in C++ mode.
11787         * tests/test-math-c++.cc: New file.
11788         * modules/math-tests (Files): Add it and tests/signature.h.
11789         (Depends-on): Add ansi-c++-opt.
11790         (Makefile.am): Arrange to compile and run test-math-c++.
11791         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11792
11793         Tests of module 'locale' in C++ mode.
11794         * tests/test-locale-c++.cc: New file.
11795         * modules/locale-tests (Files): Add it and tests/signature.h.
11796         (Depends-on): Add ansi-c++-opt.
11797         (Makefile.am): Arrange to compile and run test-locale-c++.
11798         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11799         gl_MODULE_INDICATOR.
11800
11801         Tests of module 'langinfo' in C++ mode.
11802         * tests/test-langinfo-c++.cc: New file.
11803         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11804         (Depends-on): Add ansi-c++-opt.
11805         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11806         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11807         gl_MODULE_INDICATOR.
11808
11809         Tests of module 'iconv-h' in C++ mode.
11810         * tests/test-iconv-h-c++.cc: New file.
11811         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11812         (Depends-on): Add ansi-c++-opt.
11813         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11814
11815         Tests of module 'glob' in C++ mode.
11816         * tests/test-glob-c++.cc: New file.
11817         * modules/glob-tests (Files): Add it.
11818         (Depends-on): Add ansi-c++-opt.
11819         (Makefile.am): Arrange to compile and run test-glob-c++.
11820
11821         Tests of module 'fcntl-h' in C++ mode.
11822         * tests/test-fcntl-h-c++.cc: New file.
11823         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11824         (Depends-on): Add ansi-c++-opt.
11825         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11826         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11827         gl_MODULE_INDICATOR.
11828
11829         Tests of module 'dirent' in C++ mode.
11830         * tests/test-dirent-c++.cc: New file.
11831         * modules/dirent-tests (Files): Add it and tests/signature.h.
11832         (Depends-on): Add ansi-c++-opt.
11833         (Makefile.am): Arrange to compile and run test-dirent-c++.
11834         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11835         gl_MODULE_INDICATOR.
11836
11837         New module 'ansi-c++-opt'.
11838         * modules/ansi-c++-opt: New file.
11839         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11840
11841         Document C++ namespace mode.
11842         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11843
11844         wctype: Avoid #define replacements in C++ mode.
11845         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11846         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11847         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11848         In C++, define a namespaced alias symbol.
11849         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11850         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11851         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11852         rule.
11853
11854         wchar: Avoid #define replacements in C++ mode.
11855         * lib/wchar.in.h: Include c++defs.h.
11856         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11857         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11858         symbol.
11859         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11860         * modules/wchar (Depends-on): Add c++defs.
11861         (Makefile.am): Update wchar.h rule.
11862
11863         unistd: Avoid #define replacements in C++ mode.
11864         * lib/unistd.in.h: Include c++defs.h.
11865         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11866         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11867         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11868         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11869         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11870         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11871         symbol.
11872         (environ): Update.
11873         * modules/unistd (Depends-on): Add c++defs.
11874         (Makefile.am): Update unistd.h rule.
11875
11876         time: Avoid #define replacements in C++ mode.
11877         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11878         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11879         define a namespaced alias symbol.
11880         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11881         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11882         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11883         * modules/time (Depends-on): Add c++defs, warn-on-use.
11884         (Makefile.am): Update time.h rule.
11885         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11886         * modules/nanosleep (configure.ac): Likewise.
11887         * modules/strptime (configure.ac): Likewise.
11888         * modules/timegm (configure.ac): Likewise.
11889
11890         sys_time: Avoid #define replacements in C++ mode.
11891         * lib/sys_time.in.h: Include c++defs.h.
11892         (gettimeofday): In C++, define a namespaced alias symbol.
11893         * modules/sys_time (Depends-on): Add c++defs.
11894         (Makefile.am): Update sys/time.h rule.
11895
11896         sys_stat: Avoid #define replacements in C++ mode.
11897         * lib/sys_stat.in.h: Include c++defs.h.
11898         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11899         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11900         namespaced alias symbol.
11901         In C++, define a namespaced alias symbol.
11902         * modules/sys_stat (Depends-on): Add c++defs.
11903         (Makefile.am): Update sys/stat.h rule.
11904
11905         sys_socket: Avoid #define replacements in C++ mode.
11906         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11907         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11908         definitions also when the system has a <sys/socket.h>.
11909         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11910         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11911         In C++, define a namespaced alias symbol.
11912         * modules/sys_socket (Depends-on): Add c++defs.
11913         (Makefile.am): Update sys/socket.h rule.
11914
11915         sys_select: Avoid #define replacements in C++ mode.
11916         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11917         definitions also when the system has a <sys/select.h>.
11918         (select): In C++, define a namespaced alias symbol.
11919         * modules/sys_select (Depends-on): Add c++defs.
11920         (Makefile.am): Update sys/select.h rule.
11921
11922         sys_ioctl: Avoid #define replacements in C++ mode.
11923         * lib/sys_ioctl.in.h: Include c++defs.h.
11924         (ioctl): In C++, define a namespaced alias symbol.
11925         * modules/sys_ioctl (Depends-on): Add c++defs.
11926         (Makefile.am): Update sys/ioctl.h rule.
11927
11928         string: Avoid #define replacements in C++ mode.
11929         * lib/string.in.h: Include c++defs.h.
11930         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11931         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11932         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11933         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11934         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11935         * modules/string (Depends-on): Add c++defs.
11936         (Makefile.am): Update string.h rule.
11937
11938         stdlib: Avoid #define replacements in C++ mode.
11939         * lib/stdlib.in.h: Include c++defs.h.
11940         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11941         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11942         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11943         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11944         symbol.
11945         * modules/stdlib (Depends-on): Add c++defs.
11946         (Makefile.am): Update stdlib.h rule.
11947
11948         stdio: Avoid #define replacements in C++ mode.
11949         * lib/stdio.in.h: Include c++defs.h.
11950         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11951         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11952         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11953         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11954         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11955         namespaced alias symbol.
11956         * modules/stdio (Depends-on): Add c++defs.
11957         (Makefile.am): Update stdio.h rule.
11958
11959         spawn: Avoid #define replacements in C++ mode.
11960         * lib/spawn.in.h: Include c++defs.h.
11961         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11962         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11963         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11964         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11965         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11966         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11967         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11968         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11969         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11970         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11971         In C++, define a namespaced alias symbol.
11972         * modules/spawn (Depends-on): Add c++defs.
11973         (Makefile.am): Update spawn.h rule.
11974
11975         signal: Avoid #define replacements in C++ mode.
11976         * lib/signal.in.h: Include c++defs.h.
11977         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11978         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11979         namespaced alias symbol.
11980         * modules/signal (Depends-on): Add c++defs.
11981         (Makefile.am): Update signal.h rule.
11982
11983         search: Avoid #define replacements in C++ mode.
11984         * lib/search.in.h: Include c++defs.h.
11985         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11986         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11987         symbol.
11988         * modules/search (Depends-on): Add c++defs.
11989         (Makefile.am): Update search.h rule.
11990
11991         math: Avoid #define replacements in C++ mode.
11992         * lib/math.in.h: Include c++defs.h.
11993         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11994         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11995         trunc, truncl): In C++, define a namespaced alias symbol.
11996         * modules/math (Depends-on): Add c++defs.
11997         (Makefile.am): Update math.h rule.
11998
11999         locale: Avoid #define replacements in C++ mode.
12000         * lib/locale.in.h: Include c++defs.h.
12001         (duplocale): In C++, define a namespaced alias symbol.
12002         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12003         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12004         * modules/locale (Depends-on): Add c++defs.
12005         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12006
12007         langinfo: Avoid #define replacements in C++ mode.
12008         * lib/langinfo.in.h: Include c++defs.h.
12009         (nl_langinfo): In C++, define a namespaced alias symbol.
12010         * modules/langinfo (Depends-on): Add c++defs.
12011         (Makefile.am): Update langinfo.h rule.
12012
12013         iconv-h: Avoid #define replacements in C++ mode.
12014         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12015         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12016         symbol.
12017         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12018         whenever iconv is present.
12019         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12020         (Makefile.am): Update iconv.h rule.
12021
12022         glob: Avoid #define replacements in C++ mode.
12023         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12024         (_gl_glob_errfunc_fn): New type.
12025         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12026         symbol.
12027         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12028         (Makefile.am): Update glob.h rule.
12029
12030         fcntl-h: Avoid #define replacements in C++ mode.
12031         * lib/fcntl.in.h: Include c++defs.h.
12032         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12033         * modules/fcntl-h (Depends-on): Add c++defs.
12034         (Makefile.am): Update fcntl.h rule.
12035
12036         dirent: Avoid #define replacements in C++ mode.
12037         * lib/dirent.in.h: Include c++defs.h.
12038         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12039         namespaced alias symbol.
12040         (dirfd): Update declaration.
12041         * modules/dirent (Depends-on): Add c++defs.
12042         (Makefile.am): Update dirent.h rule.
12043
12044         ctype: Make it usable in C++ code.
12045         * lib/ctype.in.h: Include c++defs.h.
12046         (isblank): Declare as extern "C".
12047         * modules/ctype (Depends-on): Add c++defs.
12048         (Makefile.am): Update ctype.h rule.
12049
12050         New module 'c++defs'.
12051         * modules/c++defs: New file.
12052         * build-aux/c++defs.h: New file.
12053         Reported by John W. Eaton <jwe@gnu.org>.
12054
12055 2010-03-07  Bruno Haible  <bruno@clisp.org>
12056
12057         logb: Provide missing declaration for Cygwin.
12058         * lib/math.in.h (logb): New declaration.
12059         * m4/logb.m4: New file.
12060         * modules/logb (Files): Add m4/logb.m4.
12061         (Depends-on): Add math.
12062         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12063         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12065         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12066         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12067
12068 2010-03-07  Bruno Haible  <bruno@clisp.org>
12069
12070         Fix test-cond link error.
12071         * tests/test-cond.c: Include <stdio.h>.
12072
12073 2010-03-07  Bruno Haible  <bruno@clisp.org>
12074
12075         Fix test-dirent-safer link error.
12076         * modules/dirent-safer-tests (Makefile.am): Define
12077         test_dirent_safer_LDADD.
12078
12079 2010-03-07  Bruno Haible  <bruno@clisp.org>
12080
12081         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12082         among default module list.
12083
12084 2010-03-07  Bruno Haible  <bruno@clisp.org>
12085
12086         Fix link error on platforms with GNU libiconv.
12087         * modules/unistr/u8-strcoll-tests (Makefile): Define
12088         test_u8_strcoll_LDADD.
12089         * modules/unistr/u16-strcoll-tests (Makefile): Define
12090         test_u16_strcoll_LDADD.
12091         * modules/unistr/u32-strcoll-tests (Makefile): Define
12092         test_u32_strcoll_LDADD.
12093
12094 2010-03-07  Bruno Haible  <bruno@clisp.org>
12095
12096         Use POSIX declarations for socket functions.
12097         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12098         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12099         rpl_sendto): Change declaration to match POSIX.
12100         * lib/connect.c (rpl_connect): Likewise.
12101         * lib/accept.c (rpl_accept): Likewise.
12102         * lib/bind.c (rpl_bind): Likewise.
12103         * lib/getpeername.c (rpl_getpeername): Likewise.
12104         * lib/getsockname.c (rpl_getsockname): Likewise.
12105         * lib/recv.c (rpl_recv): Likewise.
12106         * lib/send.c (rpl_send): Likewise.
12107         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12108         * lib/sendto.c (rpl_sendto): Likewise.
12109
12110 2010-03-06  Bruno Haible  <bruno@clisp.org>
12111
12112         Clarify access, euidaccess, faccessat.
12113         * doc/posix-functions/faccessat.texi: Mention security problem under
12114         "Other problems", not "Portability problems".
12115         * doc/posix-functions/access.texi: Likewise. Mention a related security
12116         problem.
12117         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12118         * lib/euidaccess.c: Add comments about platforms.
12119         * lib/unistd.in.h (access, euidaccess): Add warnings.
12120
12121 2010-03-07  Bruno Haible  <bruno@clisp.org>
12122
12123         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12124         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12125         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12126         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12127         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12128         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12129         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12130         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12131         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12132         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12133         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12134         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12135         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12136         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12137         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12138         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12139         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12140         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12141         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12142         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12143         Likewise.
12144         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12145         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12146         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12147         Likewise.
12148         * tests/test-spawn.c (main): Make it work when
12149         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12150
12151 2010-03-07  Bruno Haible  <bruno@clisp.org>
12152
12153         Fix incorrect Makefile.am generation in German locale.
12154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12155         Execute sed command with character range in C locale.
12156
12157 2010-03-06  Bruno Haible  <bruno@clisp.org>
12158
12159         Tests for module 'iconv-h'.
12160         * modules/iconv-h-tests: New file.
12161         * tests/test-iconv-h.c: New file.
12162
12163         New module 'iconv-h'.
12164         * modules/iconv-h: New file.
12165         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12166         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12167         (configure.ac): Remove gl_ICONV_H.
12168         (Makefile.am): Remove rule for iconv.h.
12169
12170 2010-03-06  Bruno Haible  <bruno@clisp.org>
12171
12172         More consistent naming of *.m4 files.
12173         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12174         * modules/wctype (Files): Update.
12175
12176         More consistent naming of *.m4 files.
12177         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12178         * modules/wchar (Files): Update.
12179
12180 2010-03-06  Jim Meyering  <meyering@redhat.com>
12181
12182         euidaccess: relax license to LGPLv2+
12183         * modules/euidaccess (License): Relax to LGPLv2+.
12184
12185 2010-03-06  Bruno Haible  <bruno@clisp.org>
12186
12187         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12188         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12189         (Makefile.am): Augment lib_SOURCES instead.
12190
12191 2010-03-04  Jim Meyering  <meyering@redhat.com>
12192
12193         utime: remove obsolete module
12194         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12195         unnecessary for years, and has been marked as obsolete for 10 months.
12196         * modules/utime: Remove file.
12197         * lib/utime.c: Remove file.
12198         * m4/utime.m4: Remove file.
12199         * m4/utimes-null.m4: Remove file.
12200         * doc/posix-functions/utime.texi (utime): Remove reference to
12201         the module.  Move the sole "fixed by gnulib" item into the
12202         "problems not fixed by Gnulib" list.
12203         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12204
12205 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12206
12207         * modules/exit (License): Relax license to LGPLv2+.
12208         (Status): Mark as obsolete.
12209         * NEWS: Mention deprecated 'exit' module.
12210         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12211         of now obsolete 'exit'.
12212
12213 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12214
12215         fts-lgpl: remove unused module
12216         * modules/fts-lgpl: Remove.
12217         * MODULES.html.sh (func_all_modules): Adjust.
12218         * check-module (find_included_lib_files): Adjust.
12219         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12220
12221 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12222
12223         copy-acl: enhance Solaris ACL error handling
12224         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12225         * lib/set-mode-acl.c (qset_acl): Likewise.
12226
12227 2010-03-02  Bruno Haible  <bruno@clisp.org>
12228
12229         spawn: Don't override the system defined values on FreeBSD 8.
12230         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12231         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12232         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12233         if HAVE_POSIX_SPAWN is 1.
12234         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12235
12236 2010-03-01  Bruno Haible  <bruno@clisp.org>
12237
12238         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12239         regarding Automake.
12240
12241 2010-02-25  Bruno Haible  <bruno@clisp.org>
12242
12243         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12244         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12245         setting, not afterwards.
12246         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12247
12248 2010-02-24  Eric Blake  <eblake@redhat.com>
12249
12250         bootstrap, git-version-gen: use timestamp
12251         * build-aux/git-version-gen (scriptversion): Force UTC.
12252         * build-aux/bootstrap (scriptversion): New variable.
12253
12254         bootstrap: allow older git
12255         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12256         older than 1.6.4.  Requested by the libvirt project.
12257
12258 2010-02-23  Eric Blake  <eblake@redhat.com>
12259
12260         warn-on-use: work with old autoconf
12261         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12262         AS_VAR semantics of autoconf 2.60.
12263         Reported by Bruno Haible.
12264
12265         bootstrap: improve some comments
12266         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12267         clarification comments.
12268
12269         gettimeofday: provide correct function
12270         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12271         when replacement is declared, otherwise provide gettimeofday.
12272         Reported by Michael Goffioul.
12273
12274 2010-02-23  Jim Meyering  <meyering@redhat.com>
12275
12276         lib-ignore: relax license to "unlimited", not LGPLv2+
12277         * modules/lib-ignore (License): Relax to "unlimited".
12278
12279 2010-02-23  Jim Meyering  <meyering@redhat.com>
12280
12281         lib-ignore: relax license to LGPLv2+
12282         * modules/lib-ignore (License): Relax to LGPLv2+.
12283
12284 2010-02-22  Eric Blake  <eblake@redhat.com>
12285
12286         lseek: avoid bash 3.2 broken pipe bug
12287         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12288         warning from bash 3.2.
12289         Reported by Ben Pfaff, with analysis from Bruno Haible.
12290
12291         bootstrap: support non-FSF copyright holder
12292         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
12293         bootstrap.conf override of COPYRIGHT_HOLDER.
12294         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12295
12296         bootstrap: interoperate with gettext 0.14.1
12297         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
12298
12299         bootstrap: allow for alternate submodule location
12300         * build-aux/bootstrap (gnulib_path): New variable; use instead of
12301         hardcoding submodule location.
12302         (gnulib_mk): Allow direct use of Makefile.am.
12303
12304         bootstrap: use GNULIB_SRCDIR to reduce disk usage
12305         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
12306         rather than reconfiguring where the submodule points.
12307
12308         gettimeofday: restore support for platforms that lack function
12309         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
12310         replacement if function is missing.
12311         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
12312         * modules/sys_time (Makefile.am): Substitute it.
12313         * lib/sys_time.in.h (gettimeofday): Check it.
12314         Reported by Michael Goffioul.
12315
12316 2010-02-21  Bruno Haible  <bruno@clisp.org>
12317
12318         * lib/stdio.in.h (obstack_printf): Fix typo.
12319
12320 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
12321
12322         vc-list-files: use bzr ls's -R option
12323         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
12324         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
12325
12326 2010-02-21  Jim Meyering  <meyering@redhat.com>
12327
12328         init.sh: fix EXEEXT shims to work also for names like test-prog
12329         * tests/init.sh: Re-exec a better shell, when needed.
12330         If the current shell lacks support for posix $(...), an init.sh-using
12331         test will now try to find a shell that supports that.  If EXEEXT is
12332         nonempty, we also require support for hyphen-in-alias-name and shell
12333         substitutions like ${var#glob}.  Failure to find such a shell results
12334         in a skipped test.
12335
12336 2010-02-21  Bruno Haible  <bruno@clisp.org>
12337
12338         Really work around around "broken pipe" error message from bash 3.2.
12339         * gnulib-tool (func_reset_sigpipe): Remove function.
12340         (echo): In bash 3.2, define to a function that uses printf.
12341         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12342
12343 2010-02-20  Bruno Haible  <bruno@clisp.org>
12344
12345         Restore support for automake 1.9.6 with autoconf 2.61.
12346         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12347         Reported by James Youngman <jay@gnu.org>.
12348
12349 2010-02-20  Bruno Haible  <bruno@clisp.org>
12350
12351         Improve *printf warning condition.
12352         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12353         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12354         and the function is overridden due to SIGPIPE emulation.
12355
12356 2010-02-20  Bruno Haible  <bruno@clisp.org>
12357
12358         * lib/stdio.in.h: Tweak comments.
12359
12360 2010-02-19  Bruno Haible  <bruno@clisp.org>
12361
12362         Make it easier to find modules. New gnulib-tool option '--find'.
12363         * gnulib-tool: New option --find.
12364         (func_usage): Document it.
12365         (func_sanitize_modulelist): New function, extracted from
12366         func_all_modules.
12367         (func_all_modules): Invoke it.
12368         * doc/gnulib-tool.texi (Which modules?): New node.
12369
12370 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12371
12372         * lib/sys_select.in.h: Provide select replacement even if
12373         sys/select.h exists on a system, for Interix.
12374
12375 2010-02-18  Jim Meyering  <meyering@redhat.com>
12376
12377         init.sh: don't use $(...) just yet
12378         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12379         to accommodate e.g., Solaris' /bin/sh.
12380
12381 2010-02-17  Bruno Haible  <bruno@clisp.org>
12382
12383         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12384         Reported by Ludovic Courtès <ludo@gnu.org>.
12385
12386 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12387
12388         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12389         linking with -lintl.
12390
12391 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12392
12393         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12394         if not provided by the system's netdb.h.  Reported by
12395         ludo@gnu.org (Ludovic Courtès).
12396
12397 2010-02-15  Jim Meyering  <meyering@redhat.com>
12398
12399         init.sh: improve portability and efficiency
12400         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12401         "dummy" in a for loop.
12402         Use '!', not '^' to select the complement of a character set used
12403         in a "case" statement.
12404         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12405         Suggestions from Eric Blake.
12406
12407         init.sh: automatically accommodate programs with the .exe suffix
12408         Automatically arrange for an invocation of "prog" to execute the
12409         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12410         may use the simpler "prog", yet still work when built on a system
12411         that requires specifying the added suffix.
12412         Do this by constructing a function named "prog" that invokes
12413         "prog.exe" for each .exe file in selected directories.
12414         * tests/init.sh (find_exe_basenames_): New function.
12415         (create_exe_shim_functions_): New function.
12416         (path_prepend_): Use it.
12417
12418         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12419         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12420         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12421
12422 2010-02-14  Jim Meyering  <meyering@redhat.com>
12423
12424         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12425         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12426         (sc_prohibit_hash_pjw_without_use): New rule.
12427
12428         maint.mk: allow the default upload destination dir to be overridden
12429         * top/maint.mk (upload_dest_dir_): Define with a default that
12430         preserves the status quo.
12431         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12432         Reported by Peter Simons.
12433
12434         maint.mk: prohibit inclusion of "hash.h" without_use
12435         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12436
12437 2010-02-10  Jim Meyering  <meyering@redhat.com>
12438
12439         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12440         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12441
12442 2010-02-09  Eric Blake  <ebb9@byu.net>
12443         and Bruno Haible  <bruno@clisp.org>
12444
12445         obstack-printf-posix: ensure declaration
12446         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12447         extracted from gl_FUNC_OBSTACK_PRINTF.
12448         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12449         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12450         Likewise.
12451         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12452         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12453         0.
12454
12455 2010-02-08  Bruno Haible  <bruno@clisp.org>
12456
12457         gnulib-tool: Fix typo in 2010-02-07 commit.
12458         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12459         Reported by Eric Blake.
12460
12461 2010-02-07  Bruno Haible  <bruno@clisp.org>
12462
12463         gnulib-tool: Fix up caching patches.
12464         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12465         option --no-cache. Use associative arrays when supported by the shell.
12466         (sed_comments): New variable.
12467         (modcache): Renamed from do_cache.
12468         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12469         abbreviate unnecessarily.
12470         (have_associative): New variable.
12471         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12472         way also for ksh and zsh.
12473         (func_init_sed_convert_to_cache_statements): New function, extracted
12474         from func_cache_lookup_module. Add support for associative arrays.
12475         Don't set the c_MODULE_cached variable here. Ignore all lines before
12476         the first field header. Remove only the final newline, not all trailing
12477         newlines. Support empty fields correctly. Limit the use of 'eval' to
12478         assignments.
12479         (func_get_description, func_get_status, func_get_notice,
12480         func_get_applicability, func_get_filelist, func_get_dependencies,
12481         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12482         func_get_automake_snippet, func_get_include_directive,
12483         func_get_link_directive, func_get_license, func_get_maintainer):
12484         Update documentation. List the unoptimized code first. Add support for
12485         associative arrays. Limit the use of 'eval' to assignments.
12486         (func_get_applicability): Undo stylistic pessimisations.
12487         (func_get_automake_snippet, func_get_include_directive): Reduce code
12488         duplication.
12489         (func_modules_transitive_closure, func_modules_add_dummy,
12490         func_modules_notice, func_modules_to_filelist, func_add_file,
12491         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12492         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12493         func_create_testdir, func_create_megatestdir): Update documentation.
12494
12495 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12496
12497         * gnulib-tool (func_cache_lookup_module): Store the module name
12498         belonging to the cache variable; error out if two different
12499         module names map to the same cache variable name.
12500
12501 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12502
12503         gnulib-tool: Make caching optional.
12504         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12505         Update matching short versions of --no-changelog.
12506         (func_usage): Update.
12507         (sed_extract_cache_prog): Renamed from ...
12508         (sed_extract_prog): ... this; revert to old extraction script.
12509         (func_get_description, func_get_status)
12510         (func_get_notice, func_get_applicability, func_get_filelist)
12511         (func_get_dependencies, func_get_autoconf_early_snippet)
12512         (func_get_autoconf_snippet, func_get_automake_snippet)
12513         (func_get_include_directive, func_get_link_directive)
12514         (func_get_license, func_get_maintainer): If $do_cache is false,
12515         use old, non-caching extraction scripts.
12516         Suggestion by Bruno Haible.
12517
12518 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12519
12520         gnulib-tool: cache module metainformation.
12521         * gnulib-tool (sed_extract_prog): Match newline before each
12522         header, and rewrite header to a shell variable suffix.
12523         (func_cache_var, func_cache_lookup_module): New functions,
12524         to turn a module name into a cache variable prefix, and to
12525         look up and cache module metainformation.
12526         (func_get_description, func_get_status)
12527         (func_get_notice, func_get_applicability, func_get_filelist)
12528         (func_get_dependencies, func_get_autoconf_early_snippet)
12529         (func_get_autoconf_snippet, func_get_automake_snippet)
12530         (func_get_include_directive, func_get_link_directive)
12531         (func_get_license, func_get_maintainer): Use
12532         func_cache_lookup_module.
12533
12534 2010-02-07  Bruno Haible  <bruno@clisp.org>
12535
12536         fnctl: Fix missing dependency.
12537         * modules/fcntl (Depends-on): Add getdtablesize.
12538         Reported by John W. Eaton <jwe@gnu.org>.
12539
12540 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12541
12542         Argp: fix recognition of short alias options.
12543
12544         * lib/argp-parse.c (convert_options): Fix improper use of
12545         `|' between character values.
12546         * tests/test-argp.c (group1_option): New alias option
12547         --read (-r).
12548         (group1_parser): Special handling for 'r'.
12549         (test15): New test case.
12550         (test_fun): Add test15.
12551         * tests/test-argp-2.sh: Update expected --help and --usage
12552         outputs.
12553
12554 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12555
12556         * tests/test-argp.c: Fix indentation.
12557
12558 2010-02-04  Eric Blake  <ebb9@byu.net>
12559
12560         gettimeofday: expose type of second argument
12561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12562         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12563         * tests/test-gettimeofday.c: Use it to silence warning.
12564         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12565         the issue.
12566
12567 2010-02-03  Jim Meyering  <meyering@redhat.com>
12568
12569         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12570         * lib/regcomp.c (TYPE_SIGNED): Define.
12571         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12572
12573         regcomp.c: avoid a new -Wshadow warning
12574         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12575
12576 2010-02-01  Jim Meyering  <meyering@redhat.com>
12577
12578         removing useless parentheses in cpp #define directives
12579         For motivation, see commit c0221df4, "define STREQ(a,b)
12580         consistently, removing useless parentheses"
12581         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12582         * lib/mountlist.c (MNT_IGNORE): Likewise.
12583         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12584
12585 2010-02-01  Eric Blake  <ebb9@byu.net>
12586
12587         sys_time: use link-warning
12588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12589         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12590         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12591         * modules/sys_time (Depends-on): Add warn-on-use.
12592         (Makefile.am): Always build replacement.
12593         (configure.ac): Update substitutions.
12594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12595         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12596         bother with SYS_TIME_H.
12597         * modules/gettimeofday (configure.ac): Declare indicator.
12598         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12599         in use.
12600
12601         closein-tests: silence compiler warning
12602         * tests/test-closein.c (main): Ignore fread result.
12603         * modules/closein-tests (Depends-on): Add ignore-value.
12604
12605         tests: silence warning about system return
12606         * tests/test-areadlink-with-size.c (main): Ignore system result.
12607         * tests/test-areadlink.c (main): Likewise.
12608         * tests/test-areadlinkat-with-size.c (main): Likewise.
12609         * tests/test-areadlinkat.c (main): Likewise.
12610         * tests/test-canonicalize-lgpl.c (main): Likewise.
12611         * tests/test-canonicalize.c (main): Likewise.
12612         * tests/test-chown.c (main): Likewise.
12613         * tests/test-fchownat.c (main): Likewise.
12614         * tests/test-fdutimensat.c (main): Likewise.
12615         * tests/test-fstatat.c (main): Likewise.
12616         * tests/test-futimens.c (main): Likewise.
12617         * tests/test-lchown.c (main): Likewise.
12618         * tests/test-link.c (main): Likewise.
12619         * tests/test-linkat.c (main): Likewise.
12620         * tests/test-lstat.c (main): Likewise.
12621         * tests/test-mkdir.c (main): Likewise.
12622         * tests/test-mkdirat.c (main): Likewise.
12623         * tests/test-mkfifo.c (main): Likewise.
12624         * tests/test-mkfifoat.c (main): Likewise.
12625         * tests/test-mknod.c (main): Likewise.
12626         * tests/test-readlink.c (main): Likewise.
12627         * tests/test-remove.c (main): Likewise.
12628         * tests/test-rename.c (main): Likewise.
12629         * tests/test-renameat.c (main): Likewise.
12630         * tests/test-rmdir.c (main): Likewise.
12631         * tests/test-symlink.c (main): Likewise.
12632         * tests/test-symlinkat.c (main): Likewise.
12633         * tests/test-unlink.c (main): Likewise.
12634         * tests/test-unlinkat.c (main): Likewise.
12635         * tests/test-utimens.c (main): Likewise.
12636         * tests/test-utimensat.c (main): Likewise.
12637         * modules/areadlink-tests (Depends-on): Add ignore-value.
12638         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12639         * modules/areadlinkat-tests (Depends-on): Likewise.
12640         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12641         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12642         * modules/canonicalize-tests (Depends-on): Likewise.
12643         * modules/chown-tests (Depends-on): Likewise.
12644         * modules/fdutimensat-tests (Depends-on): Likewise.
12645         * modules/futimens-tests (Depends-on): Likewise.
12646         * modules/lchown-tests (Depends-on): Likewise.
12647         * modules/link-tests (Depends-on): Likewise.
12648         * modules/linkat-tests (Depends-on): Likewise.
12649         * modules/lstat-tests (Depends-on): Likewise.
12650         * modules/mkdir-tests (Depends-on): Likewise.
12651         * modules/mkfifo-tests (Depends-on): Likewise.
12652         * modules/mkfifoat-tests (Depends-on): Likewise.
12653         * modules/mknod-tests (Depends-on): Likewise.
12654         * modules/openat-tests (Depends-on): Likewise.
12655         * modules/readlink-tests (Depends-on): Likewise.
12656         * modules/remove-tests (Depends-on): Likewise.
12657         * modules/rename-tests (Depends-on): Likewise.
12658         * modules/renameat-tests (Depends-on): Likewise.
12659         * modules/rmdir-tests (Depends-on): Likewise.
12660         * modules/symlink-tests (Depends-on): Likewise.
12661         * modules/symlinkat-tests (Depends-on): Likewise.
12662         * modules/unlink-tests (Depends-on): Likewise.
12663         * modules/utimens-tests (Depends-on): Likewise.
12664         * modules/utimensat-tests (Depends-on): Likewise.
12665
12666 2010-01-31  Bruno Haible  <bruno@clisp.org>
12667
12668         Perform the same test for many <math.h> functions.
12669         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12670         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12671         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12672         of gl_MATHFUNC.
12673         * modules/acos (configure.ac): Likewise.
12674         * modules/asin (configure.ac): Likewise.
12675         * modules/atan (configure.ac): Likewise.
12676         * modules/atan2 (configure.ac): Likewise.
12677         * modules/cbrt (configure.ac): Likewise.
12678         * modules/copysign (configure.ac): Likewise.
12679         * modules/cos (configure.ac): Likewise.
12680         * modules/cosh (configure.ac): Likewise.
12681         * modules/erf (configure.ac): Likewise.
12682         * modules/erfc (configure.ac): Likewise.
12683         * modules/exp (configure.ac): Likewise.
12684         * modules/fmod (configure.ac): Likewise.
12685         * modules/hypot (configure.ac): Likewise.
12686         * modules/j0 (configure.ac): Likewise.
12687         * modules/j1 (configure.ac): Likewise.
12688         * modules/jn (configure.ac): Likewise.
12689         * modules/lgamma (configure.ac): Likewise.
12690         * modules/log (configure.ac): Likewise.
12691         * modules/log10 (configure.ac): Likewise.
12692         * modules/log1p (configure.ac): Likewise.
12693         * modules/pow (configure.ac): Likewise.
12694         * modules/remainder (configure.ac): Likewise.
12695         * modules/sin (configure.ac): Likewise.
12696         * modules/sinh (configure.ac): Likewise.
12697         * modules/tan (configure.ac): Likewise.
12698         * modules/tanh (configure.ac): Likewise.
12699         * modules/y0 (configure.ac): Likewise.
12700         * modules/y1 (configure.ac): Likewise.
12701         * modules/yn (configure.ac): Likewise.
12702         Suggested by Paolo Bonzini.
12703
12704 2010-01-31  Bruno Haible  <bruno@clisp.org>
12705
12706         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12707
12708 2010-01-31  Bruno Haible  <bruno@clisp.org>
12709
12710         Work around getdelim() bug on FreeBSD 8.0.
12711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12712         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12713         not work.
12714         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12715         is 1.
12716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12717         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12718         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12719         a non-zero size.
12720         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12721
12722 2010-01-31  Bruno Haible  <bruno@clisp.org>
12723
12724         Work around getline() bug on FreeBSD 8.0.
12725         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12726         and a non-zero size.
12727         * tests/test-getline.c (main): Likewise.
12728         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12729         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12730
12731 2010-01-28  Eric Blake  <ebb9@byu.net>
12732
12733         regex: fix build failure
12734         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12735         platforms.
12736
12737 2010-01-28  Jim Meyering  <meyering@redhat.com>
12738
12739         regex: do not ignore memory allocation failure
12740         * lib/regex_internal.c (create_cd_newstate): Detect
12741         re_node_set_init_copy failure.   Extracted from glibc commit
12742         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12743
12744         regex: sync more white-space changes from libc
12745         * lib/regex_internal.c: White-space only changes.
12746         * lib/regexec.c: Likewise.
12747
12748         regex: add many uses of __attribute_warn_unused_result__
12749         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12750         * lib/regexec.c: Likewise.
12751         Extracted from a messy glibc commit.
12752
12753         regcomp.c: spelling and merge-artifact from glibc
12754         * lib/regcomp.c: Merge remainder of glibc's
12755         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12756
12757         regcomp.c: sync white-space changes from glibc
12758         * lib/regcomp.c: Merge to accommodate white space
12759         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12760
12761         regcomp.c: do not ignore internal return values
12762         * lib/regcomp.c: Do not ignore internal return values.
12763         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12764         but without its white-space changes and spelling fixes.
12765
12766         regex_internal.h: define __attribute_warn_unused_result__
12767         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12768
12769         maint: add a syntax-check rule to check for vulnerable Makefile.in
12770         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12771
12772 2010-01-27  Jim Meyering  <meyering@redhat.com>
12773
12774         ncftpput-ftp: clean up spaces
12775         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12776         Remove trailing blanks.
12777
12778 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12779
12780         * build-aux/git-version-gen: Fix copyright statement.
12781         * build-aux/gnupload: Likewise.
12782         * tests/test-arcfour.c: Likewise.
12783         * tests/test-arctwo.c: Likewise.
12784         * tests/test-count-one-bits.c: Likewise.
12785         * tests/test-crc.c: Likewise.
12786         * tests/test-des.c: Likewise.
12787         * tests/test-gc-arcfour.c: Likewise.
12788         * tests/test-gc-arctwo.c: Likewise.
12789         * tests/test-gc-des.c: Likewise.
12790         * tests/test-gc-hmac-md5.c: Likewise.
12791         * tests/test-gc-hmac-sha1.c: Likewise.
12792         * tests/test-gc-md2.c: Likewise.
12793         * tests/test-gc-md4.c: Likewise.
12794         * tests/test-gc-md5.c: Likewise.
12795         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12796         * tests/test-gc-rijndael.c: Likewise.
12797         * tests/test-gc-sha1.c: Likewise.
12798         * tests/test-gc.c: Likewise.
12799         * tests/test-gethostname.c: Likewise.
12800         * tests/test-gettimeofday.c: Likewise.
12801         * tests/test-hash.c: Likewise.
12802         * tests/test-hmac-md5.c: Likewise.
12803         * tests/test-hmac-sha1.c: Likewise.
12804         * tests/test-md2.c: Likewise.
12805         * tests/test-md4.c: Likewise.
12806         * tests/test-md5.c: Likewise.
12807         * tests/test-memchr.c: Likewise.
12808         * tests/test-memchr2.c: Likewise.
12809         * tests/test-memcmp.c: Likewise.
12810         * tests/test-memmem.c: Likewise.
12811         * tests/test-memrchr.c: Likewise.
12812         * tests/test-rawmemchr.c: Likewise.
12813         * tests/test-read-file.c: Likewise.
12814         * tests/test-rijndael.c: Likewise.
12815         * tests/test-sockets.c: Likewise.
12816         * tests/test-strchrnul.c: Likewise.
12817         * tests/test-strstr.c: Likewise.
12818         * tests/test-strtod.c: Likewise.
12819         * build-aux/ncftpput-ftp: Likewise.
12820
12821 2010-01-26  Eric Blake  <ebb9@byu.net>
12822
12823         ignore-value: update recommended header name
12824         * modules/ignore-value (Include): Only use <> for headers that
12825         exist in glibc.
12826
12827 2010-01-26  Jim Meyering  <meyering@redhat.com>
12828
12829         test-userspec.c: avoid compiler warnings
12830         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12831         and "initialization discards qualifiers..." warnings.
12832         Put the first "uid" in its own scope, and make char* members "const".
12833
12834 2010-01-25  Bruno Haible  <bruno@clisp.org>
12835
12836         gnulib-tool: Make warning diagnostics consistent.
12837         * gnulib-tool (func_warning): New function.
12838         Use it everywhere where gnulib-tool produces output to stderr and it is
12839         not a fatal error.
12840
12841 2010-01-25  Bruno Haible  <bruno@clisp.org>
12842
12843         Fix test dependencies.
12844         * modules/xstrtol-tests (Depends-on): Add inttypes.
12845         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12846
12847 2010-01-25 Pádraig Brady <P@draigBrady.com>
12848
12849         syntax-check: detect incorrect boolean macro values in config.h
12850         * modules/maintainer-makefile (configure.ac): Parameterize the location
12851         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12852         The logic is from Eric Blake and the location indicated by Jim Meyering.
12853         Note the more natural CONFIG_HEADER name is prohibited by automake
12854         for backwards compatibility reasons.
12855         * top/maint.mk (sc_Wundef_boolean): New rule.
12856
12857 2010-01-25  Jim Meyering  <meyering@redhat.com>
12858
12859         bootstrap: detect MacOS 10.6's shasum, too
12860         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12861         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12862
12863 2010-01-23  Jim Meyering  <meyering@redhat.com>
12864
12865         xstrtoll: new module
12866         * modules/xstrtoll: New file.
12867         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12868         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12869         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12870         ./configure fails if you use this module and lack "long long".
12871         * modules/xstrtoll-tests: New module.
12872         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12873         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12874         new init.sh-based test framework.
12875
12876 2010-01-24  Bruno Haible  <bruno@clisp.org>
12877
12878         Tests for module 'yn'.
12879         * modules/yn-tests: New file.
12880         * tests/test-yn.c: New file.
12881
12882         Tests for module 'y1'.
12883         * modules/y1-tests: New file.
12884         * tests/test-y1.c: New file.
12885
12886         Tests for module 'y0'.
12887         * modules/y0-tests: New file.
12888         * tests/test-y0.c: New file.
12889
12890         Tests for module 'tanh'.
12891         * modules/tanh-tests: New file.
12892         * tests/test-tanh.c: New file.
12893
12894         Tests for module 'tan'.
12895         * modules/tan-tests: New file.
12896         * tests/test-tan.c: New file.
12897
12898         Tests for module 'sqrt'.
12899         * modules/sqrt-tests: New file.
12900         * tests/test-sqrt.c: New file.
12901
12902         Tests for module 'sinh'.
12903         * modules/sinh-tests: New file.
12904         * tests/test-sinh.c: New file.
12905
12906         Tests for module 'sin'.
12907         * modules/sin-tests: New file.
12908         * tests/test-sin.c: New file.
12909
12910         Tests for module 'rint'.
12911         * modules/rint-tests: New file.
12912         * tests/test-rint.c: New file.
12913
12914         Tests for module 'remainder'.
12915         * modules/remainder-tests: New file.
12916         * tests/test-remainder.c: New file.
12917
12918         Tests for module 'pow'.
12919         * modules/pow-tests: New file.
12920         * tests/test-pow.c: New file.
12921
12922         Tests for module 'nextafter'.
12923         * modules/nextafter-tests: New file.
12924         * tests/test-nextafter.c: New file.
12925
12926         Tests for module 'modf'.
12927         * modules/modf-tests: New file.
12928         * tests/test-modf.c: New file.
12929
12930         Tests for module 'logb'.
12931         * modules/logb-tests: New file.
12932         * tests/test-logb.c: New file.
12933
12934         Tests for module 'log1p'.
12935         * modules/log1p-tests: New file.
12936         * tests/test-log1p.c: New file.
12937
12938         Tests for module 'log10'.
12939         * modules/log10-tests: New file.
12940         * tests/test-log10.c: New file.
12941
12942         Tests for module 'log'.
12943         * modules/log-tests: New file.
12944         * tests/test-log.c: New file.
12945
12946         Tests for module 'lgamma'.
12947         * modules/lgamma-tests: New file.
12948         * tests/test-lgamma.c: New file.
12949
12950         Tests for module 'ldexp'.
12951         * modules/ldexp-tests: New file.
12952         * tests/test-ldexp.c: New file.
12953
12954         Tests for module 'jn'.
12955         * modules/jn-tests: New file.
12956         * tests/test-jn.c: New file.
12957
12958         Tests for module 'j1'.
12959         * modules/j1-tests: New file.
12960         * tests/test-j1.c: New file.
12961
12962         Tests for module 'j0'.
12963         * modules/j0-tests: New file.
12964         * tests/test-j0.c: New file.
12965
12966         Tests for module 'hypot'.
12967         * modules/hypot-tests: New file.
12968         * tests/test-hypot.c: New file.
12969
12970         Tests for module 'fmod'.
12971         * modules/fmod-tests: New file.
12972         * tests/test-fmod.c: New file.
12973
12974         Tests for module 'fabs'.
12975         * modules/fabs-tests: New file.
12976         * tests/test-fabs.c: New file.
12977
12978         Tests for module 'exp'.
12979         * modules/exp-tests: New file.
12980         * tests/test-exp.c: New file.
12981
12982         Tests for module 'erfc'.
12983         * modules/erfc-tests: New file.
12984         * tests/test-erfc.c: New file.
12985
12986         Tests for module 'erf'.
12987         * modules/erf-tests: New file.
12988         * tests/test-erf.c: New file.
12989
12990         Tests for module 'cosh'.
12991         * modules/cosh-tests: New file.
12992         * tests/test-cosh.c: New file.
12993
12994         Tests for module 'cos'.
12995         * modules/cos-tests: New file.
12996         * tests/test-cos.c: New file.
12997
12998         Tests for module 'copysign'.
12999         * modules/copysign-tests: New file.
13000         * tests/test-copysign.c: New file.
13001
13002         Tests for module 'cbrt'.
13003         * modules/cbrt-tests: New file.
13004         * tests/test-cbrt.c: New file.
13005
13006         Tests for module 'atan2'.
13007         * modules/atan2-tests: New file.
13008         * tests/test-atan2.c: New file.
13009
13010         Tests for module 'atan'.
13011         * modules/atan-tests: New file.
13012         * tests/test-atan.c: New file.
13013
13014         Tests for module 'asin'.
13015         * modules/asin-tests: New file.
13016         * tests/test-asin.c: New file.
13017
13018         Tests for module 'acos'.
13019         * modules/acos-tests: New file.
13020         * tests/test-acos.c: New file.
13021
13022 2010-01-24  Bruno Haible  <bruno@clisp.org>
13023
13024         Fix tests for common <math.h> functions.
13025         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13026         code snippet that references the function pointer, rather than merely
13027         calling the function. Substitute the FUNC_LIBM variable.
13028         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13029         * modules/acos (configure.ac): Likewise.
13030         * modules/asin (configure.ac): Likewise.
13031         * modules/atan (configure.ac): Likewise.
13032         * modules/atan2 (configure.ac): Likewise.
13033         * modules/cbrt (configure.ac): Likewise.
13034         * modules/copysign (configure.ac): Likewise.
13035         * modules/cos (configure.ac): Likewise.
13036         * modules/cosh (configure.ac): Likewise.
13037         * modules/erf (configure.ac): Likewise.
13038         * modules/erfc (configure.ac): Likewise.
13039         * modules/exp (configure.ac): Likewise.
13040         * modules/fabs (configure.ac): Likewise.
13041         * modules/fmod (configure.ac): Likewise.
13042         * modules/hypot (configure.ac): Likewise.
13043         * modules/j0 (configure.ac): Likewise.
13044         * modules/j1 (configure.ac): Likewise.
13045         * modules/jn (configure.ac): Likewise.
13046         * modules/ldexp (configure.ac): Likewise.
13047         * modules/lgamma (configure.ac): Likewise.
13048         * modules/log (configure.ac): Likewise.
13049         * modules/log10 (configure.ac): Likewise.
13050         * modules/log1p (configure.ac): Likewise.
13051         * modules/logb (configure.ac): Likewise.
13052         * modules/modf (configure.ac): Likewise.
13053         * modules/nextafter (configure.ac): Likewise.
13054         * modules/pow (configure.ac): Likewise.
13055         * modules/remainder (configure.ac): Likewise.
13056         * modules/rint (configure.ac): Likewise.
13057         * modules/sin (configure.ac): Likewise.
13058         * modules/sinh (configure.ac): Likewise.
13059         * modules/tan (configure.ac): Likewise.
13060         * modules/tanh (configure.ac): Likewise.
13061         * modules/y0 (configure.ac): Likewise.
13062         * modules/y1 (configure.ac): Likewise.
13063         * modules/yn (configure.ac): Likewise.
13064
13065 2010-01-24  Bruno Haible  <bruno@clisp.org>
13066
13067         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13068         * tests/test-acosl.c (x): New variable.
13069         (main): Store argument in x and fetch it from x.
13070         * tests/test-asinl.c (x): New variable.
13071         (main): Store argument in x and fetch it from x.
13072         * tests/test-atanl.c (x): New variable.
13073         (main): Store argument in x and fetch it from x.
13074         * tests/test-cosl.c (x): New variable.
13075         (main): Store argument in x and fetch it from x.
13076         * tests/test-expl.c (x): New variable.
13077         (main): Store argument in x and fetch it from x.
13078         * tests/test-logl.c (x): New variable.
13079         (main): Store argument in x and fetch it from x.
13080         * tests/test-sinl.c (x): New variable.
13081         (main): Store argument in x and fetch it from x.
13082         * tests/test-sqrtl.c (x): New variable.
13083         (main): Store argument in x and fetch it from x.
13084         * tests/test-tanl.c (x): New variable.
13085         (main): Store argument in x and fetch it from x.
13086
13087 2010-01-24  Bruno Haible  <bruno@clisp.org>
13088
13089         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13090         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13091         assignments to the initial TESTS_ENVIRONMENT.
13092         * doc/gnulib.texi (Unit test modules): Document it.
13093         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13094         TESTS_ENVIRONMENT.
13095         * modules/btowc-tests (Makefile.am): Likewise.
13096         * modules/c-stack-tests (Makefile.am): Likewise.
13097         * modules/c-strcase-tests (Makefile.am): Likewise.
13098         * modules/copy-file-tests (Makefile.am): Likewise.
13099         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13100         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13101         * modules/mbrtowc-tests (Makefile.am): Likewise.
13102         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13103         * modules/mbscasestr-tests (Makefile.am): Likewise.
13104         * modules/mbschr-tests (Makefile.am): Likewise.
13105         * modules/mbscspn-tests (Makefile.am): Likewise.
13106         * modules/mbsinit-tests (Makefile.am): Likewise.
13107         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13108         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13109         * modules/mbspbrk-tests (Makefile.am): Likewise.
13110         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13111         * modules/mbsrchr-tests (Makefile.am): Likewise.
13112         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13113         * modules/mbsspn-tests (Makefile.am): Likewise.
13114         * modules/mbsstr-tests (Makefile.am): Likewise.
13115         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13116         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13117         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13118         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13119         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13120         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13121         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13122         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13123         * modules/wcrtomb-tests (Makefile.am): Likewise.
13124         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13125         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13126         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13127         assignments from TESTS_ENVIRONMENT.
13128         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13129         augmentation.
13130         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13131         * modules/atexit-tests (Makefile.am): Likewise.
13132         * modules/binary-io-tests (Makefile.am): Likewise.
13133         * modules/closein-tests (Makefile.am): Likewise.
13134         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13135         * modules/exclude-tests (Makefile.am): Likewise.
13136         * modules/fflush-tests (Makefile.am): Likewise.
13137         * modules/fpending-tests (Makefile.am): Likewise.
13138         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13139         * modules/freadahead-tests (Makefile.am): Likewise.
13140         * modules/freadptr-tests (Makefile.am): Likewise.
13141         * modules/freadseek-tests (Makefile.am): Likewise.
13142         * modules/fseek-tests (Makefile.am): Likewise.
13143         * modules/fseeko-tests (Makefile.am): Likewise.
13144         * modules/ftell-tests (Makefile.am): Likewise.
13145         * modules/ftello-tests (Makefile.am): Likewise.
13146         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13147         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13148         * modules/lseek-tests (Makefile.am): Likewise.
13149         * modules/parse-duration-tests (Makefile.am): Likewise.
13150         * modules/perror-tests (Makefile.am): Likewise.
13151         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13152         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13153         * modules/pipe-tests (Makefile.am): Likewise.
13154         * modules/pread-tests (Makefile.am): Likewise.
13155         * modules/printf-posix-tests (Makefile.am): Likewise.
13156         * modules/select-tests (Makefile.am): Likewise.
13157         * modules/sigpipe-tests (Makefile.am): Likewise.
13158         * modules/tsearch-tests (Makefile.am): Likewise.
13159         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13160         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13161         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13162         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13163         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13164         * modules/version-etc-tests (Makefile.am): Likewise.
13165         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13166         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13167         * modules/xalloc-die-tests (Makefile.am): Likewise.
13168         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13169         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13170         * modules/xstrtol-tests (Makefile.am): Likewise.
13171         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13172         * modules/yesno-tests (Makefile.am): Likewise.
13173         Suggested by Jim Meyering.
13174
13175 2010-01-24  Bruno Haible  <bruno@clisp.org>
13176
13177         More documentation.
13178         * doc/gnulib.texi (Writing modules): New chapter.
13179         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13180         the new chapter.
13181
13182 2010-01-24  Jim Meyering  <meyering@redhat.com>
13183
13184         maint.mk: do not prepend "./" after filtering
13185         * top/maint.mk (_prepend_srcdir_prefix): New variable
13186         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13187         "./" when $(srcdir) is ".".
13188
13189         define STREQ(a,b) consistently, removing useless parentheses
13190         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13191         since the only risk is that "a" or "b" contains an unparenthesized
13192         comma, but if either did that, STREQ would have 3 or more arguments.
13193         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13194         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13195         * lib/hash-triple.c (STREQ): Likewise.
13196         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13197         * lib/getugroups.c (STREQ): Likewise.
13198
13199 2010-01-23  Jim Meyering  <meyering@redhat.com>
13200
13201         maint.mk: fix syntax-check in a non-srcdir build directory
13202         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13203         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13204
13205 2010-01-22  Jim Meyering  <meyering@redhat.com>
13206
13207         userspec: add unit tests
13208         * tests/test-userspec.c: New file.
13209         * modules/userspec-tests: Likewise.
13210
13211 2010-01-21  Jim Meyering  <meyering@redhat.com>
13212
13213         maint.mk: handle source file names containing "." robustly
13214         * top/maint.mk (_dot_escaped_srcdir): Define.
13215         (VC_LIST): Use it in LHS of sed substitution.
13216
13217 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13218
13219         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13220         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13221         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13222         from a non-srcdir build.
13223
13224 2010-01-20  Eric Blake  <ebb9@byu.net>
13225
13226         warn-on-use: use instead of link-warning
13227         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13228         * modules/unistd (Depends-on, Makefile.am): Likewise.
13229         * modules/arpa_inet (Depends-on): Replace link-warning with
13230         warn-on-use.
13231         (Makefile.am): Update rules accordingly.
13232         * modules/ctype (Depends-on, Makefile.am): Likewise.
13233         * modules/dirent (Depends-on, Makefile.am): Likewise.
13234         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13235         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13236         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13237         * modules/locale (Depends-on, Makefile.am): Likewise.
13238         * modules/math (Depends-on, Makefile.am): Likewise.
13239         * modules/search (Depends-on, Makefile.am): Likewise.
13240         * modules/signal (Depends-on, Makefile.am): Likewise.
13241         * modules/spawn (Depends-on, Makefile.am): Likewise.
13242         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13243         * modules/string (Depends-on, Makefile.am): Likewise.
13244         * modules/strings (Depends-on, Makefile.am): Likewise.
13245         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13246         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13247         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13248         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13249         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13250         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13251         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13252         * modules/wchar (Depends-on, Makefile.am): Likewise.
13253         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13254         should be poisoned.
13255         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13256         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13257         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13258         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13259         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13260         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13261         * m4/math_h.m4 (gl_MATH_H): Likewise.
13262         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13263         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13264         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13265         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13266         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13267         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13268         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13269         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13274         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13276         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13277         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13278         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13279         GL_LINK_WARNING.
13280         * lib/ctype.in.h: Likewise.
13281         * lib/dirent.in.h: Likewise.
13282         * lib/fcntl.in.h: Likewise.
13283         * lib/inttypes.in.h: Likewise.
13284         * lib/langinfo.in.h: Likewise.
13285         * lib/locale.in.h: Likewise.
13286         * lib/math.in.h: Likewise.
13287         * lib/search.in.h: Likewise.
13288         * lib/signal.in.h: Likewise.
13289         * lib/spawn.in.h: Likewise.
13290         * lib/stdio.in.h: Likewise.
13291         * lib/stdlib.in.h: Likewise.
13292         * lib/string.in.h: Likewise.
13293         * lib/strings.in.h: Likewise.
13294         * lib/sys_file.in.h: Likewise.
13295         * lib/sys_ioctl.in.h: Likewise.
13296         * lib/sys_select.in.h: Likewise.
13297         * lib/sys_socket.in.h: Likewise.
13298         * lib/sys_stat.in.h: Likewise.
13299         * lib/sys_times.in.h: Likewise.
13300         * lib/sys_utsname.in.h: Likewise.
13301         * lib/unistd.in.h: Likewise.
13302         * lib/wchar.in.h: Likewise.
13303
13304 2010-01-20  Bruno Haible  <bruno@clisp.org>
13305
13306         Avoid duplicate -lm.
13307         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
13308         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
13309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
13310         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
13311         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
13312         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
13313         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
13314         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
13315         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
13316         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
13317         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
13318         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13319         Reported by Paolo Bonzini.
13320
13321 2010-01-19  Bruno Haible  <bruno@clisp.org>
13322
13323         langinfo, nl_langinfo: Relicense under LGPLv2+.
13324         * modules/langinfo (License): Change to LGPLv2+.
13325         * modules/nl_langinfo (License): Likewise.
13326         Patch by David Lutterkort <lutter@redhat.com>.
13327
13328 2010-01-19  Bruno Haible  <bruno@clisp.org>
13329
13330         Avoid compilation error with cc on OSF/1 5.1.
13331         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
13332         statement, not before.
13333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13334
13335 2010-01-18  Bruno Haible  <bruno@clisp.org>
13336
13337         Avoid a link error due to the __printf__ symbol.
13338         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13339         and 2.6.x.
13340         (__format__, __printf__): Remove definitions.
13341         * lib/argp-fmtstream.h: Likewise.
13342         * lib/argp.h: Likewise.
13343         * lib/error.h: Likewise.
13344         * lib/vasnprintf.h: Likewise.
13345         * lib/xprintf.h: Likewise.
13346         * lib/xvasprintf.h: Likewise.
13347         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13348
13349 2010-01-18  Bruno Haible  <bruno@clisp.org>
13350
13351         Tests for module 'tanl'.
13352         * modules/tanl-tests: New file.
13353         * tests/test-tanl.c: New file.
13354
13355         Tests for module 'sqrtl'.
13356         * modules/sqrtl-tests: New file.
13357         * tests/test-sqrtl.c: New file.
13358
13359         Tests for module 'sinl'.
13360         * modules/sinl-tests: New file.
13361         * tests/test-sinl.c: New file.
13362
13363         Tests for module 'logl'.
13364         * modules/logl-tests: New file.
13365         * tests/test-logl.c: New file.
13366
13367         Tests for module 'expl'.
13368         * modules/expl-tests: New file.
13369         * tests/test-expl.c: New file.
13370
13371         Tests for module 'cosl'.
13372         * modules/cosl-tests: New file.
13373         * tests/test-cosl.c: New file.
13374
13375         Tests for module 'atanl'.
13376         * modules/atanl-tests: New file.
13377         * tests/test-atanl.c: New file.
13378
13379         Tests for module 'asinl'.
13380         * modules/asinl-tests: New file.
13381         * tests/test-asinl.c: New file.
13382
13383         Tests for module 'acosl'.
13384         * modules/acosl-tests: New file.
13385         * tests/test-acosl.c: New file.
13386
13387         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13388         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13389         tanl): Use the standard gnulib idiom.
13390         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13391         * lib/sinl.c: Likewise.
13392         * lib/tanl.c: Don't include trigl.c.
13393         (kernel_tanl): Make static.
13394         * lib/sincosl.c: Include trigl.h first.
13395         * lib/trigl.c: Likewise.
13396         * m4/acosl.m4: New file.
13397         * m4/asinl.m4: New file.
13398         * m4/atanl.m4: New file.
13399         * m4/cosl.m4: New file.
13400         * m4/expl.m4: New file.
13401         * m4/logl.m4: New file.
13402         * m4/sinl.m4: New file.
13403         * m4/sqrtl.m4: New file.
13404         * m4/tanl.m4: New file.
13405         * m4/mathl.m4: Remove file.
13406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13407         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13408         Don't initialize GNULIB_MATHL.
13409         * modules/acosl: New file.
13410         * modules/asinl: New file.
13411         * modules/atanl: New file.
13412         * modules/cosl: New file.
13413         * modules/expl: New file.
13414         * modules/logl: New file.
13415         * modules/sinl: New file.
13416         * modules/sqrtl: New file.
13417         * modules/tanl: New file.
13418         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13419         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13420         substitute GNULIB_MATHL.
13421         * modules/mathl: Rewritten.
13422         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13423         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13424         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13425         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13426         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13427         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13428         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13429         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13430         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13431
13432 2010-01-18  Bruno Haible  <bruno@clisp.org>
13433
13434         sqrt: Make gl_FUNC_SQRT requirable.
13435         * m4/sqrt.m4: New file.
13436         * modules/sqrt (Files): Add it.
13437         (configure.ac): Invoke gl_FUNC_SQRT.
13438
13439 2010-01-18  Bruno Haible  <bruno@clisp.org>
13440
13441         New modules for common <math.h> functions.
13442         * m4/mathfunc.m4: New file.
13443         * modules/acos: New file.
13444         * modules/asin: New file.
13445         * modules/atan: New file.
13446         * modules/atan2: New file.
13447         * modules/cbrt: New file.
13448         * modules/copysign: New file.
13449         * modules/cos: New file.
13450         * modules/cosh: New file.
13451         * modules/erf: New file.
13452         * modules/erfc: New file.
13453         * modules/exp: New file.
13454         * modules/fabs: New file.
13455         * modules/fmod: New file.
13456         * modules/hypot: New file.
13457         * modules/j0: New file.
13458         * modules/j1: New file.
13459         * modules/jn: New file.
13460         * modules/ldexp: New file.
13461         * modules/lgamma: New file.
13462         * modules/log: New file.
13463         * modules/log10: New file.
13464         * modules/log1p: New file.
13465         * modules/logb: New file.
13466         * modules/modf: New file.
13467         * modules/nextafter: New file.
13468         * modules/pow: New file.
13469         * modules/remainder: New file.
13470         * modules/rint: New file.
13471         * modules/sin: New file.
13472         * modules/sinh: New file.
13473         * modules/sqrt: New file.
13474         * modules/tan: New file.
13475         * modules/tanh: New file.
13476         * modules/y0: New file.
13477         * modules/y1: New file.
13478         * modules/yn: New file.
13479         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13480         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13481         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13482         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13483         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13484         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13485         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13486         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13487         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13488         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13489         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13490         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13491         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13492         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13493         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13494         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13495         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13496         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13497         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13498         * doc/posix-functions/log.texi: Mention the 'log' module.
13499         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13500         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13501         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13502         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13503         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13504         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13505         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13506         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13507         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13508         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13509         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13510         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13511         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13512         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13513         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13514         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13515
13516 2010-01-18  Jim Meyering  <meyering@redhat.com>
13517
13518         ignore-value: relax license to LGPLv2+
13519         * modules/ignore-value (License): Relax to LGPLv2+.
13520
13521         getdate: don't leak when TZ contains two or more '"'s
13522         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13523         double quote in TZ after the first one.
13524
13525         readtokens: do not leak internal token_lengths buffer
13526         * lib/readtokens.c (readtokens): Free the local, lengths,
13527         when the supplied "token_lengths" parameter is NULL.
13528
13529 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13530
13531         Fix a couple of missing LIBTHREAD link failures on AIX.
13532         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13533         $(LIBTHREAD).
13534         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13535
13536         Link test-poll against INET_PTON_LIB.
13537         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13538         for inet_pton on Solaris 10.
13539
13540 2010-01-17  Bruno Haible  <bruno@clisp.org>
13541
13542         unistdio/*-sprintf: Fix typo in module description.
13543         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13544         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13545         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13546         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13547         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13548         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13549         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13551
13552 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13553
13554         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13555         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13556         variables in shell case patterns, for AIX and HP-UX ksh.
13557
13558         Split large sed scripts, for HP-UX sed.
13559         * modules/stdio: Split sed scripts around 50 sed commands,
13560         to avoid HP-UX limit of 99 commands, in the near future.
13561         * modules/string: Likewise.
13562         * modules/unistd: Likewise.
13563
13564         gnulib-tool: avoid writing in the current directory.
13565         * gnulib-tool (func_emit_lib_Makefile_am)
13566         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13567         not in the current directory, so concurrent gnulib-tool
13568         instances do not interfere.
13569
13570 2010-01-16  Jim Meyering  <meyering@redhat.com>
13571
13572         doc: update users.txt
13573         * users.txt: Add grep.
13574         (diffutils, gzip): Update URLs.
13575
13576 2010-01-12  Bruno Haible  <bruno@clisp.org>
13577
13578         posix_spawn: Avoid test failure on Cygwin.
13579         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13580         characters.
13581         Reported by Simon Josefsson.
13582
13583 2010-01-12  Bruno Haible  <bruno@clisp.org>
13584
13585         * tests/test-cond.c (main): When skipping the test, show the reason.
13586
13587 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13588
13589         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13590
13591 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13592
13593         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13594         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13595
13596 2010-01-12  Eric Blake  <ebb9@byu.net>
13597
13598         build: guarantee AS_VAR_IF
13599         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13600         (gl_AS_VAR_IF): Move...
13601         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13602         Reported by Simon Josefsson.
13603
13604 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13605
13606         * lib/stdio.in.h: Fix typo.
13607
13608 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13609
13610         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13611         libgpg-error.
13612
13613 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13614
13615         * tests/test-xalloc-die.sh: Use $EXEEXT.
13616
13617 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13618             Bruno Haible  <bruno@clisp.org>
13619
13620         getlogin, getlogin_r: Avoid test failure.
13621         * tests/test-getlogin.c: Include <stdio.h>.
13622         (main): Skip the test when the function fails because stdin is not a
13623         tty.
13624         * tests/test-getlogin_r.c: Include <stdio.h>.
13625         (main): Skip the test when the function fails because stdin is not a
13626         tty.
13627
13628 2010-01-11  Eric Blake  <ebb9@byu.net>
13629
13630         tests: avoid more large file warnings
13631         * tests/test-fflush.c: Avoid warning about ftell use.
13632         * tests/test-fseek.c: Avoid warning about fseek use.
13633
13634 2010-01-10  Bruno Haible  <bruno@clisp.org>
13635
13636         nproc: Work better on Linux when /proc and /sys are not mounted.
13637         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13638         as lower bound when, on glibc/Linux systems,
13639         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13640         Suggested by Pádraig Brady <P@draigbrady.com>.
13641         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13642
13643         nproc: Refactor.
13644         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13645         extracted from num_processors.
13646         (num_processors): Call it.
13647
13648 2010-01-11  Jim Meyering  <meyering@redhat.com>
13649
13650         utimecmp: avoid new warning from upcoming gcc-4.5.0
13651         * lib/utimecmp.c (BILLION): Define using #define rather than an
13652         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13653
13654 2010-01-11  Eric Blake  <ebb9@byu.net>
13655
13656         math: add portability warnings for classification macros
13657         * modules/math (Depends-on): Add warn-on-use.
13658         (Makefile.am): Provide new substitutions.
13659         * m4/math_h.m4 (gl_MATH_H): Require inline.
13660         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13661         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13662         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13663         implement warnings.
13664
13665         unistd: warn on use of environ without module
13666         * modules/unistd (Depends-on): Add warn-on-use.
13667         (Makefile.am): Provide new substitutions.
13668         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13669         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13670
13671         stdio: warn on suspicious uses
13672         * modules/stdio (Depends-on): Add warn-on-use.
13673         (Makefile.am): Provide new substitutions.
13674         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13675         fseeko.
13676         * lib/stdio.in.h (gets): Always warn on use.
13677         (fseek, ftell): Adjust when warnings are issued, and honor
13678         _GL_NO_LARGE_FILES as a way to silence the warning.
13679         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13680         any warning about large file offsets.
13681         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13682         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13683         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13684         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13685         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13686         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13687         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13688         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13689
13690         warn-on-use: new module
13691         * modules/warn-on-use: New file.
13692         * build-aux/warn-on-use.h: Likewise.
13693         * m4/warn-on-use.m4: Likewise.
13694         * MODULES.html.sh (Support for building): Mention it.
13695
13696 2010-01-10  Bruno Haible  <bruno@clisp.org>
13697
13698         Tests for module 'unistr/u32-strdup'.
13699         * modules/unistr/u32-strdup-tests: New file.
13700         * tests/unistr/test-u32-strdup.c: New file.
13701
13702         Tests for module 'unistr/u16-strdup'.
13703         * modules/unistr/u16-strdup-tests: New file.
13704         * tests/unistr/test-u16-strdup.c: New file.
13705
13706         Tests for module 'unistr/u8-strdup'.
13707         * modules/unistr/u8-strdup-tests: New file.
13708         * tests/unistr/test-u8-strdup.c: New file.
13709         * tests/unistr/test-strdup.h: New file.
13710
13711         Tests for module 'unistr/u32-strncmp'.
13712         * modules/unistr/u32-strncmp-tests: New file.
13713         * tests/unistr/test-u32-strncmp.c: New file.
13714
13715         Tests for module 'unistr/u16-strncmp'.
13716         * modules/unistr/u16-strncmp-tests: New file.
13717         * tests/unistr/test-u16-strncmp.c: New file.
13718
13719         Tests for module 'unistr/u8-strncmp'.
13720         * modules/unistr/u8-strncmp-tests: New file.
13721         * tests/unistr/test-u8-strncmp.c: New file.
13722         * tests/unistr/test-strncmp.h: New file.
13723
13724         Tests for module 'unistr/u32-strcoll'.
13725         * modules/unistr/u32-strcoll-tests: New file.
13726         * tests/unistr/test-u32-strcoll.c: New file.
13727
13728         Tests for module 'unistr/u16-strcoll'.
13729         * modules/unistr/u16-strcoll-tests: New file.
13730         * tests/unistr/test-u16-strcoll.c: New file.
13731
13732         Tests for module 'unistr/u8-strcoll'.
13733         * modules/unistr/u8-strcoll-tests: New file.
13734         * tests/unistr/test-u8-strcoll.c: New file.
13735
13736         Tests for module 'unistr/u32-strcmp'.
13737         * modules/unistr/u32-strcmp-tests: New file.
13738         * tests/unistr/test-u32-strcmp.c: New file.
13739         * tests/unistr/test-u32-strcmp.h: New file.
13740
13741         Tests for module 'unistr/u16-strcmp'.
13742         * modules/unistr/u16-strcmp-tests: New file.
13743         * tests/unistr/test-u16-strcmp.c: New file.
13744         * tests/unistr/test-u16-strcmp.h: New file.
13745
13746         Tests for module 'unistr/u8-strcmp'.
13747         * modules/unistr/u8-strcmp-tests: New file.
13748         * tests/unistr/test-u8-strcmp.c: New file.
13749         * tests/unistr/test-u8-strcmp.h: New file.
13750         * tests/unistr/test-strcmp.h: New file.
13751
13752         Tests for module 'unistr/u32-strncat'.
13753         * modules/unistr/u32-strncat-tests: New file.
13754         * tests/unistr/test-u32-strncat.c: New file.
13755
13756         Tests for module 'unistr/u16-strncat'.
13757         * modules/unistr/u16-strncat-tests: New file.
13758         * tests/unistr/test-u16-strncat.c: New file.
13759
13760         Tests for module 'unistr/u8-strncat'.
13761         * modules/unistr/u8-strncat-tests: New file.
13762         * tests/unistr/test-u8-strncat.c: New file.
13763         * tests/unistr/test-strncat.h: New file.
13764
13765         Tests for module 'unistr/u32-strcat'.
13766         * modules/unistr/u32-strcat-tests: New file.
13767         * tests/unistr/test-u32-strcat.c: New file.
13768
13769         Tests for module 'unistr/u16-strcat'.
13770         * modules/unistr/u16-strcat-tests: New file.
13771         * tests/unistr/test-u16-strcat.c: New file.
13772
13773         Tests for module 'unistr/u8-strcat'.
13774         * modules/unistr/u8-strcat-tests: New file.
13775         * tests/unistr/test-u8-strcat.c: New file.
13776         * tests/unistr/test-strcat.h: New file.
13777
13778         Tests for module 'unistr/u32-stpncpy'.
13779         * modules/unistr/u32-stpncpy-tests: New file.
13780         * tests/unistr/test-u32-stpncpy.c: New file.
13781
13782         Tests for module 'unistr/u16-stpncpy'.
13783         * modules/unistr/u16-stpncpy-tests: New file.
13784         * tests/unistr/test-u16-stpncpy.c: New file.
13785
13786         Tests for module 'unistr/u8-stpncpy'.
13787         * modules/unistr/u8-stpncpy-tests: New file.
13788         * tests/unistr/test-u8-stpncpy.c: New file.
13789         * tests/unistr/test-stpncpy.h: New file.
13790
13791         Tests for module 'unistr/u32-strncpy'.
13792         * modules/unistr/u32-strncpy-tests: New file.
13793         * tests/unistr/test-u32-strncpy.c: New file.
13794
13795         Tests for module 'unistr/u16-strncpy'.
13796         * modules/unistr/u16-strncpy-tests: New file.
13797         * tests/unistr/test-u16-strncpy.c: New file.
13798
13799         Tests for module 'unistr/u8-strncpy'.
13800         * modules/unistr/u8-strncpy-tests: New file.
13801         * tests/unistr/test-u8-strncpy.c: New file.
13802         * tests/unistr/test-strncpy.h: New file.
13803
13804         Tests for module 'unistr/u32-stpcpy'.
13805         * modules/unistr/u32-stpcpy-tests: New file.
13806         * tests/unistr/test-u32-stpcpy.c: New file.
13807
13808         Tests for module 'unistr/u16-stpcpy'.
13809         * modules/unistr/u16-stpcpy-tests: New file.
13810         * tests/unistr/test-u16-stpcpy.c: New file.
13811
13812         Tests for module 'unistr/u8-stpcpy'.
13813         * modules/unistr/u8-stpcpy-tests: New file.
13814         * tests/unistr/test-u8-stpcpy.c: New file.
13815         * tests/unistr/test-stpcpy.h: New file.
13816
13817         Tests for module 'unistr/u32-strcpy'.
13818         * modules/unistr/u32-strcpy-tests: New file.
13819         * tests/unistr/test-u32-strcpy.c: New file.
13820
13821         Tests for module 'unistr/u16-strcpy'.
13822         * modules/unistr/u16-strcpy-tests: New file.
13823         * tests/unistr/test-u16-strcpy.c: New file.
13824
13825         Tests for module 'unistr/u8-strcpy'.
13826         * modules/unistr/u8-strcpy-tests: New file.
13827         * tests/unistr/test-u8-strcpy.c: New file.
13828         * tests/unistr/test-strcpy.h: New file.
13829
13830         Tests for module 'unistr/u32-strnlen'.
13831         * modules/unistr/u32-strnlen-tests: New file.
13832         * tests/unistr/test-u32-strnlen.c: New file.
13833
13834         Tests for module 'unistr/u16-strnlen'.
13835         * modules/unistr/u16-strnlen-tests: New file.
13836         * tests/unistr/test-u16-strnlen.c: New file.
13837
13838         Tests for module 'unistr/u8-strnlen'.
13839         * modules/unistr/u8-strnlen-tests: New file.
13840         * tests/unistr/test-u8-strnlen.c: New file.
13841         * tests/unistr/test-strnlen.h: New file.
13842
13843         Tests for module 'unistr/u32-strlen'.
13844         * modules/unistr/u32-strlen-tests: New file.
13845         * tests/unistr/test-u32-strlen.c: New file.
13846
13847         Tests for module 'unistr/u16-strlen'.
13848         * modules/unistr/u16-strlen-tests: New file.
13849         * tests/unistr/test-u16-strlen.c: New file.
13850
13851         Tests for module 'unistr/u8-strlen'.
13852         * modules/unistr/u8-strlen-tests: New file.
13853         * tests/unistr/test-u8-strlen.c: New file.
13854
13855         Tests for module 'unistr/u32-prev'.
13856         * modules/unistr/u32-prev-tests: New file.
13857         * tests/unistr/test-u32-prev.c: New file.
13858
13859         Tests for module 'unistr/u16-prev'.
13860         * modules/unistr/u16-prev-tests: New file.
13861         * tests/unistr/test-u16-prev.c: New file.
13862
13863         Tests for module 'unistr/u8-prev'.
13864         * modules/unistr/u8-prev-tests: New file.
13865         * tests/unistr/test-u8-prev.c: New file.
13866
13867         Tests for module 'unistr/u32-next'.
13868         * modules/unistr/u32-next-tests: New file.
13869         * tests/unistr/test-u32-next.c: New file.
13870
13871         Tests for module 'unistr/u16-next'.
13872         * modules/unistr/u16-next-tests: New file.
13873         * tests/unistr/test-u16-next.c: New file.
13874
13875         Tests for module 'unistr/u8-next'.
13876         * modules/unistr/u8-next-tests: New file.
13877         * tests/unistr/test-u8-next.c: New file.
13878
13879         Tests for module 'unistr/u32-strmbtouc'.
13880         * modules/unistr/u32-strmbtouc-tests: New file.
13881         * tests/unistr/test-u32-strmbtouc.c: New file.
13882
13883         Tests for module 'unistr/u16-strmbtouc'.
13884         * modules/unistr/u16-strmbtouc-tests: New file.
13885         * tests/unistr/test-u16-strmbtouc.c: New file.
13886
13887         Tests for module 'unistr/u8-strmbtouc'.
13888         * modules/unistr/u8-strmbtouc-tests: New file.
13889         * tests/unistr/test-u8-strmbtouc.c: New file.
13890
13891         Tests for module 'unistr/u32-strmblen'.
13892         * modules/unistr/u32-strmblen-tests: New file.
13893         * tests/unistr/test-u32-strmblen.c: New file.
13894
13895         Tests for module 'unistr/u16-strmblen'.
13896         * modules/unistr/u16-strmblen-tests: New file.
13897         * tests/unistr/test-u16-strmblen.c: New file.
13898
13899         Tests for module 'unistr/u8-strmblen'.
13900         * modules/unistr/u8-strmblen-tests: New file.
13901         * tests/unistr/test-u8-strmblen.c: New file.
13902
13903         Tests for module 'unistr/u32-cpy-alloc'.
13904         * modules/unistr/u32-cpy-alloc-tests: New file.
13905         * tests/unistr/test-u32-cpy-alloc.c: New file.
13906
13907         Tests for module 'unistr/u16-cpy-alloc'.
13908         * modules/unistr/u16-cpy-alloc-tests: New file.
13909         * tests/unistr/test-u16-cpy-alloc.c: New file.
13910
13911         Tests for module 'unistr/u8-cpy-alloc'.
13912         * modules/unistr/u8-cpy-alloc-tests: New file.
13913         * tests/unistr/test-u8-cpy-alloc.c: New file.
13914         * tests/unistr/test-cpy-alloc.h: New file.
13915
13916         Tests for module 'unistr/u32-mbsnlen'.
13917         * modules/unistr/u32-mbsnlen-tests: New file.
13918         * tests/unistr/test-u32-mbsnlen.c: New file.
13919
13920         Tests for module 'unistr/u16-mbsnlen'.
13921         * modules/unistr/u16-mbsnlen-tests: New file.
13922         * tests/unistr/test-u16-mbsnlen.c: New file.
13923
13924         Tests for module 'unistr/u8-mbsnlen'.
13925         * modules/unistr/u8-mbsnlen-tests: New file.
13926         * tests/unistr/test-u8-mbsnlen.c: New file.
13927
13928         Tests for module 'unistr/u32-chr'.
13929         * modules/unistr/u32-chr-tests: New file.
13930         * tests/unistr/test-u32-chr.c: New file.
13931
13932         Tests for module 'unistr/u16-chr'.
13933         * modules/unistr/u16-chr-tests: New file.
13934         * tests/unistr/test-u16-chr.c: New file.
13935
13936         Tests for module 'unistr/u8-chr'.
13937         * modules/unistr/u8-chr-tests: New file.
13938         * tests/unistr/test-u8-chr.c: New file.
13939         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13940
13941         Tests for module 'unistr/u32-cmp2'.
13942         * modules/unistr/u32-cmp2-tests: New file.
13943         * tests/unistr/test-u32-cmp2.c: New file.
13944
13945         Tests for module 'unistr/u16-cmp2'.
13946         * modules/unistr/u16-cmp2-tests: New file.
13947         * tests/unistr/test-u16-cmp2.c: New file.
13948
13949         Tests for module 'unistr/u8-cmp2'.
13950         * modules/unistr/u8-cmp2-tests: New file.
13951         * tests/unistr/test-u8-cmp2.c: New file.
13952         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13953
13954         Tests for module 'unistr/u32-cmp'.
13955         * modules/unistr/u32-cmp-tests: New file.
13956         * tests/unistr/test-u32-cmp.c: New file.
13957
13958         Tests for module 'unistr/u16-cmp'.
13959         * modules/unistr/u16-cmp-tests: New file.
13960         * tests/unistr/test-u16-cmp.c: New file.
13961
13962         Tests for module 'unistr/u8-cmp'.
13963         * modules/unistr/u8-cmp-tests: New file.
13964         * tests/unistr/test-u8-cmp.c: New file.
13965         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13966
13967         Tests for module 'unistr/u32-set'.
13968         * modules/unistr/u32-set-tests: New file.
13969         * tests/unistr/test-u32-set.c: New file.
13970
13971         Tests for module 'unistr/u16-set'.
13972         * modules/unistr/u16-set-tests: New file.
13973         * tests/unistr/test-u16-set.c: New file.
13974
13975         Tests for module 'unistr/u8-set'.
13976         * modules/unistr/u8-set-tests: New file.
13977         * tests/unistr/test-u8-set.c: New file.
13978         * tests/unistr/test-set.h: New file.
13979
13980         Tests for module 'unistr/u32-move'.
13981         * modules/unistr/u32-move-tests: New file.
13982         * tests/unistr/test-u32-move.c: New file.
13983
13984         Tests for module 'unistr/u16-move'.
13985         * modules/unistr/u16-move-tests: New file.
13986         * tests/unistr/test-u16-move.c: New file.
13987
13988         Tests for module 'unistr/u8-move'.
13989         * modules/unistr/u8-move-tests: New file.
13990         * tests/unistr/test-u8-move.c: New file.
13991         * tests/unistr/test-move.h: New file.
13992
13993         Tests for module 'unistr/u32-cpy'.
13994         * modules/unistr/u32-cpy-tests: New file.
13995         * tests/unistr/test-u32-cpy.c: New file.
13996
13997         Tests for module 'unistr/u16-cpy'.
13998         * modules/unistr/u16-cpy-tests: New file.
13999         * tests/unistr/test-u16-cpy.c: New file.
14000
14001         Tests for module 'unistr/u8-cpy'.
14002         * modules/unistr/u8-cpy-tests: New file.
14003         * tests/unistr/test-u8-cpy.c: New file.
14004         * tests/unistr/test-cpy.h: New file.
14005
14006 2010-01-09  Bruno Haible  <bruno@clisp.org>
14007
14008         Tests for module 'unistr/u32-uctomb'.
14009         * modules/unistr/u32-uctomb-tests: New file.
14010         * tests/unistr/test-u32-uctomb.c: New file.
14011
14012         Tests for module 'unistr/u16-uctomb'.
14013         * modules/unistr/u16-uctomb-tests: New file.
14014         * tests/unistr/test-u16-uctomb.c: New file.
14015
14016         Tests for module 'unistr/u8-uctomb'.
14017         * modules/unistr/u8-uctomb-tests: New file.
14018         * tests/unistr/test-u8-uctomb.c: New file.
14019
14020         Tests for module 'unistr/u32-mbtoucr'.
14021         * modules/unistr/u32-mbtoucr-tests: New file.
14022         * tests/unistr/test-u32-mbtoucr.c: New file.
14023
14024         Tests for module 'unistr/u16-mbtoucr'.
14025         * modules/unistr/u16-mbtoucr-tests: New file.
14026         * tests/unistr/test-u16-mbtoucr.c: New file.
14027
14028         Tests for module 'unistr/u8-mbtoucr'.
14029         * modules/unistr/u8-mbtoucr-tests: New file.
14030         * tests/unistr/test-u8-mbtoucr.c: New file.
14031
14032         Tests for module 'unistr/u32-mbtouc'.
14033         * modules/unistr/u32-mbtouc-tests: New file.
14034         * tests/unistr/test-u32-mbtouc.c: New file.
14035
14036         Tests for module 'unistr/u16-mbtouc'.
14037         * modules/unistr/u16-mbtouc-tests: New file.
14038         * tests/unistr/test-u16-mbtouc.c: New file.
14039
14040         Tests for module 'unistr/u8-mbtouc'.
14041         * modules/unistr/u8-mbtouc-tests: New file.
14042         * tests/unistr/test-u8-mbtouc.c: New file.
14043
14044         Tests for module 'unistr/u32-mbtouc-unsafe'.
14045         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14046         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14047         * tests/unistr/test-u32-mbtouc.h: New file.
14048
14049         Tests for module 'unistr/u16-mbtouc-unsafe'.
14050         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14051         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14052         * tests/unistr/test-u16-mbtouc.h: New file.
14053
14054         Tests for module 'unistr/u8-mbtouc-unsafe'.
14055         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14056         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14057         * tests/unistr/test-u8-mbtouc.h: New file.
14058
14059         Tests for module 'unistr/u32-mblen'.
14060         * modules/unistr/u32-mblen-tests: New file.
14061         * tests/unistr/test-u32-mblen.c: New file.
14062
14063         Tests for module 'unistr/u16-mblen'.
14064         * modules/unistr/u16-mblen-tests: New file.
14065         * tests/unistr/test-u16-mblen.c: New file.
14066
14067         Tests for module 'unistr/u8-mblen'.
14068         * modules/unistr/u8-mblen-tests: New file.
14069         * tests/unistr/test-u8-mblen.c: New file.
14070
14071         Tests for module 'unistr/u32-to-u16'.
14072         * modules/unistr/u32-to-u16-tests: New file.
14073         * tests/unistr/test-u32-to-u16.c: New file.
14074
14075         Tests for module 'unistr/u32-to-u8'.
14076         * modules/unistr/u32-to-u8-tests: New file.
14077         * tests/unistr/test-u32-to-u8.c: New file.
14078
14079         Tests for module 'unistr/u16-to-u32'.
14080         * modules/unistr/u16-to-u32-tests: New file.
14081         * tests/unistr/test-u16-to-u32.c: New file.
14082
14083         Tests for module 'unistr/u16-to-u8'.
14084         * modules/unistr/u16-to-u8-tests: New file.
14085         * tests/unistr/test-u16-to-u8.c: New file.
14086
14087         Tests for module 'unistr/u8-to-u32'.
14088         * modules/unistr/u8-to-u32-tests: New file.
14089         * tests/unistr/test-u8-to-u32.c: New file.
14090
14091         Tests for module 'unistr/u8-to-u16'.
14092         * modules/unistr/u8-to-u16-tests: New file.
14093         * tests/unistr/test-u8-to-u16.c: New file.
14094
14095         Tests for module 'unistr/u32-check'.
14096         * modules/unistr/u32-check-tests: New file.
14097         * tests/unistr/test-u32-check.c: New file.
14098
14099         Tests for module 'unistr/u16-check'.
14100         * modules/unistr/u16-check-tests: New file.
14101         * tests/unistr/test-u16-check.c: New file.
14102
14103         Tests for module 'unistr/u8-check'.
14104         * modules/unistr/u8-check-tests: New file.
14105         * tests/unistr/test-u8-check.c: New file.
14106
14107         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14108         (category_equals): New function.
14109         (main): Add more tests.
14110         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14111
14112         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14113
14114 2010-01-10  Bruno Haible  <bruno@clisp.org>
14115
14116         unistr/u*-strcoll: Try harder to distinguish different strings.
14117         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14118         compare s1 and s2 to see if they are different.
14119
14120 2010-01-10  Bruno Haible  <bruno@clisp.org>
14121
14122         unistr/u*-stpncpy: Fix the return value.
14123         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14124         description of the return value consistent with stpncpy in glibc.
14125         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14126         written non-NUL unit.
14127
14128 2010-01-10  Bruno Haible  <bruno@clisp.org>
14129
14130         unistr/u*-next: Add missing dependencies.
14131         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14132         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14133         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14134
14135 2010-01-10  Bruno Haible  <bruno@clisp.org>
14136
14137         unistr/u8-mbsnlen: Fix return value for incomplete character.
14138         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14139         u8_mblen.
14140         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14141         Remove unistr/u8-mblen.
14142         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14143         u16_mblen.
14144         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14145         Remove unistr/u16-mblen.
14146
14147 2010-01-10  Bruno Haible  <bruno@clisp.org>
14148
14149         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14150         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14151         Reported by Brian Gough <bjg@gnu.org> and
14152         Chris Clayton <chris2553@googlemail.com> via
14153         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14154
14155 2010-01-09  Bruno Haible  <bruno@clisp.org>
14156
14157         unistr/u16-to-u32: Reject invalid input.
14158         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14159         u16_mbtouc.
14160         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14161         Remove unistr/u16-mbtouc.
14162
14163         unistr/u16-to-u8: Reject invalid input.
14164         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14165         u16_mbtouc.
14166         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14167         Remove unistr/u16-mbtouc.
14168
14169         unistr/u8-to-u32: Reject invalid input.
14170         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14171         u8_mbtouc.
14172         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14173         Remove unistr/u8-mbtouc.
14174
14175         unistr/u8-to-u16: Reject invalid input.
14176         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14177         u8_mbtouc.
14178         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14179         Remove unistr/u8-mbtouc.
14180
14181 2010-01-09  Bruno Haible  <bruno@clisp.org>
14182
14183         Tests for module 'getlogin'.
14184         * modules/getlogin-tests: New file.
14185         * tests/test-getlogin.c: New file.
14186
14187         New module 'getlogin'.
14188         * lib/unistd.in.h (getlogin): New declaration.
14189         * lib/getlogin.c: New file.
14190         * m4/getlogin.m4: New file.
14191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14192         HAVE_GETLOGIN.
14193         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14194         HAVE_GETLOGIN.
14195         * modules/getlogin: New file.
14196         * doc/posix-functions/getlogin.texi: Mention the new module.
14197         Reported by John W. Eaton <jwe@gnu.org>.
14198
14199 2010-01-09  Bruno Haible  <bruno@clisp.org>
14200
14201         getlogin_r: Support for native Windows.
14202         * lib/getlogin_r.c: Include <windows.h>
14203         (getlogin_r): Implement for native Windows.
14204         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14205         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14206         via John W. Eaton <jwe@gnu.org>.
14207
14208 2010-01-09  Bruno Haible  <bruno@clisp.org>
14209
14210         getlogin_r: Small fixes.
14211         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14212         succeeds.
14213         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14214         before testing whether getlogin_r is declared. No need to set
14215         HAVE_DECL_GETLOGIN_R to 1.
14216         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14217
14218 2010-01-09  Bruno Haible  <bruno@clisp.org>
14219
14220         * lib/unistd.in.h (getlogin_r): Add comment.
14221
14222 2010-01-09  Bruno Haible  <bruno@clisp.org>
14223
14224         Tests for module 'getlogin_r'.
14225         * modules/getlogin_r-tests: New file.
14226         * tests/test-getlogin_r.c: New file.
14227
14228 2010-01-09  Jim Meyering  <meyering@redhat.com>
14229
14230         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14231         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14232         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14233
14234 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14235
14236         * lib/dup2.c (rpl_dup2): Improve comment.
14237
14238 2010-01-08  Eric Blake  <ebb9@byu.net>
14239
14240         maint.mk: allow packages to add makefile @@ exceptions
14241         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14242         (sc_makefile_check): Rename...
14243         (sc_makefile_at_at_check): ...to this, and use hook.
14244
14245         dup2: work around mingw bug
14246         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14247         Reported by Simon Josefsson.
14248
14249 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14250
14251         glob: Fix C++ compilation.
14252         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14253         C++.
14254
14255 2010-01-07  Bruno Haible  <bruno@clisp.org>
14256
14257         Fix indentation of wctype.in.h, broken since 2007-01-06.
14258         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14259
14260 2010-01-07  Bruno Haible  <bruno@clisp.org>
14261
14262         mbslen: Avoid collision with system function.
14263         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14264         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14265         * m4/mbslen.m4: New file.
14266         * modules/mbslen (Files): Add it.
14267         (configure.ac): Invoke gl_MBSLEN.
14268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14269         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14270         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14271         via Ian Beckwith <ianb@erislabs.net>.
14272
14273 2010-01-07  Bruno Haible  <bruno@clisp.org>
14274
14275         dirent: Document the last fix.
14276         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14277
14278 2010-01-07  Bruno Haible  <bruno@clisp.org>
14279
14280         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14281         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14282         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14283         va_list are defined.
14284         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14285         Reported by Eric Blake.
14286
14287 2010-01-07  Bruno Haible  <bruno@clisp.org>
14288
14289         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14290         * modules/xlist (Depends-on): Add 'list',
14291         * modules/xoset (Depends-on): Add 'oset'.
14292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14293
14294 2010-01-07  Bruno Haible  <bruno@clisp.org>
14295
14296         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
14297         * doc/posix-functions/strncasecmp.texi: Likewise.
14298
14299 2010-01-07  Bruno Haible  <bruno@clisp.org>
14300
14301         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
14302
14303 2010-01-07  John W. Eaton  <jwe@octave.org>
14304
14305         wctype: allow C++ use
14306         * lib/wctype.in.h: Add extern "C" block for C++.
14307
14308 2010-01-06  Eric Blake  <ebb9@byu.net>
14309
14310         maint.mk: detect incorrect GFDL usage
14311         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
14312
14313 2010-01-06  Jim Meyering  <meyering@redhat.com>
14314         and Eric Blake  <ebb9@byu.net>
14315
14316         maint.mk: ignore multi-line copyright in NEWS
14317         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
14318
14319 2010-01-06  Eric Blake  <ebb9@byu.net>
14320
14321         select: add missing dependency
14322         * modules/select-tests (Depends-on): Move sockets dependency...
14323         * modules/select (Depends-on): ...here.
14324         Reported by Ian Beckwith.
14325
14326         doc: regenerate INSTALL
14327         * doc/INSTALL: Reflect recent autoconf update.
14328         * doc/INSTALL.ISO: Likewise.
14329         * doc/INSTALL.UTF-8: Likewise.
14330
14331         pread: fix compilation on glibc
14332         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
14333         Reported by Ralf Wildenhues.
14334
14335         dirent: fix test failure
14336         * lib/dirent.in.h (includes): Guarantee ino_t.
14337         Reported by Ralf Wildenhues.
14338
14339 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14340
14341         linkat, renameat: avoid bad free
14342         * lib/at-func2.c (at_func2): Fix typo.
14343         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14344
14345 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14346
14347         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14348         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14349         to avoid failure of symlink test later.
14350
14351 2010-01-06  Eric Blake  <ebb9@byu.net>
14352
14353         stdio, unistd: guarantee ssize_t
14354         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14355         2008 are exposed when needed.
14356         * lib/stdio.in.h (includes): Likewise.
14357         Reported by Ralf Wildenhues.
14358
14359 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14360
14361         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14362         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14363         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14364
14365 2010-01-06  Jim Meyering  <meyering@redhat.com>
14366
14367         readtokens: this module *does* require xalloc.h
14368         It uses only functions that were omitted by the old syntax-check rule.
14369         * lib/readtokens.c: Include "xalloc.h" once again.
14370         * modules/readtokens (Depends-on): Add xalloc.
14371         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14372
14373 2010-01-05  Eric Blake  <ebb9@byu.net>
14374
14375         maint: support 'make announcement' from a VPATH build
14376         * top/maint.mk (announcement): Look for correct NEWS file.
14377
14378 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14379
14380         utimens (fdutimens): ignore a negative FD, per contract
14381         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14382         when we have a valid file descriptor.  Otherwise, using a brand
14383         new glibc (with just-patched futimens that now fails with EBADF)
14384         would cause this function to fail with ENOSYS.
14385         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14386         See also http://bugzilla.redhat.com/552320.
14387
14388 2010-01-05  Eric Blake  <ebb9@byu.net>
14389
14390         strcase: document what it provides
14391         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14392         gnulib module.
14393         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14394         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14395
14396 2010-01-05  Jim Meyering  <meyering@redhat.com>
14397
14398         maint: remove useless inclusions of "xalloc.h"
14399         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14400         * lib/readtokens.c: Likewise.
14401         * lib/same.c: Likewise.
14402         * modules/getloadavg (Depends-on): Remove xalloc.
14403         * modules/readtokens: Likewise.
14404         * modules/same: Likewise.
14405
14406         maint.mk: include 4 more function names in alloca.h-checking regexp
14407         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14408         regexp.  Before, we would give a false-positive (saying alloca.h
14409         is included unnecessarily) when the only uses involved omitted symbols.
14410
14411         xalloc.h: use consistent formatting
14412         * lib/xalloc.h: Move declarations to start in the first column.
14413
14414 2010-01-05  Eric Blake  <ebb9@byu.net>
14415
14416         mkdir: avoid xalloc
14417         * lib/mkdir.c (includes): Drop unused header.
14418         Reported by John W. Eaton.
14419
14420 2010-01-04  Jim Meyering  <meyering@redhat.com>
14421
14422         nl_langinfo: avoid configure-time syntax error
14423         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14424         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14425         the empty string.  Don't let that provoke a shell syntax error.
14426
14427         regcomp, regexec, fnmatch: avoid array bounds read error
14428         * lib/regcomp.c (build_equiv_class): From glibc:
14429         Use only the low 24 bits of a findidx return value as an index
14430         into the weights array.  Patch by Ulrich Drepper:
14431         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14432         * lib/regexec.c (check_node_accept_bytes): Likewise.
14433         * lib/fnmatch_loop.c (FCT): Likewise.
14434
14435         regcomp: skip collseq lookup when there are no rules
14436         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14437         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14438
14439         regcomp: recognize ill-formed { } expressions
14440         * lib/regcomp.c (parse_dup_op): From glibc:
14441         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14442
14443         regcomp: fix typo in comment
14444         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14445         s/satisfy/satisfies/.
14446
14447         regcomp: sync from glibc: remove dead store
14448         * lib/regcomp.c (duplicate_node_closure): Remove useless
14449         search_duplicated_node call and dead store.
14450
14451         regcomp: sync from glibc; always use nl_langinfo
14452         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14453         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14454         * modules/regex (Depends-on): Add nl_langinfo.
14455
14456 2010-01-04  Eric Blake  <ebb9@byu.net>
14457
14458         fdopendir: fix configure test
14459         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14460
14461 2010-01-01  Bruno Haible  <bruno@clisp.org>
14462
14463         wchar: Remove unused configure check.
14464         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14465
14466 2010-01-01  Eric Blake  <ebb9@byu.net>
14467
14468         headers: make check of system header explicit
14469         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14470         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14471         ourselves.
14472         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14474         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14475         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14476         internals.
14477         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14478         missing.
14479         Suggested by Bruno Haible.
14480
14481 2010-01-01  Jim Meyering  <meyering@redhat.com>
14482
14483         ChangeLog: tweak to eliminate unnecessary copyright line
14484         * ChangeLog: Remove a copyright line that was mistakenly updated
14485         by today's update-copyright run.  Reported by Eric Blake.
14486
14487         test-update-copyright: don't let envvar setting cause test failure
14488         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14489
14490 2010-01-01  Bruno Haible  <bruno@clisp.org>
14491
14492         localename: Avoid gcc warning.
14493         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14494         function if it is not used.
14495
14496 2010-01-01  Jim Meyering  <meyering@redhat.com>
14497
14498         update nearly all FSF copyright year lists to include 2010
14499         Use the same procedure as for 2009, outlined in
14500         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14501
14502         version-etc: set COPYRIGHT_YEAR to 2010
14503         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14504
14505 2009-12-31  Eric Blake  <ebb9@byu.net>
14506
14507         doc: correct availability of cygwin 1.5.x getopt
14508         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14509         variables.
14510         * doc/posix-functions/opterr.texi (opterr): Likewise.
14511         * doc/posix-functions/optind.texi (optind): Likewise.
14512         * doc/posix-functions/optopt.texi (optopt): Likewise.
14513         * doc/posix-functions/tzname.texi (tzname): Likewise.
14514
14515         openat: update maintainer
14516         * modules/openat (Maintainer): Add myself.
14517
14518         utimens: avoid shadowing warning
14519         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14520         buffers into one, to avoid shadowing, as well as avoiding a
14521         redundant stat.
14522         Reported by Jim Meyering.
14523
14524         test-dup2: avoid compiler warning
14525         * tests/test-dup2.c (is_inheritable): Only define if used.
14526
14527 2010-01-01  Bruno Haible  <bruno@clisp.org>
14528
14529         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14530         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14531         defined, use wctomb instead of wcrtomb.
14532
14533 2010-01-01  Bruno Haible  <bruno@clisp.org>
14534
14535         iconv: Reject native Solaris iconv.
14536         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14537         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14538
14539 2009-12-31  Bruno Haible  <bruno@clisp.org>
14540
14541         * tests/test-signal.c (main): Remove test of 'SIG'.
14542
14543 2009-12-31  Bruno Haible  <bruno@clisp.org>
14544
14545         spawn: Fix incomplete fix.
14546         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14547         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14548         warnings for GNULIB_POSIXCHECK again.
14549         Reported by Eric Blake.
14550
14551 2009-12-31  Bruno Haible  <bruno@clisp.org>
14552
14553         Avoid namespace pollution on glibc systems.
14554         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14555         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14556         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14557         glibc systems.
14558
14559 2009-12-31  Bruno Haible  <bruno@clisp.org>
14560
14561         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14562         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14563         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14564         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14565         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14566         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14567         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14568
14569 2009-12-31  Bruno Haible  <bruno@clisp.org>
14570
14571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14572         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14573         afterwards.
14574
14575 2009-12-31  Bruno Haible  <bruno@clisp.org>
14576
14577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14578         SYS_UTSNAME_H.
14579
14580 2009-12-31  Bruno Haible  <bruno@clisp.org>
14581
14582         spawn: Fix misapplied patch.
14583         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14584         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14585         warnings for GNULIB_POSIXCHECK.
14586
14587 2009-12-31  Bruno Haible  <bruno@clisp.org>
14588
14589         times: Update after sys_times changed.
14590         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14591         * modules/times (Files): Add it.
14592         (configure.ac): Invoke gl_FUNC_TIMES.
14593
14594 2009-12-31  Bruno Haible  <bruno@clisp.org>
14595
14596         Use AC_C_INLINE where necessary.
14597         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14600         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14601         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14602         * m4/mbiter.m4 (gl_MBITER): Likewise.
14603         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14604         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14605         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14606         * modules/u64 (configure.ac): Likewise.
14607
14608 2009-12-31  Bruno Haible  <bruno@clisp.org>
14609
14610         Use AC_C_INLINE instead of module 'inline' where possible.
14611         * modules/inline (Description): Clarify purpose.
14612         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14613         * modules/count-one-bits (Depends-on): Remove inline.
14614         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14615         * modules/openat (Depends-on): Remove inline.
14616         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14617         instead of depending on module 'inline'.
14618         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14619         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14620         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14621         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14622         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14623         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14624         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14625         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14626         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14627         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14628         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14629         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14630         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14631         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14632         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14633         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14634         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14635         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14636         Likewise.
14637         * modules/unictype/property-ascii-hex-digit (Depends-on,
14638         configure.ac): Likewise.
14639         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14640         configure.ac): Likewise.
14641         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14642         configure.ac): Likewise.
14643         * modules/unictype/property-bidi-block-separator (Depends-on,
14644         configure.ac): Likewise.
14645         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14646         configure.ac): Likewise.
14647         * modules/unictype/property-bidi-common-separator (Depends-on,
14648         configure.ac): Likewise.
14649         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14650         Likewise.
14651         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14652         configure.ac): Likewise.
14653         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14654         configure.ac): Likewise.
14655         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14656         configure.ac): Likewise.
14657         * modules/unictype/property-bidi-european-digit (Depends-on,
14658         configure.ac): Likewise.
14659         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14660         configure.ac): Likewise.
14661         * modules/unictype/property-bidi-left-to-right (Depends-on,
14662         configure.ac): Likewise.
14663         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14664         configure.ac): Likewise.
14665         * modules/unictype/property-bidi-other-neutral (Depends-on,
14666         configure.ac): Likewise.
14667         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14668         Likewise.
14669         * modules/unictype/property-bidi-segment-separator (Depends-on,
14670         configure.ac): Likewise.
14671         * modules/unictype/property-bidi-whitespace (Depends-on,
14672         configure.ac): Likewise.
14673         * modules/unictype/property-combining (Depends-on, configure.ac):
14674         Likewise.
14675         * modules/unictype/property-composite (Depends-on, configure.ac):
14676         Likewise.
14677         * modules/unictype/property-currency-symbol (Depends-on,
14678         configure.ac): Likewise.
14679         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14680         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14681         Likewise.
14682         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14683         configure.ac): Likewise.
14684         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14685         Likewise.
14686         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14687         Likewise.
14688         * modules/unictype/property-extender (Depends-on, configure.ac):
14689         Likewise.
14690         * modules/unictype/property-format-control (Depends-on, configure.ac):
14691         Likewise.
14692         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14693         Likewise.
14694         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14695         Likewise.
14696         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14697         Likewise.
14698         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14699         Likewise.
14700         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14701         Likewise.
14702         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14703         Likewise.
14704         * modules/unictype/property-id-start (Depends-on, configure.ac):
14705         Likewise.
14706         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14707         Likewise.
14708         * modules/unictype/property-ids-binary-operator (Depends-on,
14709         configure.ac): Likewise.
14710         * modules/unictype/property-ids-trinary-operator (Depends-on,
14711         configure.ac): Likewise.
14712         * modules/unictype/property-ignorable-control (Depends-on,
14713         configure.ac): Likewise.
14714         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14715         Likewise.
14716         * modules/unictype/property-join-control (Depends-on, configure.ac):
14717         Likewise.
14718         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14719         Likewise.
14720         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14721         Likewise.
14722         * modules/unictype/property-logical-order-exception (Depends-on,
14723         configure.ac): Likewise.
14724         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14725         Likewise.
14726         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14727         * modules/unictype/property-non-break (Depends-on, configure.ac):
14728         Likewise.
14729         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14730         Likewise.
14731         * modules/unictype/property-numeric (Depends-on, configure.ac):
14732         Likewise.
14733         * modules/unictype/property-other-alphabetic (Depends-on,
14734         configure.ac): Likewise.
14735         * modules/unictype/property-other-default-ignorable-code-point
14736         (Depends-on, configure.ac): Likewise.
14737         * modules/unictype/property-other-grapheme-extend (Depends-on,
14738         configure.ac): Likewise.
14739         * modules/unictype/property-other-id-continue (Depends-on,
14740         configure.ac): Likewise.
14741         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14742         Likewise.
14743         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14744         Likewise.
14745         * modules/unictype/property-other-math (Depends-on, configure.ac):
14746         Likewise.
14747         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14748         Likewise.
14749         * modules/unictype/property-paired-punctuation (Depends-on,
14750         configure.ac): Likewise.
14751         * modules/unictype/property-paragraph-separator (Depends-on,
14752         configure.ac): Likewise.
14753         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14754         Likewise.
14755         * modules/unictype/property-pattern-white-space (Depends-on,
14756         configure.ac): Likewise.
14757         * modules/unictype/property-private-use (Depends-on, configure.ac):
14758         Likewise.
14759         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14760         Likewise.
14761         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14762         Likewise.
14763         * modules/unictype/property-radical (Depends-on, configure.ac):
14764         Likewise.
14765         * modules/unictype/property-sentence-terminal (Depends-on,
14766         configure.ac): Likewise.
14767         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14768         Likewise.
14769         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14770         * modules/unictype/property-terminal-punctuation (Depends-on,
14771         configure.ac): Likewise.
14772         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14773         Likewise.
14774         * modules/unictype/property-unassigned-code-value (Depends-on,
14775         configure.ac): Likewise.
14776         * modules/unictype/property-unified-ideograph (Depends-on,
14777         configure.ac): Likewise.
14778         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14779         Likewise.
14780         * modules/unictype/property-variation-selector (Depends-on,
14781         configure.ac): Likewise.
14782         * modules/unictype/property-white-space (Depends-on, configure.ac):
14783         Likewise.
14784         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14785         Likewise.
14786         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14787         Likewise.
14788         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14789         Likewise.
14790         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14791         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14792         Likewise.
14793
14794 2009-12-31  Bruno Haible  <bruno@clisp.org>
14795
14796         Remove unnecessary AC_C_INLINE invocation.
14797         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14798         since 2009-08-21.
14799
14800 2009-12-31  Jim Meyering  <meyering@redhat.com>
14801
14802         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14803         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14804         With this change, we can all remove the gpg_key_ID = ... definition
14805         from our respective cfg.mk files.
14806
14807         maint.mk: create announcement template in ~/, not in /tmp
14808         * top/maint.mk (emit_upload_commands): Adjust.
14809         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14810         Remove temporary file, .ci-msg.
14811
14812 2009-12-31  Eric Blake  <ebb9@byu.net>
14813
14814         link-warning: always build headers with link warnings
14815         * modules/arpa_inet (Makefile.am): Always build replacement
14816         header.
14817         * modules/ctype (Makefile.am): Likewise.
14818         * modules/dirent (Makefile.am): Likewise.
14819         * modules/inttypes (Makefile.am): Likewise.
14820         * modules/langinfo (Makefile.am): Likewise.
14821         * modules/locale (Makefile.am): Likewise.
14822         * modules/spawn (Makefile.am): Likewise.
14823         * modules/sys_file (Makefile.am): Likewise.
14824         * modules/sys_ioctl (Makefile.am): Likewise.
14825         * modules/sys_select (Makefile.am): Likewise.
14826         * modules/sys_socket (Makefile.am): Likewise.
14827         * modules/sys_times (Makefile.am): Likewise.
14828         * modules/sys_utsname (Makefile.am): Likewise.
14829         * modules/sys_wait (Makefile.am): Likewise.
14830         * modules/wchar (Makefile.am): Likewise.
14831         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14832         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14833         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14834         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14835         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14836         Likewise.
14837         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14838         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14839         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14840         Likewise.
14841         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14842         Likewise.
14843         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14844         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14845         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14846         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14847         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14849         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14850         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14851         (gl_WCHAR_H_DEFAULTS): Likewise.
14852
14853 2009-12-31  Eric Blake  <ebb9@byu.net>
14854
14855         signal, spawn: use link warnings
14856         * lib/signal.in.h (sigset_t): Make unconditional.
14857         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14858         (sigpending, sigprocmask, sigaction): Add link warnings.
14859         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14860         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14861         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14862         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14863         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14864         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14865         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14866         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14867         (posix_spawn_file_actions_destroy)
14868         (posix_spawn_file_actions_addopen)
14869         (posix_spawn_file_actions_addclose)
14870         (posix_spawn_file_actions_adddup2): Likewise.
14871         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14872         * tests/test-signal.c (main): Enhance test.
14873
14874         spawn: improve wrapper support
14875         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14876         (gl_SPAWN_H_DEFAULTS): New defaults.
14877         * modules/spawn (Makefile.am): Substitute them.
14878         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14879         Only declare if missing or broken.
14880
14881         sys_times, sys_utsname: use include_next
14882         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14883         header.
14884         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14886         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14887         * modules/sys_times (Depends-on): Add include_next.
14888         (Makefile.am): Substitute additional values.
14889         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14890         * lib/sys_times.in.h (includes): Include native header, if
14891         available.
14892         * lib/sys_utsname.in.h (includes): Likewise.
14893         * tests/test-sys_times.c (main): Enhance test.
14894
14895         fdutimensat: revert prior patch
14896         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14897         utimens.h.
14898         Reported by Bruno Haible.
14899
14900 2009-12-30  Eric Blake  <ebb9@byu.net>
14901
14902         sys_wait: drop link-warning dependency
14903         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14904         link-warning efforts.
14905         * lib/sys_wait.in.h: Likewise.
14906
14907         fdutimensat: remove bogus dependency
14908         * modules/fdutimensat (Depends-on): Drop inline.
14909
14910         unistd: fix typo
14911         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14912
14913 2009-12-30  Bruno Haible  <bruno@clisp.org>
14914
14915         Fix compilation error with Solaris cc.
14916         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14917         * lib/unicase/u16-is-invariant.c: Likewise.
14918         * lib/unicase/u32-is-invariant.c: Likewise.
14919         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14920
14921 2009-12-30  Bruno Haible  <bruno@clisp.org>
14922
14923         Fix test crash.
14924         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14925         locales.
14926         Reported by Simon Josefsson <simon@josefsson.org>.
14927
14928 2009-12-30  Bruno Haible  <bruno@clisp.org>
14929
14930         Fix compilation error on most platforms.
14931         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14932         Reported by Simon Josefsson <simon@josefsson.org>
14933         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14934
14935 2009-12-30  Eric Blake  <ebb9@byu.net>
14936
14937         futimens, utimensat: work around ntfs-3g bug
14938         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14939         a ctime bug is present, and expand workaround to cover ntfs-3g.
14940         * lib/utimens.c (fdutimens, lutimens): Likewise.
14941         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14942         (validate_timespec): Adjust return value.
14943         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14944         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14945         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14946
14947 2009-12-29  Eric Blake  <ebb9@byu.net>
14948
14949         link-warning: make usage consistent
14950         * modules/ctype (Depends-on): Add link-warning.
14951         (Makefile.am): Update rules accordingly.
14952         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14953         * modules/locale (Depends-on, Makefile.am): Likewise.
14954         * modules/sys_file (Makefile.am): Likewise.
14955         * modules/getopt-posix (Makefile.am): Delete unused link warning
14956         efforts.
14957         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14958         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14959         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14960         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14961
14962         stdio: remove unused variables
14963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14965         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14966
14967         tests: test more substitute headers
14968         * modules/ctype-tests: New file.
14969         * modules/dirent-tests: Likewise.
14970         * modules/spawn-tests: Likewise.
14971         * modules/sys_file-tests: Likewise.
14972         * modules/sys_ioctl-tests: Likewise.
14973         * modules/sys_wait-tests: Likewise.
14974         * tests/test-ctype.c: Likewise.
14975         * tests/test-dirent.c: Likewise.
14976         * tests/test-spawn.c: Likewise.
14977         * tests/test-sys_file.c: Likewise.
14978         * tests/test-sys_ioctl.c: Likewise.
14979         * tests/test-sys_wait.c: Likewise.
14980         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14981         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14982         whether or not flock is in use.
14983
14984         tests: remove License section from module
14985         * modules/arpa_inet-tests: Remove unneeded section.
14986         * modules/byteswap-tests: Likewise.
14987         * modules/ceilf-tests: Likewise.
14988         * modules/ceill-tests: Likewise.
14989         * modules/crypto/des-tests: Likewise.
14990         * modules/crypto/gc-arcfour-tests: Likewise.
14991         * modules/crypto/gc-arctwo-tests: Likewise.
14992         * modules/crypto/gc-des-tests: Likewise.
14993         * modules/crypto/gc-hmac-md5-tests: Likewise.
14994         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14995         * modules/crypto/gc-md2-tests: Likewise.
14996         * modules/crypto/gc-md4-tests: Likewise.
14997         * modules/crypto/gc-md5-tests: Likewise.
14998         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14999         * modules/crypto/gc-rijndael-tests: Likewise.
15000         * modules/crypto/gc-sha1-tests: Likewise.
15001         * modules/crypto/gc-tests: Likewise.
15002         * modules/crypto/md2-tests: Likewise.
15003         * modules/crypto/md4-tests: Likewise.
15004         * modules/fcntl-h-tests: Likewise.
15005         * modules/floorf-tests: Likewise.
15006         * modules/floorl-tests: Likewise.
15007         * modules/frexp-nolibm-tests: Likewise.
15008         * modules/frexp-tests: Likewise.
15009         * modules/frexpl-nolibm-tests: Likewise.
15010         * modules/frexpl-tests: Likewise.
15011         * modules/getaddrinfo-tests: Likewise.
15012         * modules/inttypes-tests: Likewise.
15013         * modules/isfinite-tests: Likewise.
15014         * modules/isinf-tests: Likewise.
15015         * modules/ldexpl-tests: Likewise.
15016         * modules/locale-tests: Likewise.
15017         * modules/math-tests: Likewise.
15018         * modules/netdb-tests: Likewise.
15019         * modules/netinet_in-tests: Likewise.
15020         * modules/printf-frexp-tests: Likewise.
15021         * modules/printf-frexpl-tests: Likewise.
15022         * modules/priv-set-tests: Likewise.
15023         * modules/random_r-tests: Likewise.
15024         * modules/round-tests: Likewise.
15025         * modules/roundf-tests: Likewise.
15026         * modules/roundl-tests: Likewise.
15027         * modules/search-tests: Likewise.
15028         * modules/select-tests: Likewise.
15029         * modules/signal-tests: Likewise.
15030         * modules/stdbool-tests: Likewise.
15031         * modules/stddef-tests: Likewise.
15032         * modules/stdint-tests: Likewise.
15033         * modules/stdio-tests: Likewise.
15034         * modules/stdlib-tests: Likewise.
15035         * modules/string-tests: Likewise.
15036         * modules/strings-tests: Likewise.
15037         * modules/sys_select-tests: Likewise.
15038         * modules/sys_socket-tests: Likewise.
15039         * modules/sys_stat-tests: Likewise.
15040         * modules/sys_time-tests: Likewise.
15041         * modules/sys_utsname-tests: Likewise.
15042         * modules/sysexits-tests: Likewise.
15043         * modules/time-tests: Likewise.
15044         * modules/trunc-tests: Likewise.
15045         * modules/truncf-tests: Likewise.
15046         * modules/truncl-tests: Likewise.
15047         * modules/tsearch-tests: Likewise.
15048         * modules/unistd-tests: Likewise.
15049         * modules/wchar-tests: Likewise.
15050         * modules/wctype-tests: Likewise.
15051
15052         tests: fix license on several tests
15053         * tests/test-des.c: Update to GPLv3+.
15054         * tests/test-flock.c: Likewise.
15055         * tests/test-fsync.c: Likewise.
15056         * tests/test-futimens.h: Likewise.
15057         * tests/test-gc-arcfour.c: Likewise.
15058         * tests/test-gc-arctwo.c: Likewise.
15059         * tests/test-gc-des.c: Likewise.
15060         * tests/test-gc-hmac-md5.c: Likewise.
15061         * tests/test-gc-hmac-sha1.c: Likewise.
15062         * tests/test-gc-md2.c: Likewise.
15063         * tests/test-gc-md4.c: Likewise.
15064         * tests/test-gc-md5.c: Likewise.
15065         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15066         * tests/test-gc-rijndael.c: Likewise.
15067         * tests/test-gc-sha1.c: Likewise.
15068         * tests/test-gc.c: Likewise.
15069         * tests/test-getcwd.c: Likewise.
15070         * tests/test-link.c: Likewise.
15071         * tests/test-link.h: Likewise.
15072         * tests/test-lutimens.h: Likewise.
15073         * tests/test-md2.c: Likewise.
15074         * tests/test-md4.c: Likewise.
15075         * tests/test-mkdir.h: Likewise.
15076         * tests/test-rename.c: Likewise.
15077         * tests/test-rename.h: Likewise.
15078         * tests/test-safe-alloc.c: Likewise.
15079         * tests/test-utimens-common.h: Likewise.
15080         * tests/test-utimens.h: Likewise.
15081
15082         maint: sync license texts
15083         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15084         * doc/gpl-3.0.texi: Revert copyright year update.
15085         * doc/lgpl-3.0.texi: Likewise.
15086
15087 2009-12-29  Jim Meyering  <meyering@redhat.com>
15088
15089         update nearly all FSF copyright year lists to include 2009
15090         The files named by the following are exempted:
15091             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15092               test -f "$dst" && { echo "$dst"; continue; }
15093               test -d "$dst" || continue
15094               echo "$dst"/$(basename "$src")
15095             done > exempt
15096             git ls-files tests/unictype >> exempt
15097         In the remaining files, convert to all-interval notation if
15098         - there is already at least one year interval like 2000-2003
15099         - the file is maintained by me
15100         - the file is in lib/uni*/, where that style already prevails
15101         Otherwise, use update-copyright's default.
15102
15103 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15104         and Eric Blake  <ebb9@byu.net>
15105
15106         tests: don't require debug system() to pass
15107         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15108         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15109         * tests/test-unlink.h (test_unlink_func): Likewise.
15110         * tests/test-fstatat.c (main): ...into callers.
15111         * tests/test-lstat.c (main): Likewise.
15112         * tests/test-rmdir.c (main): Likewise.
15113         * tests/test-unlink.c (main): Likewise.
15114         * tests/test-unlinkat.c (main): Likewise.
15115         * tests/test-areadlink-with-size.c (main): Don't require a
15116         debug-only system call to pass, aiding cross-testing to mingw.
15117         * tests/test-areadlink.c (main): Likewise.
15118         * tests/test-areadlinkat-with-size.c (main): Likewise.
15119         * tests/test-areadlinkat.c (main): Likewise.
15120         * tests/test-canonicalize-lgpl.c (main): Likewise.
15121         * tests/test-canonicalize.c (main): Likewise.
15122         * tests/test-chown.c (main): Likewise.
15123         * tests/test-fchownat.c (main): Likewise.
15124         * tests/test-lchown.c (main): Likewise.
15125         * tests/test-fdutimensat.c (main): Likewise.
15126         * tests/test-futimens.c (main): Likewise.
15127         * tests/test-link.c (main): Likewise.
15128         * tests/test-linkat.c (main): Likewise.
15129         * tests/test-mkdir.c (main): Likewise.
15130         * tests/test-mkdirat.c (main): Likewise.
15131         * tests/test-mkfifo.c (main): Likewise.
15132         * tests/test-mkfifoat.c (main): Likewise.
15133         * tests/test-mknod.c (main): Likewise.
15134         * tests/test-readlink.c (main): Likewise.
15135         * tests/test-remove.c (main): Likewise.
15136         * tests/test-rename.c (main): Likewise.
15137         * tests/test-renameat.c (main): Likewise.
15138         * tests/test-symlink.c (main): Likewise.
15139         * tests/test-symlinkat.c (main): Likewise.
15140         * tests/test-utimens.c (main): Likewise.
15141         * tests/test-utimensat.c (main): Likewise.
15142
15143 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15144
15145         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15146         on $(UNUSED_PARAMETER_H) to avoid build failure.
15147
15148 2009-12-28  Jim Meyering  <meyering@redhat.com>
15149
15150         update-copyright: you may specify a max. line length other than 72
15151         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15152
15153         maint: use consistent FSF copyright line syntax
15154         * lib/posixtm.c: Add missing comma in FSF copyright line.
15155         * lib/posixtm.h: Likewise.
15156         * lib/getugroups.c: Add missing ", Inc.".
15157
15158         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15159         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15160         FSF copyright line.  Remove trailing blanks.
15161
15162 2009-12-28  Eric Blake  <ebb9@byu.net>
15163
15164         test-dup2: reduce dependencies
15165         * modules/cloexec (Configure.ac): Set witness.
15166         * modules/dup2-tests (Depends-on): Drop cloexec.
15167         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15168         not present.
15169         Suggested by Bruno Haible.
15170
15171 2009-12-26  Bruno Haible  <bruno@clisp.org>
15172
15173         Remove an unneeded dependency.
15174         * modules/fseterr (Depends-on): Remove dup2.
15175
15176 2009-12-26  Eric Blake  <ebb9@byu.net>
15177
15178         tests: use macros.h in more places
15179         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15180         (ASSERT_STREAM): Provide default of stderr.
15181         * tests/test-dirent-safer.c: Include macros.h, using alternate
15182         stream for assertions.
15183         * tests/test-dup-safer.c: Likewise.
15184         * tests/test-freopen-safer.c: Likewise.
15185         * tests/test-getopt.c: Likewise.
15186         * tests/test-openat-safer.c: Likewise.
15187         * tests/test-pipe.c: Likewise.
15188         * tests/test-popen-safer.c: Likewise.
15189         * modules/dirent-safer-tests (Files): Include macros.h.
15190         * modules/unistd-safer-tests (Files): Likewise.
15191         * modules/freopen-safer-tests (Files): Likewise.
15192         * modules/getopt-posix-tests (Files): Likewise.
15193         * modules/openat-safer-tests (Files): Likewise.
15194         * modules/pipe-tests (Files): Likewise.
15195
15196 2009-12-26  Bruno Haible  <bruno@clisp.org>
15197
15198         javacomp: Portability fix.
15199         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15200         that it also works on Solaris.
15201
15202 2009-12-26  Bruno Haible  <bruno@clisp.org>
15203
15204         localename: Fix storage allocation of gl_locale_name_thread's result.
15205         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15206         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15207         all platforms that have 'uselocale'.
15208         (gl_locale_name_thread_unsafe): New function, extracted from
15209         gl_locale_name_thread.
15210         (gl_locale_name_thread): Call struniq on all platforms that have
15211         'uselocale'.
15212         * tests/test-localename.c (test_locale_name_thread): Check that the
15213         resulting strings are permanently allocated.
15214         * modules/localename-tests (Depends-on): Add strdup.
15215
15216 2009-12-26  Bruno Haible  <bruno@clisp.org>
15217
15218         * tests/test-localename.c (categories): Fill in the strings.
15219
15220 2009-12-26  Jim Meyering  <meyering@redhat.com>
15221
15222         isdir: complete the removal of m4/isdir.m4
15223         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15224
15225         isdir: clean up, since at least grep still uses it
15226         * lib/isdir.c: Include "isdir.h".
15227         (S_ISDIR): Remove now-unneeded definition.
15228         * modules/isdir (Files): Add lib/isdir.h.
15229         * lib/isdir.h: New file, with declaration.
15230         * m4/isdir.m4: Remove file -- unneeded.
15231
15232 2009-12-25  Bruno Haible  <bruno@clisp.org>
15233
15234         selinux-h: Make generated .h files standalone.
15235         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15236         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15237         * lib/se-selinux.in.h: Likewise.
15238         * modules/selinux-h (Depends-on): Add unused-parameter.
15239         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15240         selinux/selinux.h and selinux/context.h.
15241         Suggested by Eric Blake.
15242
15243 2009-12-25  Bruno Haible  <bruno@clisp.org>
15244
15245         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15246         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15247         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15248         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15249         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15250
15251 2009-12-24  Bruno Haible  <bruno@clisp.org>
15252
15253         openat: Fix warning.
15254         * lib/openat-proc.c: Include <unistd.h>.
15255
15256 2009-12-24  Bruno Haible  <bruno@clisp.org>
15257
15258         New module 'unused-parameter'.
15259         * build-aux/unused-parameter.h: New file, extracted from earlier
15260         gnulib-common.m4.
15261         * modules/unused-parameter: New file.
15262         * lib/unistr.h: Include unused-parameter.h.
15263         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15264         _GL_UNUSED.
15265         * modules/unistr/base (Depends-on): Add unused-parameter.
15266
15267 2009-12-24  Bruno Haible  <bruno@clisp.org>
15268
15269         Add missing dependencies to 'extensions' module.
15270         * m4/extensions.m4: Add comment.
15271         * modules/accept4 (Depends-on): Add extensions.
15272         * modules/dup3 (Depends-on): Likewise.
15273         * modules/fcntl (Depends-on): Likewise.
15274         * modules/futimens (Depends-on): Likewise.
15275         * modules/mknod (Depends-on): Likewise.
15276         * modules/pipe2 (Depends-on): Likewise.
15277         * modules/stat-time (Depends-on): Likewise.
15278         * modules/strcasestr-simple (Depends-on): Likewise.
15279         * modules/strsignal (Depends-on): Likewise.
15280         * modules/utimensat (Depends-on): Likewise.
15281         * modules/localcharset (Depends-on): Likewise. Needed because of
15282         gl_FCNTL_O_FLAGS.
15283         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15284         AC_TYPE_MBSTATE_T.
15285         * modules/wcsnrtombs (Depends-on): Likewise.
15286         * modules/wcsrtombs (Depends-on): Likewise.
15287
15288 2009-12-24  Bruno Haible  <bruno@clisp.org>
15289
15290         binary-io: Avoid gcc warning due to SET_BINARY.
15291         * lib/binary-io.h (SET_BINARY): Cast the result to void.
15292         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
15293
15294 2009-12-24  Bruno Haible  <bruno@clisp.org>
15295
15296         Avoid future namespace pollution on glibc systems.
15297         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
15298         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
15299         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
15300         glibc systems.
15301
15302 2009-12-24  Bruno Haible  <bruno@clisp.org>
15303
15304         Refactor common macros used in tests.
15305         * tests/macros.h: New file.
15306         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
15307         and/or <stdlib.h>, if appropriate.
15308         (ASSERT, SIZEOF): Remove macros.
15309         * tests/test-areadlink-with-size.c: Likewise.
15310         * tests/test-areadlinkat.c: Likewise.
15311         * tests/test-areadlinkat-with-size.c: Likewise.
15312         * tests/test-argmatch.c: Likewise.
15313         * tests/test-argv-iter.c: Likewise.
15314         * tests/test-array-mergesort.c: Likewise.
15315         * tests/test-array_list.c: Likewise.
15316         * tests/test-array_oset.c: Likewise.
15317         * tests/test-avltree_list.c: Likewise.
15318         * tests/test-avltree_oset.c: Likewise.
15319         * tests/test-avltreehash_list.c: Likewise.
15320         * tests/test-base64.c: Likewise.
15321         * tests/test-binary-io.c: Likewise.
15322         * tests/test-bitrotate.c: Likewise.
15323         * tests/test-btowc.c: Likewise.
15324         * tests/test-byteswap.c: Likewise.
15325         * tests/test-c-ctype.c: Likewise.
15326         * tests/test-c-stack.c: Likewise.
15327         * tests/test-c-strcasecmp.c: Likewise.
15328         * tests/test-c-strcasestr.c: Likewise.
15329         * tests/test-c-strncasecmp.c: Likewise.
15330         * tests/test-c-strstr.c: Likewise.
15331         * tests/test-canonicalize-lgpl.c: Likewise.
15332         * tests/test-canonicalize.c: Likewise.
15333         * tests/test-carray_list.c: Likewise.
15334         * tests/test-ceilf1.c: Likewise.
15335         * tests/test-ceilf2.c: Likewise.
15336         * tests/test-ceill.c: Likewise.
15337         * tests/test-chown.c: Likewise.
15338         * tests/test-cloexec.c: Likewise.
15339         * tests/test-copy-acl.c: Likewise.
15340         * tests/test-copy-file.c: Likewise.
15341         * tests/test-count-one-bits.c: Likewise.
15342         * tests/test-dprintf-posix.c: Likewise.
15343         * tests/test-dup2.c: Likewise.
15344         * tests/test-dup3.c: Likewise.
15345         * tests/test-duplocale.c: Likewise.
15346         * tests/test-fbufmode.c: Likewise.
15347         * tests/test-fchdir.c: Likewise.
15348         * tests/test-fchownat.c: Likewise.
15349         * tests/test-fcntl-safer.c: Likewise.
15350         * tests/test-fcntl.c: Likewise.
15351         * tests/test-fdopendir.c: Likewise.
15352         * tests/test-fdutimensat.c: Likewise.
15353         * tests/test-fflush2.c: Likewise.
15354         * tests/test-file-has-acl.c: Likewise.
15355         * tests/test-filevercmp.c: Likewise.
15356         * tests/test-flock.c: Likewise.
15357         * tests/test-floorf1.c: Likewise.
15358         * tests/test-floorf2.c: Likewise.
15359         * tests/test-floorl.c: Likewise.
15360         * tests/test-fnmatch.c: Likewise.
15361         * tests/test-fopen.h: Likewise.
15362         * tests/test-fpending.c: Likewise.
15363         * tests/test-fprintf-posix.c: Likewise.
15364         * tests/test-fpurge.c: Likewise.
15365         * tests/test-freadable.c: Likewise.
15366         * tests/test-freadahead.c: Likewise.
15367         * tests/test-freading.c: Likewise.
15368         * tests/test-freadptr.c: Likewise.
15369         * tests/test-freadptr2.c: Likewise.
15370         * tests/test-freadseek.c: Likewise.
15371         * tests/test-freopen.c: Likewise.
15372         * tests/test-frexp.c: Likewise.
15373         * tests/test-frexpl.c: Likewise.
15374         * tests/test-fseek.c: Likewise.
15375         * tests/test-fseeko.c: Likewise.
15376         * tests/test-fstatat.c: Likewise.
15377         * tests/test-fstrcmp.c: Likewise.
15378         * tests/test-fsync.c: Likewise.
15379         * tests/test-ftell.c: Likewise.
15380         * tests/test-ftello.c: Likewise.
15381         * tests/test-func.c: Likewise.
15382         * tests/test-futimens.c: Likewise.
15383         * tests/test-fwritable.c: Likewise.
15384         * tests/test-fwriting.c: Likewise.
15385         * tests/test-getcwd.c: Likewise.
15386         * tests/test-getdate.c: Likewise.
15387         * tests/test-getdelim.c: Likewise.
15388         * tests/test-getdtablesize.c: Likewise.
15389         * tests/test-getgroups.c: Likewise.
15390         * tests/test-getline.c: Likewise.
15391         * tests/test-getndelim2.c: Likewise.
15392         * tests/test-glob.c: Likewise.
15393         * tests/test-hash.c: Likewise.
15394         * tests/test-i-ring.c: Likewise.
15395         * tests/test-iconv-utf.c: Likewise.
15396         * tests/test-iconv.c: Likewise.
15397         * tests/test-idpriv-drop.c: Likewise.
15398         * tests/test-idpriv-droptemp.c: Likewise.
15399         * tests/test-inet_ntop.c: Likewise.
15400         * tests/test-inet_pton.c: Likewise.
15401         * tests/test-isblank.c: Likewise.
15402         * tests/test-isfinite.c: Likewise.
15403         * tests/test-isinf.c: Likewise.
15404         * tests/test-isnan.c: Likewise.
15405         * tests/test-isnand.h: Likewise.
15406         * tests/test-isnanf.h: Likewise.
15407         * tests/test-isnanl.h: Likewise.
15408         * tests/test-lchown.c: Likewise.
15409         * tests/test-ldexpl.c: Likewise.
15410         * tests/test-link.c: Likewise.
15411         * tests/test-linkat.c: Likewise.
15412         * tests/test-linked_list.c: Likewise.
15413         * tests/test-linkedhash_list.c: Likewise.
15414         * tests/test-localename.c: Likewise.
15415         * tests/test-lseek.c: Likewise.
15416         * tests/test-lstat.c: Likewise.
15417         * tests/test-mbmemcasecmp.c: Likewise.
15418         * tests/test-mbmemcasecoll.c: Likewise.
15419         * tests/test-mbrtowc.c: Likewise.
15420         * tests/test-mbscasecmp.c: Likewise.
15421         * tests/test-mbscasestr1.c: Likewise.
15422         * tests/test-mbscasestr2.c: Likewise.
15423         * tests/test-mbscasestr3.c: Likewise.
15424         * tests/test-mbscasestr4.c: Likewise.
15425         * tests/test-mbschr.c: Likewise.
15426         * tests/test-mbscspn.c: Likewise.
15427         * tests/test-mbsinit.c: Likewise.
15428         * tests/test-mbsncasecmp.c: Likewise.
15429         * tests/test-mbsnrtowcs.c: Likewise.
15430         * tests/test-mbspbrk.c: Likewise.
15431         * tests/test-mbspcasecmp.c: Likewise.
15432         * tests/test-mbsrchr.c: Likewise.
15433         * tests/test-mbsrtowcs.c: Likewise.
15434         * tests/test-mbsspn.c: Likewise.
15435         * tests/test-mbsstr1.c: Likewise.
15436         * tests/test-mbsstr2.c: Likewise.
15437         * tests/test-mbsstr3.c: Likewise.
15438         * tests/test-memchr.c: Likewise.
15439         * tests/test-memchr2.c: Likewise.
15440         * tests/test-memcmp.c: Likewise.
15441         * tests/test-memmem.c: Likewise.
15442         * tests/test-memrchr.c: Likewise.
15443         * tests/test-mkdir.c: Likewise.
15444         * tests/test-mkdirat.c: Likewise.
15445         * tests/test-mkfifo.c: Likewise.
15446         * tests/test-mkfifoat.c: Likewise.
15447         * tests/test-mknod.c: Likewise.
15448         * tests/test-nanosleep.c: Likewise.
15449         * tests/test-nl_langinfo.c: Likewise.
15450         * tests/test-obstack-printf.c: Likewise.
15451         * tests/test-open.c: Likewise.
15452         * tests/test-openat.c: Likewise.
15453         * tests/test-pipe-filter-gi1.c: Likewise.
15454         * tests/test-pipe-filter-gi2-main.c: Likewise.
15455         * tests/test-pipe-filter-ii1.c: Likewise.
15456         * tests/test-pipe-filter-ii2-main.c: Likewise.
15457         * tests/test-pipe2.c: Likewise.
15458         * tests/test-popen.h: Likewise.
15459         * tests/test-posixtm.c: Likewise.
15460         * tests/test-pread.c: Likewise.
15461         * tests/test-printf-frexp.c: Likewise.
15462         * tests/test-printf-frexpl.c: Likewise.
15463         * tests/test-printf-posix.c: Likewise.
15464         * tests/test-priv-set.c: Likewise.
15465         * tests/test-quotearg.c: Likewise.
15466         * tests/test-random_r.c: Likewise.
15467         * tests/test-rawmemchr.c: Likewise.
15468         * tests/test-rbtree_list.c: Likewise.
15469         * tests/test-rbtree_oset.c: Likewise.
15470         * tests/test-rbtreehash_list.c: Likewise.
15471         * tests/test-readlink.c: Likewise.
15472         * tests/test-remove.c: Likewise.
15473         * tests/test-rename.c: Likewise.
15474         * tests/test-renameat.c: Likewise.
15475         * tests/test-rmdir.c: Likewise.
15476         * tests/test-round1.c: Likewise.
15477         * tests/test-roundf1.c: Likewise.
15478         * tests/test-roundl.c: Likewise.
15479         * tests/test-safe-alloc.c: Likewise.
15480         * tests/test-sameacls.c: Likewise.
15481         * tests/test-set-mode-acl.c: Likewise.
15482         * tests/test-setenv.c: Likewise.
15483         * tests/test-sigaction.c: Likewise.
15484         * tests/test-signbit.c: Likewise.
15485         * tests/test-sleep.c: Likewise.
15486         * tests/test-snprintf-posix.c: Likewise.
15487         * tests/test-snprintf.c: Likewise.
15488         * tests/test-sprintf-posix.c: Likewise.
15489         * tests/test-stat-time.c: Likewise.
15490         * tests/test-stat.c: Likewise.
15491         * tests/test-strcasestr.c: Likewise.
15492         * tests/test-strchrnul.c: Likewise.
15493         * tests/test-strerror.c: Likewise.
15494         * tests/test-striconv.c: Likewise.
15495         * tests/test-striconveh.c: Likewise.
15496         * tests/test-striconveha.c: Likewise.
15497         * tests/test-strsignal.c: Likewise.
15498         * tests/test-strstr.c: Likewise.
15499         * tests/test-strtod.c: Likewise.
15500         * tests/test-strverscmp.c: Likewise.
15501         * tests/test-symlink.c: Likewise.
15502         * tests/test-symlinkat.c: Likewise.
15503         * tests/test-trunc1.c: Likewise.
15504         * tests/test-trunc2.c: Likewise.
15505         * tests/test-truncf1.c: Likewise.
15506         * tests/test-truncf2.c: Likewise.
15507         * tests/test-truncl.c: Likewise.
15508         * tests/test-uname.c: Likewise.
15509         * tests/test-unlink.c: Likewise.
15510         * tests/test-unlinkat.c: Likewise.
15511         * tests/test-unsetenv.c: Likewise.
15512         * tests/test-usleep.c: Likewise.
15513         * tests/test-utimens.c: Likewise.
15514         * tests/test-utimensat.c: Likewise.
15515         * tests/test-vasnprintf-posix.c: Likewise.
15516         * tests/test-vasnprintf-posix2.c: Likewise.
15517         * tests/test-vasnprintf.c: Likewise.
15518         * tests/test-vasprintf-posix.c: Likewise.
15519         * tests/test-vasprintf.c: Likewise.
15520         * tests/test-vdprintf-posix.c: Likewise.
15521         * tests/test-vfprintf-posix.c: Likewise.
15522         * tests/test-vprintf-posix.c: Likewise.
15523         * tests/test-vsnprintf-posix.c: Likewise.
15524         * tests/test-vsnprintf.c: Likewise.
15525         * tests/test-vsprintf-posix.c: Likewise.
15526         * tests/test-wcrtomb.c: Likewise.
15527         * tests/test-wcsnrtombs.c: Likewise.
15528         * tests/test-wcsrtombs.c: Likewise.
15529         * tests/test-wctype.c: Likewise.
15530         * tests/test-wcwidth.c: Likewise.
15531         * tests/test-xfprintf-posix.c: Likewise.
15532         * tests/test-xmemdup0.c: Likewise.
15533         * tests/test-xprintf-posix.c: Likewise.
15534         * tests/test-xvasprintf.c: Likewise.
15535         * tests/unicase/test-locale-language.c: Likewise.
15536         * tests/unicase/test-mapping-part1.h: Likewise.
15537         * tests/unicase/test-predicate-part1.h: Likewise.
15538         * tests/unicase/test-u8-casecmp.c: Likewise.
15539         * tests/unicase/test-u8-casecoll.c: Likewise.
15540         * tests/unicase/test-u8-casefold.c: Likewise.
15541         * tests/unicase/test-u8-is-cased.c: Likewise.
15542         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15543         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15544         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15545         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15546         * tests/unicase/test-u8-tolower.c: Likewise.
15547         * tests/unicase/test-u8-totitle.c: Likewise.
15548         * tests/unicase/test-u8-toupper.c: Likewise.
15549         * tests/unicase/test-u16-casecmp.c: Likewise.
15550         * tests/unicase/test-u16-casecoll.c: Likewise.
15551         * tests/unicase/test-u16-casefold.c: Likewise.
15552         * tests/unicase/test-u16-is-cased.c: Likewise.
15553         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15554         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15555         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15556         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15557         * tests/unicase/test-u16-tolower.c: Likewise.
15558         * tests/unicase/test-u16-totitle.c: Likewise.
15559         * tests/unicase/test-u16-toupper.c: Likewise.
15560         * tests/unicase/test-u32-casecmp.c: Likewise.
15561         * tests/unicase/test-u32-casecoll.c: Likewise.
15562         * tests/unicase/test-u32-casefold.c: Likewise.
15563         * tests/unicase/test-u32-is-cased.c: Likewise.
15564         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15565         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15566         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15567         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15568         * tests/unicase/test-u32-tolower.c: Likewise.
15569         * tests/unicase/test-u32-totitle.c: Likewise.
15570         * tests/unicase/test-u32-toupper.c: Likewise.
15571         * tests/unicase/test-ulc-casecmp.c: Likewise.
15572         * tests/unicase/test-ulc-casecoll.c: Likewise.
15573         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15574         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15575         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15576         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15577         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15578         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15579         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15580         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15581         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15582         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15583         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15584         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15585         * tests/unictype/test-bidi_byname.c: Likewise.
15586         * tests/unictype/test-bidi_name.c: Likewise.
15587         * tests/unictype/test-bidi_of.c: Likewise.
15588         * tests/unictype/test-bidi_test.c: Likewise.
15589         * tests/unictype/test-block_list.c: Likewise.
15590         * tests/unictype/test-block_of.c: Likewise.
15591         * tests/unictype/test-block_test.c: Likewise.
15592         * tests/unictype/test-categ_and.c: Likewise.
15593         * tests/unictype/test-categ_and_not.c: Likewise.
15594         * tests/unictype/test-categ_byname.c: Likewise.
15595         * tests/unictype/test-categ_name.c: Likewise.
15596         * tests/unictype/test-categ_none.c: Likewise.
15597         * tests/unictype/test-categ_of.c: Likewise.
15598         * tests/unictype/test-categ_or.c: Likewise.
15599         * tests/unictype/test-categ_test_withtable.c: Likewise.
15600         * tests/unictype/test-combining.c: Likewise.
15601         * tests/unictype/test-decdigit.c: Likewise.
15602         * tests/unictype/test-digit.c: Likewise.
15603         * tests/unictype/test-mirror.c: Likewise.
15604         * tests/unictype/test-numeric.c: Likewise.
15605         * tests/unictype/test-pr_byname.c: Likewise.
15606         * tests/unictype/test-pr_test.c: Likewise.
15607         * tests/unictype/test-predicate-part1.h: Likewise.
15608         * tests/unictype/test-scripts.c: Likewise.
15609         * tests/unictype/test-sy_c_ident.c: Likewise.
15610         * tests/unictype/test-sy_java_ident.c: Likewise.
15611         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15612         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15613         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15614         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15615         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15616         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15617         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15618         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15619         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15620         * tests/uninorm/test-compat-decomposition.c: Likewise.
15621         * tests/uninorm/test-composition.c: Likewise.
15622         * tests/uninorm/test-decomposing-form.c: Likewise.
15623         * tests/uninorm/test-decomposition.c: Likewise.
15624         * tests/uninorm/test-u8-nfc.c: Likewise.
15625         * tests/uninorm/test-u8-nfd.c: Likewise.
15626         * tests/uninorm/test-u8-nfkc.c: Likewise.
15627         * tests/uninorm/test-u8-nfkd.c: Likewise.
15628         * tests/uninorm/test-u8-normcmp.c: Likewise.
15629         * tests/uninorm/test-u8-normcoll.c: Likewise.
15630         * tests/uninorm/test-u16-nfc.c: Likewise.
15631         * tests/uninorm/test-u16-nfd.c: Likewise.
15632         * tests/uninorm/test-u16-nfkc.c: Likewise.
15633         * tests/uninorm/test-u16-nfkd.c: Likewise.
15634         * tests/uninorm/test-u16-normcmp.c: Likewise.
15635         * tests/uninorm/test-u16-normcoll.c: Likewise.
15636         * tests/uninorm/test-u32-nfc.c: Likewise.
15637         * tests/uninorm/test-u32-nfd.c: Likewise.
15638         * tests/uninorm/test-u32-nfkc.c: Likewise.
15639         * tests/uninorm/test-u32-nfkd.c: Likewise.
15640         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15641         * tests/uninorm/test-u32-normcmp.c: Likewise.
15642         * tests/uninorm/test-u32-normcoll.c: Likewise.
15643         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15644         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15645         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15646         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15647         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15648         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15649         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15650         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15651         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15652         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15653         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15654         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15655         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15656         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15657         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15658         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15659         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15660         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15661         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15662         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15663         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15664         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15665         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15666         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15667         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15668         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15669         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15670         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15671         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15672         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15673         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15674         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15675         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15676         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15677         * tests/uniwidth/test-u8-width.c: Likewise.
15678         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15679         * tests/uniwidth/test-u16-width.c: Likewise.
15680         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15681         * tests/uniwidth/test-u32-width.c: Likewise.
15682         * tests/uniwidth/test-uc_width.c: Likewise.
15683         * tests/uniwidth/test-uc_width2.c: Likewise.
15684         * modules/acl-tests (Files): Add tests/macros.h.
15685         * modules/areadlink-tests (Files): Likewise.
15686         * modules/areadlink-with-size-tests (Files): Likewise.
15687         * modules/areadlinkat-tests (Files): Likewise.
15688         * modules/areadlinkat-with-size-tests (Files): Likewise.
15689         * modules/argmatch-tests (Files): Likewise.
15690         * modules/argv-iter-tests (Files): Likewise.
15691         * modules/array-list-tests (Files): Likewise.
15692         * modules/array-mergesort-tests (Files): Likewise.
15693         * modules/array-oset-tests (Files): Likewise.
15694         * modules/avltree-list-tests (Files): Likewise.
15695         * modules/avltree-oset-tests (Files): Likewise.
15696         * modules/avltreehash-list-tests (Files): Likewise.
15697         * modules/base64-tests (Files): Likewise.
15698         * modules/binary-io-tests (Files): Likewise.
15699         * modules/bitrotate-tests (Files): Likewise.
15700         * modules/btowc-tests (Files): Likewise.
15701         * modules/byteswap-tests (Files): Likewise.
15702         * modules/c-ctype-tests (Files): Likewise.
15703         * modules/c-stack-tests (Files): Likewise.
15704         * modules/c-strcase-tests (Files): Likewise.
15705         * modules/c-strcasestr-tests (Files): Likewise.
15706         * modules/c-strstr-tests (Files): Likewise.
15707         * modules/canonicalize-lgpl-tests (Files): Likewise.
15708         * modules/canonicalize-tests (Files): Likewise.
15709         * modules/carray-list-tests (Files): Likewise.
15710         * modules/ceilf-tests (Files): Likewise.
15711         * modules/ceill-tests (Files): Likewise.
15712         * modules/chown-tests (Files): Likewise.
15713         * modules/cloexec-tests (Files): Likewise.
15714         * modules/copy-file-tests (Files): Likewise.
15715         * modules/count-one-bits-tests (Files): Likewise.
15716         * modules/dprintf-posix-tests (Files): Likewise.
15717         * modules/dup2-tests (Files): Likewise.
15718         * modules/dup3-tests (Files): Likewise.
15719         * modules/duplocale-tests (Files): Likewise.
15720         * modules/fbufmode-tests (Files): Likewise.
15721         * modules/fchdir-tests (Files): Likewise.
15722         * modules/fcntl-safer-tests (Files): Likewise.
15723         * modules/fcntl-tests (Files): Likewise.
15724         * modules/fdopendir-tests (Files): Likewise.
15725         * modules/fdutimensat-tests (Files): Likewise.
15726         * modules/fflush-tests (Files): Likewise.
15727         * modules/filevercmp-tests (Files): Likewise.
15728         * modules/flock-tests (Files): Likewise.
15729         * modules/floorf-tests (Files): Likewise.
15730         * modules/floorl-tests (Files): Likewise.
15731         * modules/fnmatch-tests (Files): Likewise.
15732         * modules/fopen-safer-tests (Files): Likewise.
15733         * modules/fopen-tests (Files): Likewise.
15734         * modules/fpending-tests (Files): Likewise.
15735         * modules/fprintf-posix-tests (Files): Likewise.
15736         * modules/fpurge-tests (Files): Likewise.
15737         * modules/freadable-tests (Files): Likewise.
15738         * modules/freadahead-tests (Files): Likewise.
15739         * modules/freading-tests (Files): Likewise.
15740         * modules/freadptr-tests (Files): Likewise.
15741         * modules/freadseek-tests (Files): Likewise.
15742         * modules/freopen-tests (Files): Likewise.
15743         * modules/frexp-nolibm-tests (Files): Likewise.
15744         * modules/frexp-tests (Files): Likewise.
15745         * modules/frexpl-nolibm-tests (Files): Likewise.
15746         * modules/frexpl-tests (Files): Likewise.
15747         * modules/fseek-tests (Files): Likewise.
15748         * modules/fseeko-tests (Files): Likewise.
15749         * modules/fstrcmp-tests (Files): Likewise.
15750         * modules/fsync-tests (Files): Likewise.
15751         * modules/ftell-tests (Files): Likewise.
15752         * modules/ftello-tests (Files): Likewise.
15753         * modules/func-tests (Files): Likewise.
15754         * modules/futimens-tests (Files): Likewise.
15755         * modules/fwritable-tests (Files): Likewise.
15756         * modules/fwriting-tests (Files): Likewise.
15757         * modules/getcwd-tests (Files): Likewise.
15758         * modules/getdate-tests (Files): Likewise.
15759         * modules/getdelim-tests (Files): Likewise.
15760         * modules/getdtablesize-tests (Files): Likewise.
15761         * modules/getgroups-tests (Files): Likewise.
15762         * modules/getline-tests (Files): Likewise.
15763         * modules/getndelim2-tests (Files): Likewise.
15764         * modules/glob-tests (Files): Likewise.
15765         * modules/hash-tests (Files): Likewise.
15766         * modules/i-ring-tests (Files): Likewise.
15767         * modules/iconv-tests (Files): Likewise.
15768         * modules/iconv_open-utf-tests (Files): Likewise.
15769         * modules/idpriv-drop-tests (Files): Likewise.
15770         * modules/idpriv-droptemp-tests (Files): Likewise.
15771         * modules/inet_ntop-tests (Files): Likewise.
15772         * modules/inet_pton-tests (Files): Likewise.
15773         * modules/isblank-tests (Files): Likewise.
15774         * modules/isfinite-tests (Files): Likewise.
15775         * modules/isinf-tests (Files): Likewise.
15776         * modules/isnan-tests (Files): Likewise.
15777         * modules/isnand-nolibm-tests (Files): Likewise.
15778         * modules/isnand-tests (Files): Likewise.
15779         * modules/isnanf-nolibm-tests (Files): Likewise.
15780         * modules/isnanf-tests (Files): Likewise.
15781         * modules/isnanl-nolibm-tests (Files): Likewise.
15782         * modules/isnanl-tests (Files): Likewise.
15783         * modules/lchown-tests (Files): Likewise.
15784         * modules/ldexpl-tests (Files): Likewise.
15785         * modules/link-tests (Files): Likewise.
15786         * modules/linkat-tests (Files): Likewise.
15787         * modules/linked-list-tests (Files): Likewise.
15788         * modules/linkedhash-list-tests (Files): Likewise.
15789         * modules/localename-tests (Files): Likewise.
15790         * modules/lseek-tests (Files): Likewise.
15791         * modules/lstat-tests (Files): Likewise.
15792         * modules/mbmemcasecmp-tests (Files): Likewise.
15793         * modules/mbmemcasecoll-tests (Files): Likewise.
15794         * modules/mbrtowc-tests (Files): Likewise.
15795         * modules/mbscasecmp-tests (Files): Likewise.
15796         * modules/mbscasestr-tests (Files): Likewise.
15797         * modules/mbschr-tests (Files): Likewise.
15798         * modules/mbscspn-tests (Files): Likewise.
15799         * modules/mbsinit-tests (Files): Likewise.
15800         * modules/mbsncasecmp-tests (Files): Likewise.
15801         * modules/mbsnrtowcs-tests (Files): Likewise.
15802         * modules/mbspbrk-tests (Files): Likewise.
15803         * modules/mbspcasecmp-tests (Files): Likewise.
15804         * modules/mbsrchr-tests (Files): Likewise.
15805         * modules/mbsrtowcs-tests (Files): Likewise.
15806         * modules/mbsspn-tests (Files): Likewise.
15807         * modules/mbsstr-tests (Files): Likewise.
15808         * modules/memchr-tests (Files): Likewise.
15809         * modules/memchr2-tests (Files): Likewise.
15810         * modules/memcmp-tests (Files): Likewise.
15811         * modules/memmem-tests (Files): Likewise.
15812         * modules/memrchr-tests (Files): Likewise.
15813         * modules/mkdir-tests (Files): Likewise.
15814         * modules/mkfifo-tests (Files): Likewise.
15815         * modules/mkfifoat-tests (Files): Likewise.
15816         * modules/mknod-tests (Files): Likewise.
15817         * modules/nanosleep-tests (Files): Likewise.
15818         * modules/nl_langinfo-tests (Files): Likewise.
15819         * modules/obstack-printf-tests (Files): Likewise.
15820         * modules/open-tests (Files): Likewise.
15821         * modules/openat-tests (Files): Likewise.
15822         * modules/pipe-filter-gi-tests (Files): Likewise.
15823         * modules/pipe-filter-ii-tests (Files): Likewise.
15824         * modules/pipe2-tests (Files): Likewise.
15825         * modules/popen-safer-tests (Files): Likewise.
15826         * modules/popen-tests (Files): Likewise.
15827         * modules/posixtm-tests (Files): Likewise.
15828         * modules/pread-tests (Files): Likewise.
15829         * modules/printf-frexp-tests (Files): Likewise.
15830         * modules/printf-frexpl-tests (Files): Likewise.
15831         * modules/printf-posix-tests (Files): Likewise.
15832         * modules/priv-set-tests (Files): Likewise.
15833         * modules/quotearg-tests (Files): Likewise.
15834         * modules/random_r-tests (Files): Likewise.
15835         * modules/rawmemchr-tests (Files): Likewise.
15836         * modules/rbtree-list-tests (Files): Likewise.
15837         * modules/rbtree-oset-tests (Files): Likewise.
15838         * modules/rbtreehash-list-tests (Files): Likewise.
15839         * modules/readlink-tests (Files): Likewise.
15840         * modules/remove-tests (Files): Likewise.
15841         * modules/rename-tests (Files): Likewise.
15842         * modules/renameat-tests (Files): Likewise.
15843         * modules/rmdir-tests (Files): Likewise.
15844         * modules/round-tests (Files): Likewise.
15845         * modules/roundf-tests (Files): Likewise.
15846         * modules/roundl-tests (Files): Likewise.
15847         * modules/safe-alloc-tests (Files): Likewise.
15848         * modules/setenv-tests (Files): Likewise.
15849         * modules/sigaction-tests (Files): Likewise.
15850         * modules/signbit-tests (Files): Likewise.
15851         * modules/sleep-tests (Files): Likewise.
15852         * modules/snprintf-posix-tests (Files): Likewise.
15853         * modules/snprintf-tests (Files): Likewise.
15854         * modules/sprintf-posix-tests (Files): Likewise.
15855         * modules/stat-tests (Files): Likewise.
15856         * modules/stat-time-tests (Files): Likewise.
15857         * modules/strcasestr-tests (Files): Likewise.
15858         * modules/strchrnul-tests (Files): Likewise.
15859         * modules/strerror-tests (Files): Likewise.
15860         * modules/striconv-tests (Files): Likewise.
15861         * modules/striconveh-tests (Files): Likewise.
15862         * modules/striconveha-tests (Files): Likewise.
15863         * modules/strsignal-tests (Files): Likewise.
15864         * modules/strstr-tests (Files): Likewise.
15865         * modules/strtod-tests (Files): Likewise.
15866         * modules/strverscmp-tests (Files): Likewise.
15867         * modules/symlink-tests (Files): Likewise.
15868         * modules/symlinkat-tests (Files): Likewise.
15869         * modules/trunc-tests (Files): Likewise.
15870         * modules/truncf-tests (Files): Likewise.
15871         * modules/truncl-tests (Files): Likewise.
15872         * modules/uname-tests (Files): Likewise.
15873         * modules/unicase/cased-tests (Files): Likewise.
15874         * modules/unicase/ignorable-tests (Files): Likewise.
15875         * modules/unicase/locale-language-tests (Files): Likewise.
15876         * modules/unicase/tolower-tests (Files): Likewise.
15877         * modules/unicase/totitle-tests (Files): Likewise.
15878         * modules/unicase/toupper-tests (Files): Likewise.
15879         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15880         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15881         * modules/unicase/u8-casefold-tests (Files): Likewise.
15882         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15883         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15884         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15885         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15886         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15887         * modules/unicase/u8-tolower-tests (Files): Likewise.
15888         * modules/unicase/u8-totitle-tests (Files): Likewise.
15889         * modules/unicase/u8-toupper-tests (Files): Likewise.
15890         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15891         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15892         * modules/unicase/u16-casefold-tests (Files): Likewise.
15893         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15894         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15895         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15896         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15897         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15898         * modules/unicase/u16-tolower-tests (Files): Likewise.
15899         * modules/unicase/u16-totitle-tests (Files): Likewise.
15900         * modules/unicase/u16-toupper-tests (Files): Likewise.
15901         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15902         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15903         * modules/unicase/u32-casefold-tests (Files): Likewise.
15904         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15905         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15906         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15907         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15908         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15909         * modules/unicase/u32-tolower-tests (Files): Likewise.
15910         * modules/unicase/u32-totitle-tests (Files): Likewise.
15911         * modules/unicase/u32-toupper-tests (Files): Likewise.
15912         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15913         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15914         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15915         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15916         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15917         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15918         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15919         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15920         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15921         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15922         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15923         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15924         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15925         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15926         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15927         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15928         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15929         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15930         * modules/unictype/block-list-tests (Files): Likewise.
15931         * modules/unictype/block-of-tests (Files): Likewise.
15932         * modules/unictype/block-test-tests (Files): Likewise.
15933         * modules/unictype/category-C-tests (Files): Likewise.
15934         * modules/unictype/category-Cc-tests (Files): Likewise.
15935         * modules/unictype/category-Cf-tests (Files): Likewise.
15936         * modules/unictype/category-Cn-tests (Files): Likewise.
15937         * modules/unictype/category-Co-tests (Files): Likewise.
15938         * modules/unictype/category-Cs-tests (Files): Likewise.
15939         * modules/unictype/category-L-tests (Files): Likewise.
15940         * modules/unictype/category-Ll-tests (Files): Likewise.
15941         * modules/unictype/category-Lm-tests (Files): Likewise.
15942         * modules/unictype/category-Lo-tests (Files): Likewise.
15943         * modules/unictype/category-Lt-tests (Files): Likewise.
15944         * modules/unictype/category-Lu-tests (Files): Likewise.
15945         * modules/unictype/category-M-tests (Files): Likewise.
15946         * modules/unictype/category-Mc-tests (Files): Likewise.
15947         * modules/unictype/category-Me-tests (Files): Likewise.
15948         * modules/unictype/category-Mn-tests (Files): Likewise.
15949         * modules/unictype/category-N-tests (Files): Likewise.
15950         * modules/unictype/category-Nd-tests (Files): Likewise.
15951         * modules/unictype/category-Nl-tests (Files): Likewise.
15952         * modules/unictype/category-No-tests (Files): Likewise.
15953         * modules/unictype/category-P-tests (Files): Likewise.
15954         * modules/unictype/category-Pc-tests (Files): Likewise.
15955         * modules/unictype/category-Pd-tests (Files): Likewise.
15956         * modules/unictype/category-Pe-tests (Files): Likewise.
15957         * modules/unictype/category-Pf-tests (Files): Likewise.
15958         * modules/unictype/category-Pi-tests (Files): Likewise.
15959         * modules/unictype/category-Po-tests (Files): Likewise.
15960         * modules/unictype/category-Ps-tests (Files): Likewise.
15961         * modules/unictype/category-S-tests (Files): Likewise.
15962         * modules/unictype/category-Sc-tests (Files): Likewise.
15963         * modules/unictype/category-Sk-tests (Files): Likewise.
15964         * modules/unictype/category-Sm-tests (Files): Likewise.
15965         * modules/unictype/category-So-tests (Files): Likewise.
15966         * modules/unictype/category-Z-tests (Files): Likewise.
15967         * modules/unictype/category-Zl-tests (Files): Likewise.
15968         * modules/unictype/category-Zp-tests (Files): Likewise.
15969         * modules/unictype/category-Zs-tests (Files): Likewise.
15970         * modules/unictype/category-and-not-tests (Files): Likewise.
15971         * modules/unictype/category-and-tests (Files): Likewise.
15972         * modules/unictype/category-byname-tests (Files): Likewise.
15973         * modules/unictype/category-name-tests (Files): Likewise.
15974         * modules/unictype/category-none-tests (Files): Likewise.
15975         * modules/unictype/category-of-tests (Files): Likewise.
15976         * modules/unictype/category-or-tests (Files): Likewise.
15977         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15978         * modules/unictype/combining-class-tests (Files): Likewise.
15979         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15980         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15981         * modules/unictype/ctype-blank-tests (Files): Likewise.
15982         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15983         * modules/unictype/ctype-digit-tests (Files): Likewise.
15984         * modules/unictype/ctype-graph-tests (Files): Likewise.
15985         * modules/unictype/ctype-lower-tests (Files): Likewise.
15986         * modules/unictype/ctype-print-tests (Files): Likewise.
15987         * modules/unictype/ctype-punct-tests (Files): Likewise.
15988         * modules/unictype/ctype-space-tests (Files): Likewise.
15989         * modules/unictype/ctype-upper-tests (Files): Likewise.
15990         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15991         * modules/unictype/decimal-digit-tests (Files): Likewise.
15992         * modules/unictype/digit-tests (Files): Likewise.
15993         * modules/unictype/mirror-tests (Files): Likewise.
15994         * modules/unictype/numeric-tests (Files): Likewise.
15995         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15996         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15997         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15998         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15999         Likewise.
16000         * modules/unictype/property-bidi-block-separator-tests (Files):
16001         Likewise.
16002         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16003         Likewise.
16004         * modules/unictype/property-bidi-common-separator-tests (Files):
16005         Likewise.
16006         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16007         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16008         Likewise.
16009         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16010         Likewise.
16011         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16012         Likewise.
16013         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16014         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16015         Likewise.
16016         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16017         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16018         Likewise.
16019         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16020         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16021         * modules/unictype/property-bidi-segment-separator-tests (Files):
16022         Likewise.
16023         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16024         * modules/unictype/property-byname-tests (Files): Likewise.
16025         * modules/unictype/property-combining-tests (Files): Likewise.
16026         * modules/unictype/property-composite-tests (Files): Likewise.
16027         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16028         * modules/unictype/property-dash-tests (Files): Likewise.
16029         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16030         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16031         Likewise.
16032         * modules/unictype/property-deprecated-tests (Files): Likewise.
16033         * modules/unictype/property-diacritic-tests (Files): Likewise.
16034         * modules/unictype/property-extender-tests (Files): Likewise.
16035         * modules/unictype/property-format-control-tests (Files): Likewise.
16036         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16037         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16038         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16039         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16040         * modules/unictype/property-hyphen-tests (Files): Likewise.
16041         * modules/unictype/property-id-continue-tests (Files): Likewise.
16042         * modules/unictype/property-id-start-tests (Files): Likewise.
16043         * modules/unictype/property-ideographic-tests (Files): Likewise.
16044         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16045         * modules/unictype/property-ids-trinary-operator-tests (Files):
16046         Likewise.
16047         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16048         * modules/unictype/property-iso-control-tests (Files): Likewise.
16049         * modules/unictype/property-join-control-tests (Files): Likewise.
16050         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16051         * modules/unictype/property-line-separator-tests (Files): Likewise.
16052         * modules/unictype/property-logical-order-exception-tests (Files):
16053         Likewise.
16054         * modules/unictype/property-lowercase-tests (Files): Likewise.
16055         * modules/unictype/property-math-tests (Files): Likewise.
16056         * modules/unictype/property-non-break-tests (Files): Likewise.
16057         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16058         * modules/unictype/property-numeric-tests (Files): Likewise.
16059         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16060         * modules/unictype/property-other-default-ignorable-code-point-tests
16061         (Files): Likewise.
16062         * modules/unictype/property-other-grapheme-extend-tests (Files):
16063         Likewise.
16064         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16065         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16066         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16067         * modules/unictype/property-other-math-tests (Files): Likewise.
16068         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16069         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16070         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16071         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16072         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16073         * modules/unictype/property-private-use-tests (Files): Likewise.
16074         * modules/unictype/property-punctuation-tests (Files): Likewise.
16075         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16076         * modules/unictype/property-radical-tests (Files): Likewise.
16077         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16078         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16079         * modules/unictype/property-space-tests (Files): Likewise.
16080         * modules/unictype/property-terminal-punctuation-tests (Files):
16081         Likewise.
16082         * modules/unictype/property-test-tests (Files): Likewise.
16083         * modules/unictype/property-titlecase-tests (Files): Likewise.
16084         * modules/unictype/property-unassigned-code-value-tests (Files):
16085         Likewise.
16086         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16087         * modules/unictype/property-uppercase-tests (Files): Likewise.
16088         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16089         * modules/unictype/property-white-space-tests (Files): Likewise.
16090         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16091         * modules/unictype/property-xid-start-tests (Files): Likewise.
16092         * modules/unictype/property-zero-width-tests (Files): Likewise.
16093         * modules/unictype/scripts-tests (Files): Likewise.
16094         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16095         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16096         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16097         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16098         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16099         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16100         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16101         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16102         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16103         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16104         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16105         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16106         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16107         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16108         * modules/uninorm/composition-tests (Files): Likewise.
16109         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16110         * modules/uninorm/decomposition-tests (Files): Likewise.
16111         * modules/uninorm/filter-tests (Files): Likewise.
16112         * modules/uninorm/nfc-tests (Files): Likewise.
16113         * modules/uninorm/nfd-tests (Files): Likewise.
16114         * modules/uninorm/nfkc-tests (Files): Likewise.
16115         * modules/uninorm/nfkd-tests (Files): Likewise.
16116         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16117         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16118         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16119         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16120         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16121         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16122         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16123         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16124         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16125         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16126         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16127         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16128         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16129         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16130         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16131         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16132         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16133         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16134         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16135         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16136         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16137         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16138         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16139         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16140         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16141         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16142         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16143         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16144         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16145         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16146         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16147         * modules/uniwidth/u8-width-tests (Files): Likewise.
16148         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16149         * modules/uniwidth/u16-width-tests (Files): Likewise.
16150         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16151         * modules/uniwidth/u32-width-tests (Files): Likewise.
16152         * modules/uniwidth/width-tests (Files): Likewise.
16153         * modules/unlink-tests (Files): Likewise.
16154         * modules/unsetenv-tests (Files): Likewise.
16155         * modules/usleep-tests (Files): Likewise.
16156         * modules/utimens-tests (Files): Likewise.
16157         * modules/utimensat-tests (Files): Likewise.
16158         * modules/vasnprintf-posix-tests (Files): Likewise.
16159         * modules/vasnprintf-tests (Files): Likewise.
16160         * modules/vasprintf-posix-tests (Files): Likewise.
16161         * modules/vasprintf-tests (Files): Likewise.
16162         * modules/vdprintf-posix-tests (Files): Likewise.
16163         * modules/vfprintf-posix-tests (Files): Likewise.
16164         * modules/vprintf-posix-tests (Files): Likewise.
16165         * modules/vsnprintf-posix-tests (Files): Likewise.
16166         * modules/vsnprintf-tests (Files): Likewise.
16167         * modules/vsprintf-posix-tests (Files): Likewise.
16168         * modules/wcrtomb-tests (Files): Likewise.
16169         * modules/wcsnrtombs-tests (Files): Likewise.
16170         * modules/wcsrtombs-tests (Files): Likewise.
16171         * modules/wctype-tests (Files): Likewise.
16172         * modules/wcwidth-tests (Files): Likewise.
16173         * modules/xmemdup0-tests (Files): Likewise.
16174         * modules/xprintf-posix-tests (Files): Likewise.
16175         * modules/xvasprintf-tests (Files): Likewise.
16176
16177 2009-12-24  Eric Blake  <ebb9@byu.net>
16178
16179         test-nanosleep: fix typo
16180         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16181         patch.
16182         Reported by Bruno Haible.
16183
16184 2009-12-24  Bruno Haible  <bruno@clisp.org>
16185
16186         Reduce namespace pollution on glibc systems.
16187         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16188         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16189         systems.
16190         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16191         <getopt.h> on glibc systems.
16192         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16193         systems.
16194         * lib/fcntl.c: Include <unistd.h> here instead.
16195
16196 2009-12-24  Bruno Haible  <bruno@clisp.org>
16197
16198         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16199
16200 2009-12-24  Eric Blake  <ebb9@byu.net>
16201
16202         tests: add signature checks
16203         * tests/signature.h (SIGNATURE_CHECK): New file.
16204         * modules/atexit-tests (Files): Use it.
16205         * modules/btowc-tests (Files): Likewise.
16206         * modules/canonicalize-lgpl-tests (Files): Likewise.
16207         * modules/ceilf-tests (Files): Likewise.
16208         * modules/ceill-tests (Files): Likewise.
16209         * modules/chown-tests (Files): Likewise.
16210         * modules/dprintf-posix-tests (Files): Likewise.
16211         * modules/dup2-tests (Files): Likewise.
16212         * modules/dup3-tests (Files): Likewise.
16213         * modules/duplocale-tests (Files): Likewise.
16214         * modules/fchdir-tests (Files): Likewise.
16215         * modules/fcntl-tests (Files): Likewise.
16216         * modules/fdopendir-tests (Files): Likewise.
16217         * modules/fflush-tests (Files): Likewise.
16218         * modules/flock-tests (Files): Likewise.
16219         * modules/floorf-tests (Files): Likewise.
16220         * modules/floorl-tests (Files): Likewise.
16221         * modules/fnmatch-tests (Files): Likewise.
16222         * modules/fopen-tests (Files): Likewise.
16223         * modules/fprintf-posix-tests (Files): Likewise.
16224         * modules/freopen-tests (Files): Likewise.
16225         * modules/frexp-nolibm-tests (Files): Likewise.
16226         * modules/frexp-tests (Files): Likewise.
16227         * modules/frexpl-nolibm-tests (Files): Likewise.
16228         * modules/frexpl-tests (Files): Likewise.
16229         * modules/fseek-tests (Files): Likewise.
16230         * modules/fseeko-tests (Files): Likewise.
16231         * modules/fsync-tests (Files): Likewise.
16232         * modules/ftell-tests (Files): Likewise.
16233         * modules/ftello-tests (Files): Likewise.
16234         * modules/futimens-tests (Files): Likewise.
16235         * modules/getaddrinfo-tests (Files): Likewise.
16236         * modules/getcwd-tests (Files): Likewise.
16237         * modules/getdelim-tests (Files): Likewise.
16238         * modules/getdtablesize-tests (Files): Likewise.
16239         * modules/getgroups-tests (Files): Likewise.
16240         * modules/gethostname-tests (Files): Likewise.
16241         * modules/getline-tests (Files): Likewise.
16242         * modules/getopt-posix-tests (Files): Likewise.
16243         * modules/gettimeofday-tests (Files): Likewise.
16244         * modules/glob-tests (Files): Likewise.
16245         * modules/iconv-tests (Files): Likewise.
16246         * modules/inet_ntop-tests (Files): Likewise.
16247         * modules/inet_pton-tests (Files): Likewise.
16248         * modules/isblank-tests (Files): Likewise.
16249         * modules/lchown-tests (Files): Likewise.
16250         * modules/ldexpl-tests (Files): Likewise.
16251         * modules/link-tests (Files): Likewise.
16252         * modules/linkat-tests (Files): Likewise.
16253         * modules/lseek-tests (Files): Likewise.
16254         * modules/lstat-tests (Files): Likewise.
16255         * modules/mbrtowc-tests (Files): Likewise.
16256         * modules/mbsinit-tests (Files): Likewise.
16257         * modules/mbsnrtowcs-tests (Files): Likewise.
16258         * modules/mbsrtowcs-tests (Files): Likewise.
16259         * modules/memchr-tests (Files): Likewise.
16260         * modules/memcmp-tests (Files): Likewise.
16261         * modules/memmem-tests (Files): Likewise.
16262         * modules/memrchr-tests (Files): Likewise.
16263         * modules/mkdir-tests (Files): Likewise.
16264         * modules/mkfifo-tests (Files): Likewise.
16265         * modules/mkfifoat-tests (Files): Likewise.
16266         * modules/mknod-tests (Files): Likewise.
16267         * modules/nanosleep-tests (Files): Likewise.
16268         * modules/nl_langinfo-tests (Files): Likewise.
16269         * modules/obstack-printf-tests (Files): Likewise.
16270         * modules/open-tests (Files): Likewise.
16271         * modules/openat-tests (Files): Likewise.
16272         * modules/perror-tests (Files): Likewise.
16273         * modules/pipe2-tests (Files): Likewise.
16274         * modules/poll-tests (Files): Likewise.
16275         * modules/popen-tests (Files): Likewise.
16276         * modules/posix_spawn-tests (Files): Likewise.
16277         * modules/posix_spawnp-tests (Files): Likewise.
16278         * modules/pread-tests (Files): Likewise.
16279         * modules/printf-posix-tests (Files): Likewise.
16280         * modules/pty-tests (Files): Likewise.
16281         * modules/random_r-tests (Files): Likewise.
16282         * modules/rawmemchr-tests (Files): Likewise.
16283         * modules/readlink-tests (Files): Likewise.
16284         * modules/remove-tests (Files): Likewise.
16285         * modules/rename-tests (Files): Likewise.
16286         * modules/renameat-tests (Files): Likewise.
16287         * modules/rmdir-tests (Files): Likewise.
16288         * modules/round-tests (Files): Likewise.
16289         * modules/roundf-tests (Files): Likewise.
16290         * modules/roundl-tests (Files): Likewise.
16291         * modules/select-tests (Files): Likewise.
16292         * modules/setenv-tests (Files): Likewise.
16293         * modules/sigaction-tests (Files): Likewise.
16294         * modules/sleep-tests (Files): Likewise.
16295         * modules/snprintf-posix-tests (Files): Likewise.
16296         * modules/snprintf-tests (Files): Likewise.
16297         * modules/sprintf-posix-tests (Files): Likewise.
16298         * modules/stat-tests (Files): Likewise.
16299         * modules/strcasestr-tests (Files): Likewise.
16300         * modules/strchrnul-tests (Files): Likewise.
16301         * modules/strerror-tests (Files): Likewise.
16302         * modules/strsignal-tests (Files): Likewise.
16303         * modules/strstr-tests (Files): Likewise.
16304         * modules/strtod-tests (Files): Likewise.
16305         * modules/strverscmp-tests (Files): Likewise.
16306         * modules/symlink-tests (Files): Likewise.
16307         * modules/symlinkat-tests (Files): Likewise.
16308         * modules/times-tests (Files): Likewise.
16309         * modules/trunc-tests (Files): Likewise.
16310         * modules/truncf-tests (Files): Likewise.
16311         * modules/truncl-tests (Files): Likewise.
16312         * modules/tsearch-tests (Files): Likewise.
16313         * modules/uname-tests (Files): Likewise.
16314         * modules/unlink-tests (Files): Likewise.
16315         * modules/unsetenv-tests (Files): Likewise.
16316         * modules/usleep-tests (Files): Likewise.
16317         * modules/utimensat-tests (Files): Likewise.
16318         * modules/vasprintf-tests (Files): Likewise.
16319         * modules/vdprintf-posix-tests (Files): Likewise.
16320         * modules/vfprintf-posix-tests (Files): Likewise.
16321         * modules/vprintf-posix-tests (Files): Likewise.
16322         * modules/vsnprintf-posix-tests (Files): Likewise.
16323         * modules/vsnprintf-tests (Files): Likewise.
16324         * modules/vsprintf-posix-tests (Files): Likewise.
16325         * modules/wcrtomb-tests (Files): Likewise.
16326         * modules/wcsnrtombs-tests (Files): Likewise.
16327         * modules/wcsrtombs-tests (Files): Likewise.
16328         * modules/wcwidth-tests (Files): Likewise.
16329         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
16330         * tests/test-isinf.c (isinf): Likewise.
16331         * tests/test-isnan.c (isnan): Likewise.
16332         * tests/test-signbit.c (signbit): Likewise.
16333         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
16334         declaration, either as macro or with correct signature.
16335         (select): Ensure function under test is declared with correct
16336         signature in correct header.
16337         * tests/test-atexit.c (atexit): Likewise.
16338         * tests/test-btowc.c (btowc): Likewise.
16339         * tests/test-canonicalize-lgpl.c (realpath)
16340         (canonicalize_file_name): Likewise.
16341         * tests/test-ceilf1.c (ceilf): Likewise.
16342         * tests/test-ceill.c (ceill): Likewise.
16343         * tests/test-chown.c (chown): Likewise.
16344         * tests/test-dprintf-posix.c (dprintf): Likewise.
16345         * tests/test-dup2.c (dup2): Likewise.
16346         * tests/test-dup3.c (dup3): Likewise.
16347         * tests/test-duplocale.c (duplocale): Likewise.
16348         * tests/test-fchdir.c (fchdir): Likewise.
16349         * tests/test-fchownat.c (fchownat): Likewise.
16350         * tests/test-fcntl.c (fcntl): Likewise.
16351         * tests/test-fdopendir.c (fdopendir): Likewise.
16352         * tests/test-fflush.c (fflush): Likewise.
16353         * tests/test-flock.c (flock): Likewise.
16354         * tests/test-floorf1.c (floorf): Likewise.
16355         * tests/test-floorl.c (floorl): Likewise.
16356         * tests/test-fnmatch.c (fnmatch): Likewise.
16357         * tests/test-fopen.c (fopen): Likewise.
16358         * tests/test-fprintf-posix.c (fprintf): Likewise.
16359         * tests/test-freopen.c (freopen): Likewise.
16360         * tests/test-frexp.c (frexp): Likewise.
16361         * tests/test-frexpl.c (frexpl): Likewise.
16362         * tests/test-fseek.c (fseek): Likewise.
16363         * tests/test-fseeko.c (fseeko): Likewise.
16364         * tests/test-fstatat.c (fstatat): Likewise.
16365         * tests/test-fsync.c (fsync): Likewise.
16366         * tests/test-ftell.c (ftell): Likewise.
16367         * tests/test-ftello.c (ftello): Likewise.
16368         * tests/test-futimens.c (futimens): Likewise.
16369         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16370         (gai_strerror): Likewise.
16371         * tests/test-getcwd.c (getcwd): Likewise.
16372         * tests/test-getdelim.c (getdelim): Likewise.
16373         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16374         * tests/test-getgroups.c (getgroups): Likewise.
16375         * tests/test-gethostname.c (gethostname): Likewise.
16376         * tests/test-getline.c (getline): Likewise.
16377         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16378         Likewise.
16379         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16380         * tests/test-glob.c (glob, globfree): Likewise.
16381         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16382         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16383         * tests/test-inet_pton.c (inet_pton): Likewise.
16384         * tests/test-isblank.c (isblank): Likewise.
16385         * tests/test-lchown.c (lchown): Likewise.
16386         * tests/test-ldexpl.c (ldexpl): Likewise.
16387         * tests/test-link.c (link): Likewise.
16388         * tests/test-linkat.c (linkat): Likewise.
16389         * tests/test-lseek.c (lseek): Likewise.
16390         * tests/test-lstat.c (lstat): Likewise.
16391         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16392         * tests/test-mbsinit.c (mbsinit): Likewise.
16393         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16394         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16395         * tests/test-memchr.c (memchr): Likewise.
16396         * tests/test-memcmp.c (memcmp): Likewise.
16397         * tests/test-memmem.c (memmem): Likewise.
16398         * tests/test-memrchr.c (memrchr): Likewise.
16399         * tests/test-mkdir.c (mkdir): Likewise.
16400         * tests/test-mkdirat.c (mkdirat): Likewise.
16401         * tests/test-mkfifo.c (mkfifo): Likewise.
16402         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16403         * tests/test-mknod.c (mknod): Likewise.
16404         * tests/test-nanosleep.c (nanosleep): Likewise.
16405         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16406         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16407         Likewise.
16408         * tests/test-open.c (open): Likewise.
16409         * tests/test-openat.c (openat): Likewise.
16410         * tests/test-perror.c (perror): Likewise.
16411         * tests/test-pipe2.c (pipe2): Likewise.
16412         * tests/test-poll.c (poll): Likewise.
16413         * tests/test-popen.c (popen, pclose): Likewise.
16414         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16415         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16416         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16417         (posix_spawn_file_actions_destroy)
16418         (posix_spawn_file_actions_addclose)
16419         (posix_spawn_file_actions_addopen)
16420         (posix_spawn_file_actions_adddup2): Likewise.
16421         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16422         * tests/test-pread.c (pread): Likewise.
16423         * tests/test-printf-posix.c (printf): Likewise.
16424         * tests/test-pty.c (openpty, forkpty): Likewise.
16425         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16426         (random_r): Likewise.
16427         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16428         * tests/test-readlink.c (readlink): Likewise.
16429         * tests/test-remove.c (remove): Likewise.
16430         * tests/test-rename.c (rename): Likewise.
16431         * tests/test-renameat.c (renameat): Likewise.
16432         * tests/test-rmdir.c (rmdir): Likewise.
16433         * tests/test-round1.c (round): Likewise.
16434         * tests/test-roundf1.c (roundf): Likewise.
16435         * tests/test-roundl.c (roundl): Likewise.
16436         * tests/test-setenv.c (setenv): Likewise.
16437         * tests/test-sigaction.c (sigaction): Likewise.
16438         * tests/test-sleep.c (sleep): Likewise.
16439         * tests/test-snprintf.c (snprintf): Likewise.
16440         * tests/test-sprintf-posix.c (sprintf): Likewise.
16441         * tests/test-stat.c (stat): Likewise.
16442         * tests/test-stpncpy.c (stpncpy): Likewise.
16443         * tests/test-strcasestr.c (strcasestr): Likewise.
16444         * tests/test-strchrnul.c (strchrnul): Likewise.
16445         * tests/test-strerror.c (strerror): Likewise.
16446         * tests/test-strsignal.c (strsignal): Likewise.
16447         * tests/test-strstr.c (strstr): Likewise.
16448         * tests/test-strtod.c (strtod): Likewise.
16449         * tests/test-strverscmp.c (strverscmp): Likewise.
16450         * tests/test-symlink.c (symlink): Likewise.
16451         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16452         * tests/test-times.c (times): Likewise.
16453         * tests/test-trunc1.c (trunc): Likewise.
16454         * tests/test-truncf1.c (truncf): Likewise.
16455         * tests/test-truncl.c (truncl): Likewise.
16456         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16457         Likewise.
16458         * tests/test-uname.c (uname): Likewise.
16459         * tests/test-unlink.c (unlink): Likewise.
16460         * tests/test-unlinkat.c (unlinkat): Likewise.
16461         * tests/test-unsetenv.c (unsetenv): Likewise.
16462         * tests/test-usleep.c (usleep): Likewise.
16463         * tests/test-utimensat.c (utimensat): Likewise.
16464         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16465         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16466         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16467         * tests/test-vprintf-posix.c (vprintf): Likewise.
16468         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16469         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16470         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16471         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16472         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16473         * tests/test-wcwidth.c (wcwidth): Likewise.
16474
16475         build: pull in conditional headers during GNULIB_POSIXCHECK
16476         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16477         definitions from any conditionally-included headers.
16478         * lib/stdlib.in.h (includes): Likewise.
16479         * lib/unistd.in.h (includes): Likewise.
16480
16481 2009-12-24  Bruno Haible  <bruno@clisp.org>
16482
16483         * tests/test-argv-iter.c: Include header file being tested immediately
16484         after config.h.
16485         * tests/test-base64.c: Likewise.
16486         * tests/test-flock.c: Likewise.
16487         * tests/test-fsync.c: Likewise.
16488         * tests/test-getdate.c: Likewise.
16489         * tests/test-getndelim2.c: Likewise.
16490         * tests/test-isfinite.c: Likewise.
16491         * tests/test-isinf.c: Likewise.
16492         * tests/test-strerror.c: Likewise.
16493         * tests/test-strsignal.c: Likewise.
16494
16495 2009-12-23  Eric Blake  <ebb9@byu.net>
16496
16497         unistd: work around cygwin bug
16498         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16499         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16500         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16501
16502 2009-12-23  Bruno Haible  <bruno@clisp.org>
16503
16504         localename: More tests.
16505         * tests/test-localename.c (SIZEOF): New macro.
16506         (categories): New variable.
16507         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16508         test_locale_name_default): Add test w.r.t. thread locale.
16509         (test_locale_name_thread): New function.
16510         (main): Invoke it.
16511
16512         localename: Make aware of thread locale.
16513         * lib/localename.h (gl_locale_name_thread): New declaration.
16514         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16515         behaviour with respect to thread locale.
16516         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16517         <langinfo.h>, glthread/lock.h.
16518         (SIZE_BITS): New macro.
16519         (string_hash): New function.
16520         (struct hash_node): New type.
16521         (HASH_TABLE_SIZE): New macro.
16522         (struniq_hash_table, struniq_lock): New variables.
16523         (struniq): New function.
16524         (gl_locale_name_thread): New function.
16525         (gl_locale_name): Invoke it.
16526         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16527         * modules/localename (Depends-on): Add lock.
16528         Reported by Mike Gran <spk121@yahoo.com>.
16529
16530 2009-12-23  Eric Blake  <ebb9@byu.net>
16531
16532         va-args: new module
16533         * modules/va-args: New file.
16534         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16535         * MODULES.html.sh (Core language properties): Mention it.
16536
16537         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16538         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16539         named alias for __attribute__((__unused__)).
16540         * lib/chown.c: Update client.
16541         * lib/fchmodat.c: Likewise.
16542         * lib/fts.c: Likewise.
16543         * lib/getdate.y: Likewise.
16544         * lib/getgroups.c: Likewise.
16545         * lib/getopt.c: Likewise.
16546         * lib/getugroups.c: Likewise.
16547         * lib/mkdir.c: Likewise.
16548         * lib/mkfifo.c: Likewise.
16549         * lib/mkfifoat.c: Likewise.
16550         * lib/mknod.c: Likewise.
16551         * lib/mknodat.c: Likewise.
16552         * lib/readlink.c: Likewise.
16553         * lib/se-context.in.h: Likewise.
16554         * lib/se-selinux.in.h: Likewise.
16555         * lib/sockets.c: Likewise.
16556         * lib/symlink.c: Likewise.
16557         * lib/symlinkat.c: Likewise.
16558         * lib/unicodeio.c: Likewise.
16559         * lib/unistr.h: Likewise.
16560         * tests/test-areadlink.c: Likewise.
16561         * tests/test-areadlinkat.c: Likewise.
16562         * tests/test-filenamecat.c: Likewise.
16563         * tests/test-fseeko.c: Likewise.
16564         * tests/test-ftello.c: Likewise.
16565         * tests/test-getdate.c: Likewise.
16566         * tests/test-getgroups.c: Likewise.
16567         * tests/test-gethostname.c: Likewise.
16568         * tests/test-quotearg.c: Likewise.
16569         * tests/test-version-etc.c: Likewise.
16570         * tests/test-xalloc-die.c: Likewise.
16571         * tests/test-xfprintf-posix.c: Likewise.
16572         * tests/test-xprintf-posix.c: Likewise.
16573         * tests/test-xvasprintf.c: Likewise.
16574
16575         tests: avoid compiler warnings
16576         * tests/test-fcntl.c (main): Delete unused parameters.
16577         * tests/test-freopen-safer.c (main): Likewise.
16578         * tests/test-xalloc-die.c (main): Mark unused parameters.
16579         * tests/test-fseeko.c (main): Likewise.
16580         * tests/test-ftello.c (main): Likewise.
16581         * tests/test-nanosleep.c (main): Avoid declaration warning.
16582         * tests/test-sleep.c (main): Likewise.
16583         * tests/test-unsetenv.c (main): Silence warning about string
16584         literal.
16585         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16586
16587 2009-12-23  Bruno Haible  <bruno@clisp.org>
16588
16589         * tests/test-localename.c (test_locale_name): New function, extracted
16590         from main. Also test mixed situations.
16591         (test_locale_name_posix, test_locale_name_environ,
16592         test_locale_name_default): New functions.
16593         (main): Invoke them all.
16594         * modules/localename-tests (configure.ac): Test for newlocale.
16595
16596 2009-12-23  Bruno Haible  <bruno@clisp.org>
16597
16598         unistd: Ensure getcwd gets declared before being overridden.
16599         * lib/unistd.in.h: Conditionally include <io.h>.
16600
16601 2009-12-22  Bruno Haible  <bruno@clisp.org>
16602
16603         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16604         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16605         (gl_WCHAR_H): Invoke it.
16606         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16607         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16608         Reported by Karl Berry <karl@freefriends.org>.
16609
16610 2009-12-22  Eric Blake  <ebb9@byu.net>
16611
16612         math, unistd: avoid redundant includes
16613         * lib/math.in.h (isnan): No need to re-include <math.h>.
16614         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16615
16616         getsubopt: work around cygwin bug
16617         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16618         avoid conflicting with system getsubopt.
16619         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16620         bug.
16621
16622         getopt: synchronize from glibc
16623         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16624         parameter order.  Adjust all callers.
16625         (_getopt_internal_r, main): Adjust quoting in error messages.
16626         Drop considerations for outdated POSIX 1003.2 error message.
16627         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16628         callers.
16629         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16630
16631         test-getopt: test stderr behavior
16632         * modules/getopt-posix-tests (Depends-on): Add dup2.
16633         * tests/test-getopt.c (ASSERT): Avoid stderr.
16634         (main): Move stderr to a temporary file.
16635         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16636         Instead, add parameter to inform caller if output occurred.
16637         (test_getopt): Adjust all existing tests to expect silence, and
16638         add new tests of leading ":".
16639         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16640         glibc shortcomings with leading "-:" or "+:" in optstring.
16641         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16642         Likewise.
16643         * doc/posix-functions/getopt.texi (getopt): Likewise.
16644
16645         test-getopt: enhance test
16646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16647         supports optind=0.
16648         * tests/test-getopt.c (OPTIND_MIN): Move...
16649         * tests/test-getopt.h (OPTIND_MIN): ...here.
16650         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16651         Require that optind=0 works, since modern BSD supports it in
16652         addition to optreset, and since coreutils expects it.
16653         (test_getopt_long_only): New test.
16654         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16655         glibc shortcomings with 'W;', and enforcement of optind=0.
16656         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16657         Likewise.
16658
16659 2009-12-21  Bruno Haible  <bruno@clisp.org>
16660
16661         localename: Improvements for MacOS X and Cygwin.
16662         * lib/localename.h (gl_locale_name_environ): New declaration.
16663         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16664         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16665         (gl_locale_name_posix): Invoke it.
16666         (gl_locale_name_default): Add comments. Use Windows native API also on
16667         Cygwin.
16668
16669 2009-12-21  Bruno Haible  <bruno@clisp.org>
16670
16671         Update list of Win32 locale ids.
16672         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16673         (LANG_SAMI): Renamed from LANG_SAAMI.
16674         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16675         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16676         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16677         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16678         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16679         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16680         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16681         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16682         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16683         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16684         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16685         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16686         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16687         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16688         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16689         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16690         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16691         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16692         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16693         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16694         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16695         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16696         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16697         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16698         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16699         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16700         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16701         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16702         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16703         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16704         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16705         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16706         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16707         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16708         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16709         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16710         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16711         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16712         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16713         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16714         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16715         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16716         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16717         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16718         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16719         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16720         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16721         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16722         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16723         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16724         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16725         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16726         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16727         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16728         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16729         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16730         Add more languages and countries for Sami, Sorbian. Add more countries
16731         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16732         for Pashto. Change country for Syriac, Tswana.
16733
16734 2009-12-21  Eric Blake  <ebb9@byu.net>
16735
16736         test-utimens: avoid spurious failure
16737         * tests/test-chown.h (nap): Factor...
16738         * tests/nap.h: ...into new file.
16739         * tests/test-lchown.h (nap): Avoid duplication.
16740         * tests/test-utimens-common.h (nap): Use shared implementation,
16741         necessary on file systems with 1-second resolution.
16742         * modules/chown-tests (Files): Include new file.
16743         * modules/fdutimensat-tests (Files): Likewise.
16744         * modules/futimens-tests (Files): Likewise.
16745         * modules/lchown-tests (Files): Likewise.
16746         * modules/openat-tests (Files): Likewise.
16747         * modules/utimens-tests (Files): Likewise.
16748         * modules/utimensat-tests (Files): Likewise.
16749
16750 2009-12-19  Eric Blake  <ebb9@byu.net>
16751
16752         futimens, utimensat: work around Linux bug
16753         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16754         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16755         * lib/utimensat.c (rpl_utimensat): Work around it.
16756         * lib/futimens.c (rpl_futimens): Adjust comment.
16757
16758         utimens: work around Linux ctime bug
16759         * lib/utimens.c (detect_ctime_bug): New helper function.
16760         (update_timespec): Differentiate between workaround needed for
16761         this bug vs. what is needed for systems that lack utimensat.
16762         (fdutimens, lutimens): Work around bug.
16763
16764         utimens: check for ctime update
16765         * tests/test-utimens-common.h (check_ctime): Define.
16766         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16767         * tests/test-futimens.h (test_futimens): Likewise.
16768         * tests/test-lutimens.h (test_lutimens): Likewise.
16769         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16770         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16771
16772 2009-12-19  Bruno Haible  <bruno@clisp.org>
16773
16774         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16775         * tests/test-dprintf-posix2.sh: New file.
16776         * tests/test-dprintf-posix2.c: New file.
16777         * modules/dprintf-posix-tests (Files): Add them.
16778         (configure.ac): Check for getrlimit and setrlimit.
16779         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16780
16781 2009-12-19  Bruno Haible  <bruno@clisp.org>
16782
16783         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16784         * tests/test-fprintf-posix3.sh: New file.
16785         * tests/test-fprintf-posix3.c: New file.
16786         * modules/fprintf-posix-tests (Files): Add them.
16787         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16788
16789 2009-12-19  Eric Blake  <ebb9@byu.net>
16790
16791         dirfd: fix prototype
16792         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16793         * lib/dirfd.c (dirfd): Likewise.
16794
16795         canonicalize: reduce memory usage
16796         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16797         allocation to size.
16798         Reported by Solar Designer <solar@openwall.com>.
16799
16800 2009-12-19  Bruno Haible  <bruno@clisp.org>
16801
16802         New module attribute 'Applicability'.
16803         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16804         * gnulib-tool: New option --extract-applicability.
16805         (func_usage): Document it.
16806         (sed_extract_prog): Recognize it.
16807         (func_get_applicability): New function.
16808         (func_import): Generalize handling of 'link-warning' module.
16809         * modules/link-warning (Applicability): New section.
16810         * modules/arg-nonnull (Applicability): New section.
16811         Repoted by Simon Josefsson <simon@josefsson.org>.
16812
16813 2009-12-19  Bruno Haible  <bruno@clisp.org>
16814
16815         fflush: tweak
16816         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16817         * lib/fseeko.c (rpl_fseeko): Likewise.
16818
16819 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16820
16821         * lib/gl_list.h: Fix typo in comment.
16822
16823 2009-12-16  Eric Blake  <ebb9@byu.net>
16824
16825         fcntl: use to simplify other modules
16826         * modules/cloexec (Depends-on): Add fcntl.
16827         * modules/fchdir (Depends-on): Likewise.
16828         * modules/fd-safer-flag (Depends-on): Likewise.
16829         * modules/unistd-safer (Depends-on): Likewise.
16830         * modules/dup3 (configure.ac): Set module indicator.
16831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16832         missing.
16833         * lib/fchdir.c (_gl_register_dup): Fix comment.
16834         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16835         * lib/dup-safer.c (dup_safer): Likewise.
16836         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16837         * lib/dup3.c (dup3): Likewise.
16838         * tests/test-fchdir.c (main): Enhance test.
16839         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
16840
16841         fcntl: port portions of fcntl to mingw
16842         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16843         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16844         replacement for mingw.
16845         * modules/fcntl (Description): Update.
16846         (Depends-on): Add dup2.
16847         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16848         * modules/fcntl-h (Makefile.am): Substitute it.
16849         * lib/fcntl.in.h (fcntl): Update declaration.
16850         (F_DUPFD, F_GETFD): New macros, when needed.
16851         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16852         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16853         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16854         we now guarantee.
16855
16856         fcntl: work around cygwin bug in F_DUPFD
16857         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16858         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16859         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16860         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16861         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16862
16863         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16864         * modules/fcntl (Files): List new files.
16865         (configure.ac): Run a test.
16866         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16867         * lib/fcntl.c (rpl_fcntl): Likewise.
16868         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16869         (gl_FCNTL_H): Always replace fcntl.h.
16870         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16871         * lib/fcntl.in.h (fcntl): Declare replacement.
16872         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16873         needed, plus a witness.
16874         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16875         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16876         * tests/test-fcntl.c: New file.
16877         * modules/fcntl-tests: Likewise.
16878
16879         binary-io: avoid potential compilation warning
16880         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16881         directives.
16882
16883         fflush: avoid compilation error on NetBSD
16884         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16885         between off_t and fpos_t, since the latter is sometimes a struct.
16886         * lib/fseeko.c (rpl_fseeko): Likewise.
16887         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16888
16889 2009-12-15  Eric Blake  <ebb9@byu.net>
16890
16891         fcntl-h, stdio, sys_ioctl: fix declarations
16892         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16893         function must not take arguments.
16894         * lib/sys_ioctl.in.h (ioctl): Likewise.
16895         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16896         (open): Add a link warning.
16897
16898 2009-12-15  Jim Meyering  <meyering@redhat.com>
16899
16900         areadlink, areadlink-with-size: relax license to LGPLv2+
16901         * modules/areadlink (License): Relax to LGPLv2+.
16902         * modules/areadlink-with-size (License): Likewise.
16903
16904 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16905             Bruno Haible  <bruno@clisp.org>
16906
16907         *printf: Fix memory leak.
16908         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16909         * lib/vfprintf.c (vfprintf): Likewise.
16910         * lib/dprintf.c (dprintf): Likewise.
16911         * lib/vdprintf.c (vdprintf): Likewise.
16912
16913 2009-12-14  Eric Blake  <ebb9@byu.net>
16914
16915         accept4: adjust module dependencies
16916         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16917
16918         utimens: one more try at avoiding compiler warning
16919         * lib/utimens.c (lutimens): Lower scope of result.
16920
16921 2009-12-13  Bruno Haible  <bruno@clisp.org>
16922
16923         Move the malloc checking from module 'list' to new module 'xlist'.
16924         * modules/xlist: New file.
16925         * lib/gl_xlist.h: New file.
16926         * lib/gl_xlist.c: New file.
16927         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16928         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16929         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16930         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16931         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16932         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16933         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16934         gl_sortedlist_nx_add): New declarations.
16935         (struct gl_list_implementation): Rename and change methods accordingly.
16936         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16937         (gl_list_nx_create): Renamed from gl_list_create.
16938         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16939         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16940         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16941         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16942         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16943         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16944         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16945         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16946         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16947         gl_list_create_empty.
16948         (gl_list_nx_create): Renamed from gl_list_create.
16949         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16950         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16951         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16952         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16953         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16954         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16955         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16956         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16957         * lib/gl_array_list.c: Don't include xalloc.h.
16958         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16959         NULL upon out-of-memory.
16960         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16961         out-of-memory.
16962         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16963         Change return type to 'int'.
16964         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16965         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16966         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16967         upon out-of-memory.
16968         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16969         upon out-of-memory.
16970         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16971         upon out-of-memory.
16972         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16973         upon out-of-memory.
16974         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16975         out-of-memory.
16976         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16977         Update.
16978         (gl_array_list_implementation): Update.
16979         * lib/gl_carray_list.c: Don't include xalloc.h.
16980         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16981         Return NULL upon out-of-memory.
16982         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16983         out-of-memory.
16984         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16985         Change return type to 'int'.
16986         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16987         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16988         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16989         upon out-of-memory.
16990         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16991         upon out-of-memory.
16992         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16993         out-of-memory.
16994         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16995         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16996         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16997         Update.
16998         (gl_carray_list_implementation): Update.
16999         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17000         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17001         gl_linked_create_empty. Return NULL upon out-of-memory.
17002         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17003         out-of-memory.
17004         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17005         Change return type to 'int'. Return -1 upon out-of-memory.
17006         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17007         out-of-memory.
17008         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17009         upon out-of-memory.
17010         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17011         upon out-of-memory.
17012         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17013         NULL upon out-of-memory.
17014         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17015         upon out-of-memory.
17016         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17017         out-of-memory.
17018         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17019         Update.
17020         * lib/gl_linked_list.c: Don't include xalloc.h.
17021         (gl_linked_list_implementation): Update.
17022         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17023         (add_to_bucket): Change return type to 'int'.
17024         (gl_linkedhash_list_implementation): Update.
17025         * lib/gl_anytree_list1.h (free_subtree): New function.
17026         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17027         gl_tree_create_empty. Return NULL upon out-of-memory.
17028         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17029         Change return type to 'int'. Return -1 upon out-of-memory.
17030         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17031         out-of-memory.
17032         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17033         (gl_tree_remove_node): New function, moved here from
17034         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17035         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17036         Update.
17037         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17038         malloc, not xmalloc. Return NULL upon out-of-memory.
17039         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17040         out-of-memory.
17041         (gl_tree_remove_node_from_tree): New function, extracted from
17042         gl_tree_remove_node.
17043         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17044         upon out-of-memory.
17045         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17046         out-of-memory.
17047         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17048         upon out-of-memory.
17049         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17050         upon out-of-memory.
17051         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17052         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17053         not xmalloc. Return NULL upon out-of-memory.
17054         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17055         out-of-memory.
17056         (gl_tree_remove_node_from_tree): New function, extracted from
17057         gl_tree_remove_node.
17058         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17059         upon out-of-memory.
17060         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17061         out-of-memory.
17062         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17063         upon out-of-memory.
17064         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17065         upon out-of-memory.
17066         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17067         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17068         gl_anytree_list1.h before gl_anyavltree_list2.h.
17069         (gl_avltree_list_implementation): Update.
17070         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17071         gl_anytree_list1.h before gl_anyavltree_list2.h.
17072         (gl_rbtree_list_implementation): Update.
17073         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17074         Change return type to 'int'. Return -1 upon out-of-memory. Use
17075         __builtin_expect.
17076         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17077         (gl_avltreehash_list_implementation): Update.
17078         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17079         (gl_rbtreehash_list_implementation): Update.
17080         * modules/array-list (Depends-on): Remove xalloc.
17081         * modules/carray-list (Depends-on): Likewise.
17082         * modules/linked-list (Depends-on): Likewise.
17083         * modules/linkedhash-list (Depends-on): Likewise.
17084         * modules/avltree-list (Depends-on): Likewise.
17085         * modules/rbtree-list (Depends-on): Likewise.
17086         * modules/avltreehash-list (Depends-on): Likewise.
17087         * modules/rbtreehash-list (Depends-on): Likewise.
17088
17089         * modules/xsublist: New file.
17090         * lib/gl_xsublist.h: New file.
17091         * lib/gl_xsublist.c: New file.
17092         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17093         (gl_sublist_nx_create): New declaration.
17094         * lib/gl_sublist.c: Don't include xalloc.h.
17095         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17096         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17097         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17098         Change return type to 'int'. Return -1 upon out-of-memory.
17099         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17100         upon out-of-memory.
17101         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17102         NULL upon out-of-memory.
17103         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17104         upon out-of-memory.
17105         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17106         NULL upon out-of-memory.
17107         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17108         NULL upon out-of-memory.
17109         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17110         upon out-of-memory.
17111         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17112         (gl_sublist_list_implementation): Update.
17113         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17114         upon out-of-memory.
17115         * modules/sublist (Depends-on): Remove xalloc.
17116
17117         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17118         * tests/test-carray_list.c: Likewise.
17119         * tests/test-linked_list.c: Likewise.
17120         * tests/test-linkedhash_list.c: Likewise.
17121         * tests/test-avltree_list.c: Likewise.
17122         * tests/test-rbtree_list.c: Likewise.
17123         * tests/test-avltreehash_list.c: Likewise.
17124         * tests/test-rbtreehash_list.c: Likewise.
17125         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17126         * modules/carray-list-tests (Makefile.am): Likewise.
17127         * modules/linked-list-tests (Makefile.am): Likewise.
17128         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17129         * modules/avltree-list-tests (Makefile.am): Likewise.
17130         * modules/rbtree-list-tests (Makefile.am): Likewise.
17131         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17132         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17133
17134         * NEWS: Mention the changes.
17135
17136         * lib/clean-temp.c: Include gl_xlist.h.
17137         * modules/clean-temp (Depends-on): Add xlist.
17138
17139         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17140         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17141
17142         * tests/test-array_oset.c: Include gl_xlist.h.
17143         * modules/array-oset-tests (Depends-on): Add xlist.
17144
17145         Reported by José E. Marchesi <jemarch@gnu.org>.
17146
17147 2009-12-13  Bruno Haible  <bruno@clisp.org>
17148
17149         Move the malloc checking from module 'oset' to new module 'xoset'.
17150         * modules/xoset: New file.
17151         * lib/gl_xoset.h: New file.
17152         * lib/gl_xoset.c: New file.
17153         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17154         declarations.
17155         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17156         (struct gl_oset_implementation): Rename and change methods accordingly.
17157         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17158         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17159         'int'. Mark as __warn_unused_result__.
17160         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17161         gl_oset_create_empty.
17162         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17163         'int'.
17164         * lib/gl_array_oset.c: Don't include xalloc.h.
17165         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17166         malloc, not xmalloc.
17167         (grow): Change return type to 'int'. Don't call xalloc_die.
17168         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17169         to 'int'.
17170         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17171         'int'.
17172         (gl_array_oset_implementation): Update.
17173         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17174         gl_tree_create_empty.
17175         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17176         'int'.
17177         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17178         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17179         xmalloc.
17180         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17181         not xmalloc.
17182         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17183         xmalloc.
17184         (gl_avltree_oset_implementation): Update.
17185         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17186         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17187         xmalloc.
17188         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17189         not xmalloc.
17190         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17191         xmalloc.
17192         (gl_rbtree_oset_implementation): Update.
17193         * modules/array-oset (Depends-on): Remove xalloc.
17194         * modules/avltree-oset (Depends-on): Likewise.
17195         * modules/rbtree-oset (Depends-on): Likewise.
17196         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17197         * tests/test-avltree_oset.c: Likewise.
17198         * tests/test-rbtree_oset.c: Likewise.
17199         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17200         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17201         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17202         * NEWS: Mention the change.
17203
17204 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17205
17206         maint.mk: allow a project to override release-prep commands
17207         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17208         commands into a new rule.
17209         (release-prep): New rule.
17210         (release-prep-hook): New overridable variable.
17211
17212 2009-12-13  Bruno Haible  <bruno@clisp.org>
17213
17214         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17215
17216 2009-12-13  Jim Meyering  <meyering@redhat.com>
17217
17218         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17219         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17220
17221 2009-12-12  Bruno Haible  <bruno@clisp.org>
17222
17223         duplocale: Tweak.
17224         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17225
17226 2009-12-12  Karl Berry  <karl@gnu.org>
17227
17228         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17229
17230 2009-12-12  Bruno Haible  <bruno@clisp.org>
17231
17232         * m4/po.m4: Undo incorrect untabification.
17233
17234 2009-12-12  Bruno Haible  <bruno@clisp.org>
17235
17236         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17237         * modules/c-strtod (Depends-on): Add locale.
17238         * modules/c-strtold (Depends-on): Likewise.
17239
17240 2009-12-12  Bruno Haible  <bruno@clisp.org>
17241
17242         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17243
17244 2009-12-11  Eric Blake  <ebb9@byu.net>
17245
17246         setenv: relax requirement in light of POSIX ruling
17247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17248         not NULL.
17249         * tests/test-setenv.c (main): Relax test.
17250         * tests/test-unsetenv.c (main): Likewise.
17251         * doc/posix-functions/setenv.texi (setenv): Document this.
17252         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17253
17254 2009-12-11  Bruno Haible  <bruno@clisp.org>
17255
17256         New module 'fd-safer-flag'.
17257         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17258         * lib/dup-safer.c (dup_safer_flag): Remove function.
17259         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17260         * lib/fd-safer.c (fd_safer_flag): Remove function.
17261         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17262         * modules/cloexec (configure.ac): Drop indicator macro.
17263         * modules/fd-safer-flag: New file.
17264         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17265         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17266         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17267
17268 2009-12-11  Bruno Haible  <bruno@clisp.org>
17269
17270         Tests for module 'nl_langinfo'.
17271         * modules/nl_langinfo-tests: New file.
17272         * tests/test-nl_langinfo.sh: New file.
17273         * tests/test-nl_langinfo.c: New file.
17274
17275         New module 'nl_langinfo'.
17276         * lib/nl_langinfo.c: New file.
17277         * m4/nl_langinfo.m4: New file.
17278         * modules/nl_langinfo: New file.
17279         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17280
17281 2009-12-11  Bruno Haible  <bruno@clisp.org>
17282
17283         Tests for module 'langinfo'.
17284         * modules/langinfo-tests: New file.
17285         * tests/test-langinfo.c: New file.
17286
17287         New module 'langinfo'.
17288         * lib/langinfo.in.h: New file.
17289         * m4/langinfo_h.m4: New file.
17290         * modules/langinfo: New file.
17291         * doc/posix-headers/langinfo.texi: Mention the new module.
17292
17293 2009-12-11  Bruno Haible  <bruno@clisp.org>
17294
17295         * lib/config.charset: Untabify.
17296
17297 2009-12-11  Bruno Haible  <bruno@clisp.org>
17298
17299         * modules/unistd-safer (configure.ac): Drop indicator macro.
17300
17301 2009-12-11  Bruno Haible  <bruno@clisp.org>
17302
17303         Move pipe2-safer code to its own file.
17304         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
17305         * lib/pipe-safer.c (pipe2_safer): Remove function.
17306         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
17307         (Makefile.am): Add it to lib_SOURCES.
17308
17309 2009-12-10  Bruno Haible  <bruno@clisp.org>
17310
17311         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
17312
17313 2009-12-10  Bruno Haible  <bruno@clisp.org>
17314
17315         Declare which arguments expect non-NULL values, for GCC and clang.
17316         * build-aux/arg-nonnull.h: New file.
17317         * modules/arg-nonnull: New file.
17318         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
17319         (inet_ntop, inet_pton): Use it.
17320         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
17321         (closedir, dirfd, opendir, scandir, alphasort): Use it.
17322         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
17323         (open, openat): Use it.
17324         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
17325         (fnmatch): Use it.
17326         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
17327         (getopt, getopt_long, getopt_long_only): Use it.
17328         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
17329         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
17330         Use it.
17331         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
17332         (iconv_open): Use it.
17333         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
17334         (strtoimax, strtoumax): Use it.
17335         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17336         (duplocale): Use it.
17337         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17338         (frexp, frexpl): Use it.
17339         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17340         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17341         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17342         (tsearch, tfind, tdelete, twalk): Use it.
17343         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17344         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17345         sigpending): Use it.
17346         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17347         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17348         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17349         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17350         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17351         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17352         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17353         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17354         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17355         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17356         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17357         Use it.
17358         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17359         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17360         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17361         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17362         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17363         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17364         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17365         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17366         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17367         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17368         strtoull, unsetenv): Use it.
17369         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17370         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17371         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17372         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17373         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17374         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17375         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17376         (strcasecmp, strncasecmp): Use it.
17377         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17378         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17379         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17380         rpl_setsockopt): Use it.
17381         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17382         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17383         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17384         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17385         (gettimeofday): Use it.
17386         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17387         (times): Use it.
17388         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17389         (uname): Use it.
17390         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17391         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17392         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17393         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17394         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17395         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17396         unlinkat, write): Use it.
17397         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17398         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17399         * lib/argv-iter.h: Include arg-nonnull.h.
17400         (_ATTRIBUTE_NONNULL_): Remove macro.
17401         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17402         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17403         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17404         optimization.
17405         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17406         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17407         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17408         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17409         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17410         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17411         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17412         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17413         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17414         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17415         * modules/dirent (Depends-on): Add arg-nonnull.
17416         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17417         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17418         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17419         * modules/fnmatch (Depends-on): Add arg-nonnull.
17420         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17421         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17422         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17423         * modules/glob (Depends-on): Add arg-nonnull.
17424         (Makefile.am): Insert arg-nonnull.h into glob.h.
17425         * modules/iconv_open (Depends-on): Add arg-nonnull.
17426         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17427         * modules/inttypes (Depends-on): Add arg-nonnull.
17428         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17429         * modules/locale (Depends-on): Add arg-nonnull.
17430         (Makefile.am): Insert arg-nonnull.h into locale.h.
17431         * modules/math (Depends-on): Add arg-nonnull.
17432         (Makefile.am): Insert arg-nonnull.h into math.h.
17433         * modules/netdb (Depends-on): Add arg-nonnull.
17434         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17435         * modules/search (Depends-on): Add arg-nonnull.
17436         (Makefile.am): Insert arg-nonnull.h into search.h.
17437         * modules/signal (Depends-on): Add arg-nonnull.
17438         (Makefile.am): Insert arg-nonnull.h into signal.h.
17439         * modules/spawn (Depends-on): Add arg-nonnull.
17440         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17441         * modules/stdio (Depends-on): Add arg-nonnull.
17442         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17443         * modules/stdlib (Depends-on): Add arg-nonnull.
17444         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17445         * modules/string (Depends-on): Add arg-nonnull.
17446         (Makefile.am): Insert arg-nonnull.h into string.h.
17447         * modules/strings (Depends-on): Add arg-nonnull.
17448         (Makefile.am): Insert arg-nonnull.h into strings.h.
17449         * modules/sys_socket (Depends-on): Add arg-nonnull.
17450         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17451         * modules/sys_stat (Depends-on): Add arg-nonnull.
17452         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17453         * modules/sys_time (Depends-on): Add arg-nonnull.
17454         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17455         * modules/sys_times (Depends-on): Add arg-nonnull.
17456         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17457         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17458         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17459         * modules/time (Depends-on): Add arg-nonnull.
17460         (Makefile.am): Insert arg-nonnull.h into time.h.
17461         * modules/unistd (Depends-on): Add arg-nonnull.
17462         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17463         * modules/wchar (Depends-on): Add arg-nonnull.
17464         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17465         * modules/argv-iter (Depends-on): Add arg-nonnull.
17466         * tests/test-canonicalize.c (null_ptr): New function.
17467         (main): Use it.
17468         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17469         (main): Use it.
17470         * tests/test-memmem.c (null_ptr): New function.
17471         (main): Use it.
17472         Reported by Jim Meyering.
17473
17474 2009-12-10  Bruno Haible  <bruno@clisp.org>
17475
17476         Use spaces for indentation, not tabs.
17477         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17478         * m4/*.m4: Untabify.
17479         * build-aux/*.h: Untabify.
17480         * tests/**/*.[hc]: Untabify.
17481         * README: New section "Indent with spaces, not TABs", based on
17482         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17483         * NEWS: Mention the change.
17484
17485 2009-12-10  Bruno Haible  <bruno@clisp.org>
17486
17487         pty test: Fix link error.
17488         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17489         test_pty_LDADD.
17490
17491 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17492
17493         * modules/pty: New file.
17494         * modules/pty-tests: New file.
17495         * m4/pty.m4: New file.
17496         * tests/test-pty.c: New file.
17497         * doc/glibc-headers/pty.texi: Modified.
17498         * doc/glibc-functions/forkpty.texi: Modified.
17499         * doc/glibc-functions/openpty.texi: Modified.
17500
17501 2009-12-10  Bruno Haible  <bruno@clisp.org>
17502
17503         Avoid syntax error in C++ mode.
17504         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17505
17506 2009-12-10  Bruno Haible  <bruno@clisp.org>
17507
17508         Use sed with option -e.
17509         * gnulib-tool (func_version, func_emit_copyright_notice,
17510         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17511         option -e to sed.
17512         * modules/link-warning (Makefile.am): Likewise.
17513
17514 2009-12-10  Jim Meyering  <meyering@redhat.com>
17515
17516         mgetgroups: do not write bytes beyond end of malloc'd buffer
17517         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17518         username, we call getgroups with a one-element-shorter buffer,
17519         but still told it the length was original, max_n_groups.
17520
17521 2009-12-09  Eric Blake  <ebb9@byu.net>
17522
17523         cloexec: relax license
17524         * modules/cloexec (Maintainer): Add myself.
17525         (License): Use LGPL, not GPL.
17526
17527         link-warning: optimize generation
17528         * modules/link-warning (Makefile.am): Reduce process usage.
17529
17530 2009-12-09  Bruno Haible  <bruno@clisp.org>
17531
17532         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17533         workaround was added on 2009-11-17.
17534
17535 2009-12-09  Jim Meyering  <meyering@redhat.com>
17536             Bruno Haible  <bruno@clisp.org>
17537
17538         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17539         * modules/link-warning (Makefile.am): Make the comment-removing sed
17540         command more robust in the face of bootstrap-prepended comment lines.
17541
17542 2009-12-09  Bruno Haible  <bruno@clisp.org>
17543
17544         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17545         most one group.
17546
17547 2009-12-09  Simon Josefsson <simon@josefsson.org>
17548             Bruno Haible  <bruno@clisp.org>
17549
17550         * build-aux/link-warning.h: Add copyright notice.
17551         * modules/link-warning (Makefile.am): Generate link-warning.h from
17552         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17553         * NEWS: Mention change in link-warning module.
17554         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17555         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17556         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17557         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17558         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17559         * modules/math (Makefile.am): Add dependency to math.h.
17560         * modules/search (Makefile.am): Add dependency to search.h.
17561         * modules/signal (Makefile.am): Add dependency to signal.h.
17562         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17563         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17564         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17565         * modules/string (Makefile.am): Add dependency to string.h.
17566         * modules/strings (Makefile.am): Add dependency to strings.h.
17567         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17568         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17569         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17570         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17571         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17572         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17573         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17574         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17575         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17576
17577 2009-12-09  Bruno Haible  <bruno@clisp.org>
17578
17579         fchdir: Optimize away rpl_fstat when possible.
17580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17581         REPLACE_OPEN_DIRECTORY.
17582         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17583
17584 2009-12-09  Bruno Haible  <bruno@clisp.org>
17585
17586         * lib/fchdir.c: Update comment.
17587
17588 2009-12-09  Bruno Haible  <bruno@clisp.org>
17589
17590         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17591
17592 2009-12-08  Eric Blake  <ebb9@byu.net>
17593
17594         fchdir: avoid memory leak on re-registration.
17595         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17596
17597 2009-12-08  Jim Meyering  <meyering@redhat.com>
17598
17599         init.sh: avoid Solaris 10 /bin/sh portability problem
17600         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17601         sourced script:
17602           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17603           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17604           bar
17605         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17606         and two tests used that idiom.
17607         * tests/init.sh: Update suggested usage comments.
17608         (path_prepend_): New function, to be used in place
17609         of the --src-path=DIR option.
17610         (setup_): Move PATH-prepending code into path_prepend_.
17611         * tests/test-pread.sh: Adapt to new usage.
17612         * tests/test-xalloc-die.sh: Likewise.
17613
17614 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17615
17616         * doc/gnulib.texi (Glibc pty.h): Add.
17617         * doc/glibc-functions/forkpty.texi: Add.
17618         * doc/glibc-functions/openpty.texi: Add.
17619         Suggested by Bruno Haible.
17620
17621 2009-12-08  Eric Blake  <ebb9@byu.net>
17622
17623         fchdir: fix logic bugs
17624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17625         * tests/test-fchdir.c (main): Enhance test.
17626         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17627         is in use.
17628
17629         dup2: fix logic bugs
17630         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17631         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17632         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17633         exists.
17634         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17635
17636 2009-12-07  Eric Blake  <ebb9@byu.net>
17637
17638         unlink: fix m4 detection
17639         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17640
17641         unistd-safer: add unit test
17642         * modules/unistd-safer-tests: New file.
17643         * tests/test-dup-safer.c: Likewise.
17644         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17645         * tests/test-dup2.c (setmode): Likewise.
17646         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17647
17648         cloexec: preserve text vs. binary across dup_cloexec
17649         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17650         mode.
17651         * modules/dup2-tests (Depends-on): Add binary-io.
17652         * modules/cloexec-tests (Depends-on): Likewise.
17653         * tests/test-dup2.c (setmode, is_mode): New helpers.
17654         (main): Add tests that translation mode is preserved.
17655         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17656         Reported by Bruno Haible.
17657
17658         mgetgroups: reduce duplicate listings
17659         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17660         resulting array.
17661         * tests/test-chown.h (test_chown): Simplify client.
17662         * tests/test-lchown.h (test_lchown): Likewise.
17663
17664 2009-12-06  Bruno Haible  <bruno@clisp.org>
17665
17666         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17667         value.
17668
17669 2009-12-06  Bruno Haible  <bruno@clisp.org>
17670
17671         * lib/progname.c: Include stdio.h, stdlib.h.
17672         (set_program_name): Reject a NULL argument.
17673
17674 2009-12-05  Eric Blake  <ebb9@byu.net>
17675
17676         pipe2-safer: new module
17677         * modules/pipe2-safer: New file.
17678         * lib/unistd-safer.h (pipe2_safer): New prototype.
17679         * lib/unistd--.h (pipe2): New wrapper.
17680         * lib/pipe-safer.c (pipe2_safer): New function.
17681         * modules/pipe (Depends-on): Add pipe2-safer.
17682         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17683
17684         stdlib-safer: preserve cloexec flag for mkostemp[s]
17685         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17686         fd_safer_flag.
17687
17688         unistd-safer: allow preservation of cloexec status via flag
17689         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17690         prototypes.
17691         * lib/dup-safer.c (dup_safer_flag): New function.
17692         * lib/fd-safer.c (fd_safer_flag): Likewise.
17693         * modules/cloexec (configure.ac): Set witness.
17694
17695         test-dup2: enhance test
17696         * modules/dup2-tests (Depends-on): Add cloexec.
17697         * tests/test-dup2.c (main): Enhance test.
17698
17699         cloexec: add dup_cloexec
17700         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17701         header and comments.
17702         * lib/cloexec.c (set_cloexec_flag): Add comments.
17703         (dup_cloexec): New function, with mingw implementation borrowed
17704         from...
17705         * lib/w32spawn.h (dup_noinherit): ...here.
17706         * modules/execute (Depends-on): Add cloexec.
17707         * modules/pipe (Depends-on): Likewise.
17708         * modules/cloexec (Depends-on): Add dup2.
17709         * modules/cloexec-tests (Files): New file.
17710         * tests/test-cloexec.c: Likewise.
17711
17712         test-xalloc-die: fix test for mingw
17713         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17714         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17715         directory and .exe suffix off argv[0] output.
17716
17717         test-fseeko: fix test for mingw
17718         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17719         than undefining fseek, so test will pass on mingw.
17720
17721 2009-12-05  Bruno Haible  <bruno@clisp.org>
17722
17723         * lib/progname.h (set_program_name): Clarify specification.
17724         * lib/progname.c (set_program_name): Likewise.
17725         Reported by Jim Meyering.
17726
17727 2009-12-05  Jim Meyering  <meyering@redhat.com>
17728
17729         maint.mk: backslash-escape parens in default regexp
17730         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17731         backslash-escape the literal parentheses.
17732
17733         maint.mk: news-date-check: use grep -E
17734         * top/maint.mk (today): Define a Make variable, not a...
17735         (news-date-check): ...shell variable.
17736         (news-date-regexp): Use the Make variable.
17737         Use grep's -E option.  Change the failing diagnostic to mention
17738         the variable, $(news-date-regexp).
17739
17740 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17741
17742         maintainer-makefile: allow customization of NEWS entry format
17743         * top/maint.mk (news-date-regexp): New overridable variable.
17744         (news-date-check): Use it.
17745
17746 2009-12-04  Eric Blake  <ebb9@byu.net>
17747
17748         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17749         * lib/mgetgroups.h (xgetgroups): New prototype.
17750         * lib/mgetgroups.c (xgetgroups): New wrapper.
17751         (mgetgroups): Handle ENOSYS.
17752         * modules/mgetgroups (Depends-on): Add realloc.
17753         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17754
17755         mgetgroups: avoid argument promotion issues with -1
17756         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17757         for invalid gid_t.
17758         * tests/test-chown.h (getegid, test_chown): Likewise.
17759         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17760
17761 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17762
17763         exclude: Fix header file problems.
17764         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17765
17766 2009-12-01  Jim Meyering  <meyering@redhat.com>
17767
17768         fts: fts_open: do not let an empty string cause immediate failure
17769         This is required in support of GNU rm, for which the command
17770         "rm A '' B" must process and remove both A and B, in spite of
17771         the empty string argument.
17772         * lib/fts.c (fts_open): Do not let the presence of an empty string
17773         cause fts_open to fail immediately.  Most fts-using tools must be
17774         able to process all arguments, in order, and can be expected to
17775         diagnose such arguments themselves.
17776
17777 2009-11-30  Eric Blake  <ebb9@byu.net>
17778
17779         utimens: fix compilation error
17780         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17781         Declare variable at right scope.
17782
17783 2009-11-29  Jim Meyering  <meyering@redhat.com>
17784
17785         bootstrap: handle perl-5.11's changed --version output
17786         * build-aux/bootstrap (get_version): Handle perl separately,
17787         since perl-5.11's --version output is different.
17788
17789 2009-11-28  Jim Meyering  <meyering@redhat.com>
17790
17791         userspec: depend on the inttostr module, too
17792         * modules/userspec (Depends-on): Add inttostr.
17793
17794         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17795         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17796         number of MAXUID when it evaluates to (uid_t) -1.
17797         Likewise for group ID.  Reported by Matt McCutchen in
17798         <http://savannah.gnu.org/bugs/?28113>
17799
17800         userspec: reformat to use spaces, not TABs
17801         * lib/userspec.c: Expand TABs to spaces.
17802         Add Emacs' "indent-tabs-mode: nil" hint.
17803
17804 2009-11-27  Eric Blake  <ebb9@byu.net>
17805
17806         getopt-gnu: flush out another BSD bug
17807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17808         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17809         flush out BSD bug.
17810         * tests/test-getopt.h (test_getopt): End lists with NULL.
17811         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17812         (test_getopt_long_posix): Enhance test.
17813         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17814         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17815         getopt-gnu.
17816         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17817         Likewise.
17818
17819 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17820
17821         * modules/idpriv-droptemp-tests (Notice): Fix text.
17822
17823 2009-11-27  Jim Meyering  <meyering@redhat.com>
17824
17825         test-xalloc-die: avoid spurious failure due to libtool argv difference
17826         In a libtool-enabled project, this test would fail due to a difference
17827         in the emitted program name, e.g.,
17828         -test-xalloc-die: memory exhausted
17829         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17830         Use program to avoid that.
17831         * modules/xalloc-die-tests (Depends-on): Add progname.
17832         * tests/test-xalloc-die.c: Include progname.h".
17833         (program_name): Remove decl.
17834         (main): Call set_program_name.
17835         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17836
17837 2009-11-26  Richard Jones  <rjones@redhat.com>
17838
17839         w32sock: leave win32 error in place.
17840         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17841
17842 2009-11-26  Eric Blake  <ebb9@byu.net>
17843
17844         init.sh: suggest to use skip_ and fail_ functions in comments
17845         * tests/init.sh: Add a sentence.
17846
17847 2009-11-25  Bruno Haible  <bruno@clisp.org>
17848
17849         init.sh: add documentation in comments
17850         * tests/init.sh: Add some developer and user documentation.
17851
17852 2009-11-26  Jim Meyering  <meyering@redhat.com>
17853
17854         init.sh: accommodate even those who specify bogus srcdir manually
17855         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17856         configure-time tests to be sanitized, so that there is no need to
17857         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17858         (with no double quotes) suffices.  However, since tests may be
17859         invoked manually, and since you may explicitly set srcdir to the
17860         name of a directory containing spaces, do quote its uses here.
17861         * tests/test-pread.sh: Likewise.
17862         Suggested by Bruno Haible.
17863
17864         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17865         * tests/test-pread.sh: Write no data into the pipe, because
17866         test-pread actually reads none.  This avoids a diagnostic,
17867         "bash: echo: write error: Broken pipe", that arises in the unusual
17868         event something is ignoring SIGPIPE, and might be interpreted
17869         as some sort of failure.  Reported by Bruno Haible.
17870
17871 2009-11-25  Jim Meyering  <meyering@redhat.com>
17872
17873         test-pread: cover failure with ESPIPE and EINVAL
17874         * tests/test-pread.c (main): Test for failure, too.
17875         * tests/test-pread.sh: Invoke with stdin on a pipe.
17876         Suggested by Eric Blake.
17877
17878         pread: improvement and fix
17879         * modules/pread (Depends-on): Depend on lseek, for portability to
17880         e.g., mingw.  Suggested by Eric Blake.
17881         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17882
17883         unistd.in.h: correct declaration of pread
17884         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17885         Reported by Richard W.M. Jones.
17886
17887         test-pread.sh: distribute the test script
17888         * modules/pread-tests (Files): Include test-pread.sh.
17889
17890         test-pread.sh: clean up
17891         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17892         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17893         That is unnecessary, since it's always ".".
17894         Suggestion from Eric Blake.
17895
17896         test-pread.sh: make executable
17897         * tests/test-pread.sh: Set executable bit.
17898         Reported by Eric Blake.
17899
17900         correct typo in test-pread.sh
17901         * tests/test-pread.sh: Add #! line.
17902
17903         test pread
17904         * tests/test-pread.c: New file.
17905         * tests/test-pread.sh: Likewise.
17906         * modules/pread-tests: Likewise.
17907
17908         pread: new module
17909         * modules/pread: New file.
17910         * lib/unistd.in.h (pread): Define/declare.
17911         * lib/pread.c (pread): New file.
17912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17913         * modules/unistd (Makefile.am): Substitute witnesses.
17914         * doc/posix-functions/pread.texi (pread): Update.
17915         * MODULES.html.sh: Add pread.
17916
17917 2009-11-25  Jim Meyering  <meyering@redhat.com>
17918
17919         tests/init.sh: new file to be used via most *.sh tests
17920         * tests/init.sh: New file.
17921
17922 2009-11-25  Eric Blake  <ebb9@byu.net>
17923
17924         utimens: work around older Linux failure with symlinks
17925         * lib/utimens.c (lutimensat_works_really): New variable.
17926         (fdutimens, lutimens): Use it to manage kernels that support
17927         nanosecond times on files, but not on symlinks.
17928         Reported by OndÅ™ej Vašík.
17929
17930         utimes: fix configure grammar
17931         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17932
17933 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17934
17935         regex: Fix fastmap for multibyte character ranges.
17936         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17937         characters when a multibyte character range is included.
17938
17939 2009-11-22  Andy Wingo  <wingo@pobox.com>
17940
17941         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17942         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17943
17944 2009-11-24  Bruno Haible  <bruno@clisp.org>
17945
17946         doc: Most *_l functions exist in MacOS X 10.5.
17947         * doc/posix-functions/duplocale.texi: Update platforms list.
17948         * doc/posix-functions/freelocale.texi: Likewise.
17949         * doc/posix-functions/newlocale.texi: Likewise.
17950         * doc/posix-functions/uselocale.texi: Likewise.
17951         * doc/posix-functions/isalnum_l.texi: Likewise.
17952         * doc/posix-functions/isalpha_l.texi: Likewise.
17953         * doc/posix-functions/isblank_l.texi: Likewise.
17954         * doc/posix-functions/iscntrl_l.texi: Likewise.
17955         * doc/posix-functions/isdigit_l.texi: Likewise.
17956         * doc/posix-functions/isgraph_l.texi: Likewise.
17957         * doc/posix-functions/islower_l.texi: Likewise.
17958         * doc/posix-functions/isprint_l.texi: Likewise.
17959         * doc/posix-functions/ispunct_l.texi: Likewise.
17960         * doc/posix-functions/isspace_l.texi: Likewise.
17961         * doc/posix-functions/isupper_l.texi: Likewise.
17962         * doc/posix-functions/iswalnum_l.texi: Likewise.
17963         * doc/posix-functions/iswalpha_l.texi: Likewise.
17964         * doc/posix-functions/iswblank_l.texi: Likewise.
17965         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17966         * doc/posix-functions/iswctype_l.texi: Likewise.
17967         * doc/posix-functions/iswdigit_l.texi: Likewise.
17968         * doc/posix-functions/iswgraph_l.texi: Likewise.
17969         * doc/posix-functions/iswlower_l.texi: Likewise.
17970         * doc/posix-functions/iswprint_l.texi: Likewise.
17971         * doc/posix-functions/iswpunct_l.texi: Likewise.
17972         * doc/posix-functions/iswspace_l.texi: Likewise.
17973         * doc/posix-functions/iswupper_l.texi: Likewise.
17974         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17975         * doc/posix-functions/isxdigit_l.texi: Likewise.
17976         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17977         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17978         * doc/posix-functions/strcoll_l.texi: Likewise.
17979         * doc/posix-functions/strfmon_l.texi: Likewise.
17980         * doc/posix-functions/strftime_l.texi: Likewise.
17981         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17982         * doc/posix-functions/strxfrm_l.texi: Likewise.
17983         * doc/posix-functions/tolower_l.texi: Likewise.
17984         * doc/posix-functions/toupper_l.texi: Likewise.
17985         * doc/posix-functions/towctrans_l.texi: Likewise.
17986         * doc/posix-functions/towlower_l.texi: Likewise.
17987         * doc/posix-functions/towupper_l.texi: Likewise.
17988         * doc/posix-functions/wcscoll_l.texi: Likewise.
17989         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17990         * doc/posix-functions/wctrans_l.texi: Likewise.
17991         * doc/posix-functions/wctype_l.texi: Likewise.
17992         * doc/glibc-functions/strptime_l.texi: Likewise.
17993         * doc/glibc-functions/strtod_l.texi: Likewise.
17994         * doc/glibc-functions/strtof_l.texi: Likewise.
17995         * doc/glibc-functions/strtol_l.texi: Likewise.
17996         * doc/glibc-functions/strtold_l.texi: Likewise.
17997         * doc/glibc-functions/strtoll_l.texi: Likewise.
17998         * doc/glibc-functions/strtoul_l.texi: Likewise.
17999         * doc/glibc-functions/strtoull_l.texi: Likewise.
18000         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18001         * doc/glibc-functions/wcstod_l.texi: Likewise.
18002         * doc/glibc-functions/wcstof_l.texi: Likewise.
18003         * doc/glibc-functions/wcstol_l.texi: Likewise.
18004         * doc/glibc-functions/wcstold_l.texi: Likewise.
18005         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18006         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18007         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18008
18009 2009-11-24  Bruno Haible  <bruno@clisp.org>
18010
18011         duplocale: Fix logic bug.
18012         * lib/duplocale.c: Don't include <langinfo.h>.
18013         (_NL_LOCALE_NAME): Remove macro.
18014         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18015         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18016
18017 2009-11-23  Jim Meyering  <meyering@redhat.com>
18018
18019         test-update-copyright: don't hard-code /usr/bin/perl
18020         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18021         perl to print the current year.  Gilles Espinasse reported that
18022         the replaced use of perl was hard-coded as /usr/bin/perl.
18023
18024 2009-11-23  Bruno Haible  <bruno@clisp.org>
18025
18026         duplocale: Add support for glibc 2.3.x.
18027         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18028
18029 2009-11-22  Bruno Haible  <bruno@clisp.org>
18030
18031         vasnprintf: Tiny optimization.
18032         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18033         MacOS X.
18034
18035 2009-11-22  Bruno Haible  <bruno@clisp.org>
18036
18037         Tests for module 'duplocale'.
18038         * modules/duplocale-tests: New file.
18039         * tests/test-duplocale.c: New file.
18040
18041         New module 'duplocale'.
18042         * m4/duplocale.m4: New file.
18043         * lib/locale.in.h (duplocale): New declaration.
18044         * lib/duplocale.c: New file.
18045         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18046         gl_LOCALE_H_DEFAULTS): New macros.
18047         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18048         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18049         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18050         REPLACE_DUPLOCALE.
18051         * modules/duplocale: New file.
18052         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18053
18054 2009-11-22  Bruno Haible  <bruno@clisp.org>
18055
18056         * modules/locale-tests (configure.ac): Test for newlocale function.
18057         * tests/test-locale.c: When the system has extended locale functions,
18058         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18059
18060         locale: Make locale_t available when possible.
18061         * lib/locale.in.h: Include <xlocale.h> when it exists.
18062         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18063         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18064         * modules/locale (Depends-on): Add extensions.
18065         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18066         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18067
18068 2009-11-22  Bruno Haible  <bruno@clisp.org>
18069
18070         Add comments.
18071         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18072         invocation.
18073         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18074         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18075         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18076
18077 2009-11-22  Bruno Haible  <bruno@clisp.org>
18078
18079         error: account for the possibility of freopen (stdout).
18080         * lib/error.c: Include <unistd.h>.
18081         (flush_stdout): New function, extracted from error and error_at_line.
18082         Determine stdout's fd dynamically.
18083         (error, error_at_line): Invoke flush_stdout.
18084         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18085         * modules/error (Depends-on): Add unistd.
18086
18087 2009-11-22  Bruno Haible  <bruno@clisp.org>
18088
18089         diffseq: Add comment.
18090         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18091
18092 2009-11-22  Jim Meyering  <meyering@redhat.com>
18093
18094         c-stack: avoid defining an unused static function
18095         * lib/c-stack.c (find_stack_direction): Do not define this function
18096         when it will not be used.
18097
18098         diffseq: avoid spurious gcc warnings
18099         * lib/diffseq.h (IF_LINT2): Define.
18100         (compareseq): Use it to initialize two members of "part".
18101         This avoids two used-uninitialized warnings.
18102
18103 2009-11-21  Jim Meyering  <meyering@redhat.com>
18104
18105         c-stack: avoid "ignoring return value of `write'" warning
18106         * lib/c-stack.c: Include "ignore-value.h".
18107         (die): Explicitly ignore each write return value.
18108         * modules/c-stack (Depends-on): Add ignore-value.
18109
18110 2009-11-21  Bruno Haible  <bruno@clisp.org>
18111
18112         diffseq: reduce scope of variable 'best'.
18113         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18114         variable, earlier used for two different purposes.
18115
18116 2009-11-21  Jim Meyering  <meyering@redhat.com>
18117
18118         diffseq: remove useless assignment to "best"
18119         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18120         assignment.  At that point "best" is already guaranteed to be zero.
18121
18122 2009-11-20  Eric Blake  <ebb9@byu.net>
18123
18124         build: mention ftp redirector in release announcements
18125         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18126         values that used to come from cfg.mk; mention FTP redirect URL.
18127         * build-aux/announce-gen: Mention the mirror list.
18128         Suggested by Karl Berry.
18129
18130         nanosleep: improve port to mingw
18131         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18133         LIB_NANOSLEEP, but only when needed.
18134         * modules/select (Link): Document LIBSOCKET.
18135         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18136         enough.
18137
18138         nanosleep: work around cygwin bug
18139         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18140         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18141         bug.
18142         (getnow): Delete, not needed.
18143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18144         LIB_CLOCK_GETTIME.
18145         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18146         clock-time, gettime.
18147         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18148         bug.
18149         * modules/nanosleep-tests: New test.
18150         * tests/test-nanosleep.c: New file.
18151
18152         sleep: work around cygwin bug
18153         * lib/sleep.c (rpl_sleep): Work around the bug.
18154         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18155         (gl_PREREQ_SLEEP): Delete unused macro.
18156         * modules/sleep (Depends-on): Add verify.
18157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18158         * modules/unistd (Makefile.am): Substitute witness.
18159         * lib/unistd.in.h (sleep): Update prototype.
18160         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18161         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18162         * modules/sleep-tests (Depends-on): Check for alarm.
18163
18164 2009-11-20  Jim Meyering  <meyering@redhat.com>
18165
18166         maint.mk: improve sc_prohibit_magic_number_exit
18167         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18168         so it does not match uses like System.exit(1).
18169         Add comments showing how to correct all offenders.
18170
18171 2009-11-19  Eric Blake  <ebb9@byu.net>
18172
18173         xalloc-die-tests: add missing library
18174         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18175
18176         test-xvasprintf: silence compiler warnings
18177         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18178         empty string from gcc.
18179
18180 2009-11-19  Jim Meyering  <meyering@redhat.com>
18181
18182         xfreopen: new module, from coreutils
18183         * modules/xfreopen: New module.
18184         * lib/xfreopen.c: New file.
18185         * lib/xfreopen.h: New file.
18186         * MODULES.html.sh (File stream based Input/Output"): Add it.
18187
18188 2009-11-19  Eric Blake  <ebb9@byu.net>
18189
18190         manywarnings: depend on warnings
18191         * modules/manywarnings (Depends-on): Add warnings.
18192
18193         build: avoid compiler warnings
18194         * lib/select.c (rpl_select): Delete unused variable.
18195         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18196
18197 2009-11-18  Eric Blake  <ebb9@byu.net>
18198
18199         tests: avoid false negative with --with-packager
18200         * tests/test-version-etc.sh: Discard packager information.
18201         * tests/test-argp-version-etc-1.sh: Likewise.
18202         Reported by Mike Frysinger.
18203
18204         utimens: fix regression on Solaris
18205         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18206         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18207         can only change fd timestamps via futimesat.  Instead, use an
18208         additional witness macro to avoid BSD bug.
18209         Reported by Jim Meyering.
18210
18211 2009-11-17  Eric Blake  <ebb9@byu.net>
18212
18213         usleep: use it to simplify tests
18214         * modules/stat-time-tests (Depends-on): Add usleep.
18215         (configure.ac): Drop usleep check.
18216         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18217         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18218         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18219         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18220         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18221         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18222         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18223         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18224         Likewise.
18225         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18226         * tests/test-lchown.h (nap): Likewise.
18227         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18228         * tests/test-stat-time.c (nap): Likewise.
18229         * tests/test-utimens-common.h (nap): Update comments.
18230
18231         usleep: new module
18232         * modules/usleep: New file.
18233         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18234         * lib/usleep.c (usleep): Likewise.
18235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18236         * modules/unistd (Makefile.am): Substitute witnesses.
18237         * lib/unistd.in.h (usleep): Add declaration.
18238         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18239         * MODULES.html.sh (Date and time): Likewise.
18240         * modules/usleep-tests (Depends-on): New test.
18241         * tests/test-usleep.c: New file.
18242
18243         chown: work around OpenBSD bug
18244         * lib/chown.c (rpl_chown): Work around the bug.
18245         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18246         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18247         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18248         * modules/chown (Depends-on): Add stdbool.
18249         * modules/lchown (Depends-on): Likewise.
18250         * doc/posix-functions/chown.texi (chown): Document the bug.
18251         * doc/posix-functions/lchown.texi (lchown): Likewise.
18252         * tests/test-lchown.h (test_chown): Relax test.
18253
18254         mkstemp: avoid conflict with C++ keyword template
18255         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18256         * lib/mkostemp.c (mkostemp): Likewise.
18257         * lib/mkostemps.c (mkostemps): Likewise.
18258         * lib/mkstemp.c (mkstemp): Likewise.
18259         * lib/mkstemps.c (mkstemps): Likewise.
18260
18261         xalloc-die-tests: optimize
18262         * tests/test-xalloc-die.sh: Reduce number of processes.
18263
18264 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18265
18266         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18267         patch from ludo@gnu.org (Ludovic Courtès).
18268
18269 2009-11-17  Jim Meyering  <meyering@redhat.com>
18270
18271         version-etc: use proper license string
18272         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18273         * modules/version-etc-fsf: Likewise.
18274
18275 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18276
18277         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18278         printed to stdout.  Deal with EOL differences.
18279
18280 2009-11-17  Eric Blake  <ebb9@byu.net>
18281
18282         unsetenv: work around Solaris bug
18283         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18284         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18285         Reported by Jim Meyering.
18286
18287         vasnprintf: avoid compiler warnings
18288         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18289         variables.
18290         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
18291
18292 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18293
18294         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
18295         settings since xalloc-die is no longer the self test,
18296         xalloc-die.sh is.
18297
18298 2009-11-17  Jim Meyering  <meyering@redhat.com>
18299
18300         test-xalloc-die.sh: make the code agree with the commit log
18301         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
18302         at the end, just in case you happen to have a test-xalloc-die
18303         program in some other PATH directory.
18304
18305         test-xalloc-die.sh: fix a portability bug
18306         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
18307         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
18308         Otherwise, argv[0] (as often seen in diagnostics) would be too
18309         system-dependent, sometimes with, and sometimes without the leading "./".
18310
18311         version-etc-fsf: relax license to LGPLv3+
18312         * modules/version-etc-fsf (License): Relax license.
18313
18314 2009-11-16  Eric Blake  <ebb9@byu.net>
18315
18316         xalloc-die-tests: avoid printing null pointer
18317         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
18318         shell script.
18319         * tests/test-xalloc-die.c (program_name): Declare.
18320         * tests/test-xalloc-die.sh (tmpfiles): New file.
18321
18322         setenv, unsetenv: work around various bugs
18323         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
18324         (setenv) [HAVE_SETENV]: Work around bugs.
18325         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
18326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
18327         for bugs.
18328         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
18329         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
18330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
18331         * modules/stdlib (Makefile.am): Update substitutions.
18332         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
18333         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
18334         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18335         * modules/setenv-tests: New test.
18336         * modules/unsetenv-tests: Likewise.
18337         * tests/test-setenv.c: New file.
18338         * tests/test-unsetenv.c: Likewise.
18339
18340 2009-11-16  Jim Meyering  <meyering@redhat.com>
18341
18342         version-etc: relax license to LGPLv3+
18343         * modules/version-etc (License): Relax license.
18344
18345         better AC_REQUIRE expanded-before-required-warning avoidance
18346         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18347         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18348         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18349         which is no longer needed.
18350
18351 2009-11-16  Eric Blake  <ebb9@byu.net>
18352
18353         test-freading: clean up temporary file
18354         * tests/test-freading.c (main): Remove file on success, and use
18355         ASSERT more liberally.
18356         Reported by Jim Meyering.
18357
18358 2009-11-16  Jim Meyering  <meyering@redhat.com>
18359
18360         avoid new AC_REQUIRE expanded-before-required warnings
18361         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18362         merely using it.
18363         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18364         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18365
18366 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18367
18368         * tests/test-xalloc-die.c: New file.
18369         * modules/xalloc-die-tests: New file.
18370         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18371         XFAIL_TESTS so it can be appended by modules.
18372
18373 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18374
18375         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18376         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18377
18378 2009-11-14  Eric Blake  <ebb9@byu.net>
18379
18380         fnmatch: avoid compiler warning
18381         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18382         to silence compiler warning about mismatch signedness in ?:.
18383         Reported by Robert Millan.
18384
18385         intprops: add double-inclusion guard
18386         * lib/intprops.h: Allow idempotent includes.
18387         Suggested by Bruce Korb.
18388
18389         openat: detect Solaris fchownat bug
18390         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18391         penalizing glibc chownat when only lchownat is broken.
18392         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18393         trailing slash bugs.
18394         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18395         * modules/openat-tests (Files): Include more files.
18396         (Depends-on): Add mgetgroups, sleep, stat-time.
18397         (configure.ac): Add additional checks.
18398         (Makefile.am): Build new test.
18399         * tests/test-fchownat.c: New file.
18400
18401         lchown: detect Solaris and FreeBSD bug
18402         * lib/lchown.c (rpl_lchown): Work around bug.
18403         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18405         * modules/unistd (Makefile.am): Populate it.
18406         * lib/unistd.in.h (lchown): Update declaration.
18407         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18408         * modules/lchown-tests: New file.
18409         * tests/test-lchown.h (test_lchown): Likewise.
18410         * tests/test-lchown.c (main): Likewise.
18411
18412         chown: detect Solaris and FreeBSD bug
18413         * lib/chown.c (rpl_chown): Work around bug.
18414         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18415         (gl_PREREQ_CHOWN): Delete.
18416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18417         * modules/unistd (Makefile.am): Populate it.
18418         * lib/unistd.in.h (chown): Update declaration.
18419         * lib/lchown.c (chown): Update client.
18420         * modules/lchown (Depends-on): Add lstat.
18421         * doc/posix-functions/chown.texi (chown): Document the bug.
18422         * doc/posix-functions/getgroups.texi (getgroups): Document
18423         getgroups pitfall.
18424         * modules/chown-tests: New file.
18425         * tests/test-chown.h (test_chown): Likewise.
18426         * tests/test-chown.c (main): Likewise.
18427
18428 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18429
18430         gnulib-tool: correctly detect absence of m4 directories
18431         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18432
18433 2009-11-14  Jim Meyering  <meyering@redhat.com>
18434
18435         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18436         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18437
18438 2009-11-14  John W. Eaton  <jwe@gnu.org>
18439
18440         strftime.h: wrap funtion declaration in extern "C" block
18441         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18442
18443 2009-11-13  Eric Blake  <ebb9@byu.net>
18444
18445         getgroups: avoid compiler warning
18446         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18447
18448         getgroups: work around FreeBSD bug
18449         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18450         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18451         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18452         * tests/test-getgroups.c (main): Fix buffer overrun.
18453
18454         getgroups: avoid compilation failure
18455         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18456         * modules/getgroups (Depends-on): Add stdint.
18457
18458 2009-11-13  Jim Meyering  <meyering@redhat.com>
18459
18460         test-getgroups: avoid compilation failure
18461         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18462
18463 2009-11-13  Eric Blake  <ebb9@byu.net>
18464
18465         mgetgroups: new module, taken from coreutils
18466         * modules/mgetgroups: New file.
18467         * lib/mgetgroups.h: Likewise.
18468         * lib/mgetgroups.c (mgetgroups): Likewise.
18469         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18470         * MODULES.html.sh (Users and groups): Mention it.
18471
18472         getgroups: don't expose GETGROUPS_T to user
18473         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18474         an element at a time if GETGROUPS_T is wrong size.
18475         * lib/getugroups.h (getugroups): Change signature.
18476         * lib/unistd.in.h (getgroups): Likewise.
18477         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18478         signature needs fixing.
18479         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18480         AC_TYPE_GETGROUPS.
18481         * modules/group-member (Depends-on): Add getgroups.
18482         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18483         (group_member): Rely on getgroups replacement.
18484         * lib/getugroups.c (getugroups): Use gid_t.
18485         * tests/test-getgroups.c (main): Likewise.
18486         * NEWS: Mention the signature change.
18487         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18488         problem with signature.
18489         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18490         GETGROUPS_T is still useful for setgroups.
18491
18492         getgroups, getugroups: provide stubs for mingw
18493         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18494         * lib/getugroups.c (getugroups): Likewise.
18495         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18496         function.  Modernize replacement scheme.
18497         (gl_PREREQ_GETGROUPS): Delete.
18498         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18499         * modules/getgroups (configure.ac): Declare witness.
18500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18501         * modules/unistd (Depends-on): Substitute witness.
18502         * lib/unistd.in.h (getgroups): Declare replacement.
18503
18504         getgroups: avoid calling exit
18505         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18506         drop xalloc.
18507         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18508         dependencies.
18509         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18510         exiting, in the rare case of malloc failure.
18511
18512         getgroups: fix logic error
18513         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18514         has more than 20 groups.
18515         * modules/getgroups-tests: New test.
18516         * tests/test-getgroups.c: New file.
18517
18518 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18519
18520         * tests/test-base64.c: Improve.
18521
18522 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18523
18524         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18525         Blake <ebb9@byu.net>.
18526
18527 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18528
18529         * tests/test-xvasprintf.c: Add %s%s related checks.
18530
18531 2009-11-12  Eric Blake  <ebb9@byu.net>
18532
18533         version-etc: match standards.texi style
18534         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18535         and use <> only for URLs.
18536
18537 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18538
18539         fts: do not fail on a submount during traversal
18540         * lib/fts.c (fts_build): Read the stat info again after opening
18541         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18542         Original report at http://bugzilla.redhat.com/501848.
18543
18544 2009-11-12  Jim Meyering  <meyering@redhat.com>
18545
18546         bootstrap: sync from coreutils
18547         * build-aux/bootstrap (bootstrap_epilogue): New function.
18548         Use git_modules_config in one more place.  This make bootstrap's
18549         --gnulib-srcdir option more useful for testing.
18550
18551         bootstrap: generalize autoheader check
18552         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18553         AC_CONFIG_HEADERS.
18554
18555 2009-11-11  Eric Blake  <ebb9@byu.net>
18556
18557         mkfifoat: use new modules for Solaris and BSD bugs
18558         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18559         * lib/mkfifoat.c (mknodat): Split...
18560         * lib/mknodat.c (mknodat): ...into new file.
18561         * modules/mkfifoat (Files): Ship new file.
18562         (Depends-on): Add mkfifo, mknod.
18563         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18564         (Depends-on): Add symlink.
18565         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18566         redundant with test_mkfifo.h.
18567         (do_mkfifoat, do_mknodat): New helpers.
18568
18569         mknod: new module
18570         * modules/mknod: New file.
18571         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18572         * lib/mknod.c (mknod): Likewise.
18573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18574         defaults.
18575         * modules/sys_stat (Makefile.am): Substitute them.
18576         * lib/sys_stat.in.h (mknod): Declare replacement.
18577         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18578         Document it.
18579         * doc/posix-functions/mknod.texi (mknod): Likewise.
18580         * modules/mknod-tests: New test.
18581         * tests/test-mknod.c: Likewise.
18582
18583         mkfifo: new module
18584         * modules/mkfifo: New file.
18585         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18586         * lib/mkfifo.c (mkfifo): Likewise.
18587         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18588         defaults.
18589         * modules/sys_stat (Makefile.am): Substitute them.
18590         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18591         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18592         Document it.
18593         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18594         * modules/mkfifo-tests: New test.
18595         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18596         from test-mkfifoat.c.
18597         * tests/test-mkfifo.c: New file.
18598
18599         readlink: detect FreeBSD bug
18600         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18601         slash on symlink.
18602         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18603         * tests/test-readlink.h (test_readlink): Enhance test.
18604
18605         symlink: detect FreeBSD bug
18606         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18607         slash on symlink.
18608         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18609         * tests/test-symlink.h (test_symlink): Enhance test.
18610
18611 2009-11-10  Eric Blake  <ebb9@byu.net>
18612
18613         link: detect FreeBSD bug
18614         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18615         symlink.
18616         * doc/posix-functions/link.texi (link): Document the bug.
18617         * tests/test-link.h (test_link): Enhance test.
18618         * tests/test-linkat.c (main): Update caller.
18619
18620         unlink, remove: detect FreeBSD bug
18621         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18622         slash on symlink.
18623         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18624         * doc/posix-functions/remove.texi (remove): Likewise.
18625         * tests/test-unlink.h (test_unlink): Enhance test.
18626         * tests/test-remove.c (main): Likewise.
18627
18628 2009-11-09  Eric Blake  <ebb9@byu.net>
18629
18630         rename: detect FreeBSD bug
18631         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18632         slash on symlink.
18633         * modules/renameat-tests (Depends-on): Add filenamecat.
18634         * tests/test-rename.h (test_rename): Allow one more errno.
18635         * tests/test-renameat.c (main): Likewise.
18636         * doc/posix-functions/rename.texi (rename): Document the bug.
18637
18638         open: detect FreeBSD bug
18639         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18640         symlink.
18641         * doc/posix-functions/open.texi (open): Document the bug.
18642         * doc/posix-functions/utimes.texi (utimes): Likewise.
18643         * tests/test-open.h (test_open): Add parameters, and test symlink
18644         handling.
18645         * tests/test-open.c (main): Adjust caller.
18646         * tests/test-fcntl-safer.c (main): Likewise.
18647         * modules/open-tests (Depends-on): Add stdbool, symlink.
18648         * modules/fcntl-safer-tests (Depends-on): Likewise.
18649         * tests/test-openat.c (main): Add test-open tests.
18650
18651         stat: detect FreeBSD bug
18652         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18653         symlink.
18654         * doc/posix-functions/stat.texi (stat): Document the bug.
18655         * tests/test-stat.h (test_stat_func): Add argument.
18656         * tests/test-stat.c (main): Adjust caller.
18657         * tests/test-fstatat.c (main): Likewise.
18658         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18659         Reported by Jim Meyering.
18660
18661 2009-11-09  James Youngman  <jay@gnu.org>
18662
18663         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18664         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18665
18666 2009-11-08  Jim Meyering  <meyering@redhat.com>
18667
18668         utimens: remove invalid futimesat call
18669         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18670         It used the file descriptor of the target file as the DIR_FD
18671         parameter and NULL as the file name.  That caused failure with
18672         errno == EFAULT on FreeBSD-8.0-rc2
18673
18674 2009-11-07  Eric Blake  <ebb9@byu.net>
18675
18676         fflush, freadseek: use fseeko, not fseek
18677         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18678         (clear_ungetc_buffer): Avoid potential problems on large files.
18679         * lib/freadseek.c (freadseek): Likewise.
18680         * modules/freadseek (Depends-on): Add fseeko.
18681         * modules/fseek (configure.ac): Set a witness.
18682         * tests/test-fflush.c (main): Use fseeko.
18683         * tests/test-fpurge.c (fseek): Disable link warning.
18684         * tests/test-freadable.c (fseek): Likewise.
18685         * tests/test-freading.c (fseek): Likewise.
18686         * tests/test-fseeko.c (fseek): Likewise.
18687         * tests/test-ftell.c (fseek): Likewise.
18688         * tests/test-ftello.c (fseek): Likewise.
18689         * tests/test-fwritable.c (fseek): Likewise.
18690         * tests/test-fwriting.c (fseek): Likewise.
18691
18692 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18693
18694         * modules/memchr (Depends-on): Drop getpagesize dependency.
18695
18696 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18697
18698         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18699         Reported by Ludovic Courtès.
18700         * build-aux/pmccabe2html: Improve example usage.
18701         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18702
18703 2009-11-06  Jim Meyering  <meyering@redhat.com>
18704
18705         do-release-commit-and-tag: New module.
18706         Automate the release-commit and tag process.
18707         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18708         * modules/do-release-commit-and-tag: New file.
18709         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18710
18711 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18712
18713         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18714         because test-select.c uses inet_pton.
18715
18716 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18717
18718         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18719         GETADDRINFO_LIB.  Bump serial number.
18720         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18721         Suggested by Eric Blake <ebb9@byu.net>.
18722
18723 2009-11-05  Eric Blake  <ebb9@byu.net>
18724
18725         strtod: detect darwin bug
18726         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18727         Reported by Leo Davis.
18728
18729         freopen-safer: new module
18730         * modules/freopen-safer: New module.
18731         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18732         * lib/freopen-safer.c (freopen_safer): New file.
18733         * lib/stdio-safer.h (freopen_safer): New declaration.
18734         * lib/stdio--.h (freopen): New override.
18735         * MODULES.html.sh (File stream based Input/Output): Mention it.
18736         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18737         freopen-safer module.
18738         * doc/posix-functions/stderr.texi (stderr): Likewise.
18739         * doc/posix-functions/stdin.texi (stdin): Likewise.
18740         * doc/posix-functions/stdout.texi (stdout): Likewise.
18741         * modules/freopen-safer-tests: New test.
18742         * tests/test-reopen-safer.c: New file.
18743
18744 2009-11-05  Jim Meyering  <meyering@redhat.com>
18745
18746         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18747         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18748
18749 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18750
18751         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18752
18753 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18754
18755         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18756
18757 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18758
18759         Fix link error.
18760         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18761         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18762
18763 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18764
18765         * tests/test-func.c: Also test value of __func__.
18766
18767 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18768
18769         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18770         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18771
18772 2009-11-05  Bruno Haible  <bruno@clisp.org>
18773
18774         Fix link error.
18775         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18776         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18777         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18778
18779 2009-11-05  Bruno Haible  <bruno@clisp.org>
18780
18781         Tests for module 'inet_pton'.
18782         * modules/inet_pton-tests: New file.
18783         * tests/test-inet_pton.c: New file.
18784
18785 2009-11-05  Bruno Haible  <bruno@clisp.org>
18786
18787         Tests for module 'inet_ntop'.
18788         * modules/inet_ntop-tests: New file.
18789         * tests/test-inet_ntop.c: New file.
18790
18791 2009-11-04  Eric Blake  <ebb9@byu.net>
18792
18793         stdlib-safer: wrap all mkstemp variants
18794         * modules/mkostemp (configure.ac): Set witness.
18795         * modules/mkostemps (configure.ac): Likewise.
18796         * modules/mkstemps (configure.ac): Likewise.
18797         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18798         (mkstemps_safer): Wrap more functions.
18799         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18800         wrapping.
18801         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18802         (mkstemps_safer): Implement the wrappers.
18803
18804         mkstemps, mkostemps: new modules
18805         * modules/mkostemps: New module.
18806         * modules/mkstemps: Likewise.
18807         * lib/mkostemps.c (mkostemps): New file.
18808         * lib/mkstemps.c (mkstemps): Likewise.
18809         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18810         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18812         * modules/stdlib (Makefile.am): Substitute them.
18813         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18814         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18815         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18816         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18817         * MODULES.html.sh (File system functions): Mention them.
18818
18819         tempname: resync from glibc
18820         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18821         same values for __GT_FILE as glibc.  Abort even when assertions
18822         are disabled.
18823         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18824         match its value otherwise.  Allow idempotent inclusion.
18825         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18826         * lib/mkostemp.c (mkostemp): Likewise.
18827         * lib/mkstemp.c (mkstemp): Likewise.
18828         * lib/tmpfile.c (tmpfile): Likewise.
18829         * NEWS: Document this.
18830
18831         utimens: fix use of futimens on older Linux
18832         * lib/utimens.c (fdutimens): Use updated, rather than original,
18833         timespec to avoid bug in older Linux kernel.
18834         Reported by Simon Josefsson.
18835
18836 2009-11-04  Bruno Haible  <bruno@clisp.org>
18837
18838         Make num_processors more flexible and consistent.
18839         * lib/nproc.h (enum nproc_query): New type.
18840         (num_processors): Add a 'query' argument.
18841         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18842         (num_processors): Add a 'query' argument. Test the value of the
18843         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18844         mingw, count the number of CPUs available for the current process.
18845         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18846         Check for sched_getaffinity and sched_getaffinity_np.
18847         * modules/nproc (Depends-on): Add c-ctype, extensions.
18848         * NEWS: Mention the change.
18849
18850 2009-11-03  Bruno Haible  <bruno@clisp.org>
18851
18852         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18853
18854 2009-11-03  Jim Meyering  <meyering@redhat.com>
18855
18856         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18857         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18858         if it is defined.
18859
18860 2009-11-02  Eric Blake  <ebb9@byu.net>
18861
18862         mktime, timegm: share common declaration
18863         * lib/mktime-internal.h: New file.
18864         * lib/mktime.c: Use it rather than open-coding a declaration.
18865         * lib/timegm.c: Likewise.
18866         * modules/mktime (Files): Ship it.
18867         * modules/timegm (Files): Likewise.
18868         Suggested by Bruno Haible.
18869
18870         test-update-copyright: update test to match script changes
18871         * tests/test-update-copyright.sh: Avoid hard-coding perl
18872         location.  Don't update *.bak created by earlier runs.
18873
18874 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18875             Simon Josefsson  <simon@josefsson.org>
18876             Bruno Haible  <bruno@clisp.org>
18877
18878         Fix link error on Solaris 8.
18879         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18880         also in libnsl. Define also INET_PTON_LIB.
18881         * modules/inet_pton (Link): New section.
18882
18883 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18884             Bruno Haible  <bruno@clisp.org>
18885
18886         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18887         * modules/inet_ntop (Link): New section.
18888         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18889
18890 2009-11-02  Eric Blake  <ebb9@byu.net>
18891
18892         maint: avoid compiler warnings in m4 macros
18893         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18894         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18895
18896 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18897
18898         * m4/pmccabe2html.m4: Remove file.
18899         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18900         function.  Change maintainer.
18901         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18902         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18903         Courtès).
18904
18905 2009-10-31  Eric Blake  <ebb9@byu.net>
18906
18907         fseeko: fix m4 regression
18908         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18909         regression from 2009-10-27.
18910         Reported by Ralf Wildenhues.
18911
18912 2009-10-31  Jim Meyering  <meyering@redhat.com>
18913
18914         inttostr: aesthetics and improved (compile-time) safety
18915         Define inttype_is_signed rather than inttype_is_unsigned,
18916         since the sole use is via "#if inttype_is_signed".
18917         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18918         inttype_is_unsigned.
18919         * lib/offtostr.c (inttype_is_signed): Likewise.
18920         * lib/uinttostr.c (inttype_is_signed): Likewise.
18921         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18922         * lib/inttostr.c (inttostr): Use verify to cross-check the
18923         inttype_is_signed value and the signedness of the actual type.
18924         * modules/inttostr (Depends-on): Add verify.
18925
18926 2009-10-30  Eric Blake  <ebb9@byu.net>
18927
18928         build: avoid compiler warnings
18929         * lib/fchmodat.c (lchmod): Mark unused variables.
18930         * lib/getopt.c (_getopt_initialize): Likewise.
18931         * lib/mktime.c (__mktime_internal): Provide prototype.
18932         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18933         older gcc that do not understand #pragma GCC diagnostic.
18934         * lib/uinttostr.c (inttype_is_unsigned): Define.
18935         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18936
18937 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18938
18939         stat: fix compilation on AIX
18940         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18941         only see struct stat64.
18942
18943 2009-10-30  Eric Blake  <ebb9@byu.net>
18944
18945         exclude: make more robust
18946         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18947         rather than masking a coding bug.
18948         Suggested by Bruno Haible.
18949
18950 2009-10-30  Jim Meyering  <meyering@redhat.com>
18951
18952         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18953         Rather than putting #!/usr/bin/perl on the first line,
18954         start with a variant of what's recommended by "man perlrun" that
18955         invokes the first "perl" program from your shell's search path.
18956         * build-aux/gitlog-to-changelog: Replace #!... as above.
18957         Add a "Local Variables" perl mode setting.
18958         Prompted by a patch from Ludovic Courtès.
18959         Improved by Eric Blake.
18960         * build-aux/useless-if-before-free: Likewise.
18961         * build-aux/announce-gen: Likewise.
18962         * build-aux/update-copyright: Likewise.
18963
18964 2009-10-29  Eric Blake  <ebb9@byu.net>
18965
18966         filenamecat-lgpl: adjust clients
18967         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18968         filenamecat.
18969         * modules/renameat (Depends-on): Likewise.
18970
18971         filenamecat: split into filenamecat-lgpl
18972         * modules/filenamecat-lgpl: New module.
18973         * modules/filenamecat (Files): Move library-safe files into
18974         filenamecat-lgpl.
18975         (Depends-on): Add filenamecat-lgpl.
18976         (configure.ac): Declare witness.
18977         * lib/filenamecat.h (file_name_concat): Only declare when using
18978         GPL module.
18979         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18980         Move...
18981         * lib/filenamecat-lgpl.c: ...into new file.
18982         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18983         (gl_FILE_NAME_CONCAT): Use it.
18984         * MODULES.html.sh (File system functions): Mention new module.
18985
18986         argp: avoid memory leak
18987         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18988         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18989         base_name, since the latter malloc()s and can call exit().
18990         Leak introduced 2006-07-03.
18991
18992         dirname-lgpl: adjust clients that don't need full dirname
18993         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18994         * modules/filenamecat (Depends-on): Likewise.
18995         * modules/linkat (Depends-on): Likewise.
18996         * modules/mkancesdirs (Depends-on): Likewise.
18997         * modules/mkdir (Depends-on): Likewise.
18998         * modules/openat (Depends-on): Likewise.
18999         * modules/savewd (Depends-on): Likewise.
19000         * modules/rename (Depends-on): Likewise.
19001         (License): Relax license.
19002         * modules/mkdir-tests (Depends-on): Drop progname.
19003         (Makefile.am): Delete unneeded LDADD.
19004         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19005
19006         dirname: split into dirname-lgpl
19007         * modules/dirname-lgpl: New module.
19008         * modules/dirname (Files): Move library-safe files into
19009         dirname-lgpl.
19010         (Depends-on): Add dirname-lgpl.
19011         (configure.ac): Declare witness.
19012         * modules/double-slash-root (License): Relax license.
19013         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19014         module.
19015         * lib/dirname.c (dir_len, mdir_name): Move...
19016         * lib/dirname-lgpl.c: ...into new file.
19017         * lib/basename.c (last_component, base_len): Move...
19018         * lib/basename-lgpl.c: ...into new file.
19019         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19020         (gl_DIRNAME): Use it.
19021         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19022         Mention new module.
19023         * modules/dirname-tests (Depends-on): Add progname.
19024         * tests/test-dirname.c (program_name): Delete.
19025
19026         mkdir: make safe for libraries
19027         * modules/mkdir (Depends-on): Drop xalloc.
19028         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19029         exit.
19030
19031         tests: avoid some compiler warnings
19032         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19033         literals.
19034         * tests/test-memchr.c (main): Avoid type mismatch.
19035         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19036         * tests/test-base64.c (main): Likewise.
19037         * tests/test-getdelim.c (main): Likewise.
19038         * tests/test-gethostname.c (main): Likewise.
19039         * tests/test-getline.c (main): Likewise.
19040         * tests/test-netinet_in.c (main): Likewise.
19041         * tests/test-select.c (open_server_socket, main): Likewise.
19042         * tests/test-select-stdin.c (main): Likewise.
19043         * tests/test-sockets.c (main): Likewise.
19044         * tests/test-strsignal.c (main): Likewise.
19045         * tests/test-sys_select.c (main): Likewise.
19046         * tests/test-sys_socket.c (main): Likewise.
19047         * tests/test-u64.c (main): Likewise.
19048         * tests/test-xfprintf-posix.c (main): Likewise.
19049         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19050
19051         sockets: avoid compiler warning
19052         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19053
19054         maint: detect usage(1) and other suspicious exits
19055         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19056
19057 2009-10-29  Jim Meyering  <meyering@redhat.com>
19058
19059         timespec: long-to-int truncation could make timespec_cmp malfunction
19060         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19061         a multiple of 2^32 nanoseconds as no difference.
19062
19063 2009-10-28  Jim Meyering  <meyering@redhat.com>
19064
19065         fprintftime: wrap macro code argument in "do {...} while(0)"
19066         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19067         cpy macro must be a statement that can be followed by a semicolon.
19068         Now that the else clause contains a comment and is hence longer
19069         than one line, I require curly braces.  That in turn requires
19070         that we wrap this code block in the standard do...while(0).
19071
19072         fprintftime: remove stray semicolon from previous change
19073         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19074
19075         fprintftime: avoid a warning about ignored fwrite return value
19076         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19077         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19078         that is unsafe.
19079         * modules/fprintftime (Depends-on): Add ignore-value.
19080
19081         exclude: avoid an unwarranted warning
19082         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19083
19084 2009-10-27  Eric Blake  <ebb9@byu.net>
19085
19086         fseek: avoid compilation failure when fflush is replaced
19087         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19088         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19089         module is in use.
19090         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19091         module is not in use; since REPLACE_FSEEK worked otherwise.
19092         (GNULIB_FTELLO): Likewise for ftell.
19093         Reported by Ian Beckwith and others.
19094
19095 2009-10-27  Bruno Haible  <bruno@clisp.org>
19096
19097         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19098         Reported by Jim Meyering.
19099
19100 2009-10-27  Jim Meyering  <jim@meyering.net>
19101             Bruno Haible  <bruno@clisp.org>
19102
19103         Avoid warning despite dropping the return value of fwrite.
19104         * lib/unicodeio.c: Include ignore-value.h.
19105         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19106         * modules/unicodeio (Depends-on): Add ignore-value.
19107
19108 2009-10-26  Eric Blake  <ebb9@byu.net>
19109
19110         areadlinkat: fix fallback path
19111         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19112         pointer and zero.
19113
19114 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19115
19116         Use a better IO block size for modern systems
19117         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19118         * lib/md2.c: Likewise.
19119         * lib/md4.c: Likewise.
19120         * lib/md5.c: Likewise.
19121         * lib/sha1.c: Likewise.
19122         * lib/sha256.c: Likewise.
19123         * lib/sha512.c: Likewise.
19124
19125 2009-10-22  Eric Blake  <ebb9@byu.net>
19126
19127         tests: avoid several compiler warnings
19128         * tests/test-getcwd.c (main): Avoid buffer underflow.
19129         * tests/test-getdate.c (main): String literals are not safe with
19130         putenv, so use setenv.  Declare unused argument.
19131         * modules/getdate-tests (Depends-on): Add setenv.
19132         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19133         problems with string literals in char *.
19134         * tests/test-hash.c (main): Avoid shadowing declaration.
19135         (insert_new): Treat string literals as char const *.
19136         * tests/test-getopt.h (test_getopt): Likewise.
19137         (getopt_loop): Alter types to minimize casting elsewhere.
19138         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19139         (test_getopt_long_posix): Likewise.
19140         (do_getopt_long): Add wrapper to minimize casting.
19141         * tests/test-atexit.c (clear_temp_file): Use void.
19142         * tests/test-areadlink-with-size.c (main): Declare unused
19143         arguments.
19144         * tests/test-areadlink.c (main): Likewise.
19145         * tests/test-areadlinkat-with-size.c (main): Likewise.
19146         * tests/test-areadlinkat.c (main): Likewise.
19147         * tests/test-canonicalize-lgpl.c (main): Likewise.
19148         * tests/test-canonicalize.c (main): Likewise.
19149         * tests/test-dirent-safer.c (main): Likewise.
19150         * tests/test-dirname.c (main): Likewise.
19151         * tests/test-dup2.c (main): Likewise.
19152         * tests/test-fchdir.c (main): Likewise.
19153         * tests/test-fcntl-h.c (main): Likewise.
19154         * tests/test-fcntl-safer.c (main): Likewise.
19155         * tests/test-fdopendir.c (main): Likewise.
19156         * tests/test-fdutimensat.c (main): Likewise.
19157         * tests/test-fflush.c (main): Likewise.
19158         * tests/test-filenamecat.c (main): Likewise.
19159         * tests/test-filevercmp.c (main): Likewise.
19160         * tests/test-fopen-safer.c (main): Likewise.
19161         * tests/test-fopen.c (main): Likewise.
19162         * tests/test-fpending.c (main): Likewise.
19163         * tests/test-fpurge.c (main): Likewise.
19164         * tests/test-freading.c (main): Likewise.
19165         * tests/test-fstatat.c (main): Likewise.
19166         * tests/test-fsync.c (main): Likewise.
19167         * tests/test-futimens.c (main): Likewise.
19168         * tests/test-getndelim2.c (main): Likewise.
19169         * tests/test-gettimeofday.c (main): Likewise.
19170         * tests/test-getopt.c (main): Likewise.
19171         * tests/test-i-ring.c (main): Likewise.
19172         * tests/test-inttypes.c (main): Likewise.
19173         * tests/test-link.c (main): Likewise.
19174         * tests/test-lstat.c (main): Likewise.
19175         * tests/test-math.c (main): Likewise.
19176         * tests/test-md5.c (main): Likewise.
19177         * tests/test-memchr2.c (main): Likewise.
19178         * tests/test-memrchr.c (main): Likewise.
19179         * tests/test-mkdir.c (main): Likewise.
19180         * tests/test-mkdirat.c (main): Likewise.
19181         * tests/test-mkfifoat.c (main): Likewise.
19182         * tests/test-open.c (main): Likewise.
19183         * tests/test-openat-safer.c (main): Likewise.
19184         * tests/test-openat.c (main): Likewise.
19185         * tests/test-quotearg.c (main): Likewise.
19186         * tests/test-rawmemchr.c (main): Likewise.
19187         * tests/test-readlink.c (main): Likewise.
19188         * tests/test-remove.c (main): Likewise.
19189         * tests/test-rename.c (main): Likewise.
19190         * tests/test-renameat.c (main): Likewise.
19191         * tests/test-rmdir.c (main): Likewise.
19192         * tests/test-sha1.c (main): Likewise.
19193         * tests/test-signal.c (main): Likewise.
19194         * tests/test-sigaction.c (main): Likewise.
19195         * tests/test-stat.c (main): Likewise.
19196         * tests/test-stat-time.c (main): Likewise.
19197         * tests/test-stddef.c (main): Likewise.
19198         * tests/test-stdint.c (main): Likewise.
19199         * tests/test-stdio.c (main): Likewise.
19200         * tests/test-stdlib.c (main): Likewise.
19201         * tests/test-strchrnul.c (main): Likewise.
19202         * tests/test-strerror.c (main): Likewise.
19203         * tests/test-string.c (main): Likewise.
19204         * tests/test-strtod.c (main): Likewise.
19205         * tests/test-strverscmp.c (main): Likewise.
19206         * tests/test-symlink.c (main): Likewise.
19207         * tests/test-symlinkat.c (main): Likewise.
19208         * tests/test-sys_stat.c (main): Likewise.
19209         * tests/test-sys_time.c (main): Likewise.
19210         * tests/test-time.c (main): Likewise.
19211         * tests/test-unistd.c (main): Likewise.
19212         * tests/test-unlink.c (main): Likewise.
19213         * tests/test-unlinkat.c (main): Likewise.
19214         * tests/test-utimens.c (main): Likewise.
19215         * tests/test-utimensat.c (main): Likewise.
19216         * tests/test-version-etc.c (main): Likewise.
19217         * tests/test-wchar.c (main): Likewise.
19218         * tests/test-wctype.c (main): Likewise.
19219         * tests/test-xprintf-posix.c (main): Likewise.
19220         * tests/test-posixtm.c (main): Likewise.
19221         (STREQ): Delete unused macro.
19222         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19223         shadowed variables.
19224         * tests/test-memchr.c (main): Likewise.
19225
19226 2009-10-21  Eric Blake  <ebb9@byu.net>
19227
19228         areadlinkat: avoid failure on older glibc
19229         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19230         rather than mis-comparing 0 against FUNC_RESULT of char*.
19231
19232 2009-10-21  Bruno Haible  <bruno@clisp.org>
19233
19234         * modules/stpncpy (License): Relicense under LGPLv2+.
19235         Reported by David Lutterkort <lutter@redhat.com>.
19236
19237 2009-10-20  Eric Blake  <ebb9@byu.net>
19238
19239         utimensat: work around Solaris 9 bug
19240         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19241         has trailing slash bugs.
19242         * tests/test-lutimens.h (test_lutimens): Enhance test.
19243         * tests/test-utimens.h (test_utimens): Likewise.
19244         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19245         * doc/posix-functions/utimes.texi (utimes): Likewise.
19246         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19247         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19248         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19249         * doc/posix-functions/futimens.texi (futimens): Likewise.
19250
19251         fdutimensat: new module
19252         * modules/fdutimensat: New file.
19253         * lib/fdutimensat.c (fdutimensat): Likewise.
19254         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19255         * MODULES.html.sh (File system functions): Mention module.
19256         * modules/fdutimensat-tests: New test.
19257         * tests/test-fdutimensat.c: Likewise.
19258
19259         doc: regenerate INSTALL
19260         * doc/INSTALL: Reflect recent autoconf update.
19261         * doc/INSTALL.ISO: Likewise.
19262         * doc/INSTALL.UTF-8: Likewise.
19263
19264 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19265
19266         acl: warn if ACL support is not detected
19267         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19268
19269 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19270
19271         * lib/nproc.h: Add extern "C" block for C++.
19272
19273 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19274             Bruno Haible  <bruno@clisp.org>
19275
19276         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19277         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19278         * doc/posix-functions/isalpha.texi: Likewise.
19279         * doc/posix-functions/isblank.texi: Likewise.
19280         * doc/posix-functions/iscntrl.texi: Likewise.
19281         * doc/posix-functions/isdigit.texi: Likewise.
19282         * doc/posix-functions/isgraph.texi: Likewise.
19283         * doc/posix-functions/islower.texi: Likewise.
19284         * doc/posix-functions/isprint.texi: Likewise.
19285         * doc/posix-functions/ispunct.texi: Likewise.
19286         * doc/posix-functions/isspace.texi: Likewise.
19287         * doc/posix-functions/isupper.texi: Likewise.
19288         * doc/posix-functions/isxdigit.texi: Likewise.
19289
19290 2009-10-18  Bruno Haible  <bruno@clisp.org>
19291
19292         Tests for module 'isblank'.
19293         * modules/isblank-tests: New file.
19294         * tests/test-isblank.c: New file.
19295
19296         New module 'isblank'.
19297         * lib/isblank.c: New file.
19298         * m4/isblank.m4: New file.
19299         * modules/isblank: New file.
19300         * doc/posix-functions/isblank.texi: Mention the new module.
19301
19302 2009-10-18  Bruno Haible  <bruno@clisp.org>
19303
19304         New module 'ctype'.
19305         * lib/ctype.in.h: New file.
19306         * m4/ctype.m4: New file.
19307         * modules/ctype: New file.
19308         * doc/posix-headers/ctype.texi: Mention the new module.
19309
19310 2009-10-18  Jim Meyering  <meyering@redhat.com>
19311
19312         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
19313         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
19314         right after its initialization, rather than farther down.
19315         Keeping these in close proximity makes it easier to ensure
19316         that each such variable is initialized.  E.g.,
19317
19318             LIB_CLOCK_GETTIME=
19319             AC_SUBST([LIB_CLOCK_GETTIME])
19320
19321         This change also increments these serial numbers.
19322         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
19323         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19325
19326 2009-10-18  Bruno Haible  <bruno@clisp.org>
19327
19328         Don't let environment variables perturb build.
19329         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
19330         (gl_PREREQ_GETHRXTIME): ... not here.
19331
19332 2009-10-18  Bruno Haible  <bruno@clisp.org>
19333
19334         Avoid symlink attack in localcharset module.
19335         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19336         (O_NOFOLLOW): Define fallback.
19337         (get_charset_aliases): Don't open the file if it is a symbolic link.
19338         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19339         gl_FCNTL_H.
19340         (gl_FCNTL_H): Require it.
19341         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19342         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19343         Reported by Fergal Glynn <fglynn@veracode.com>.
19344
19345 2009-10-18  Bruno Haible  <bruno@clisp.org>
19346
19347         Implement nproc for mingw.
19348         * lib/nproc.c: Include <windows.h>
19349         (num_processors): On native Windows platforms, try GetSystemInfo.
19350
19351 2009-10-18  Bruno Haible  <bruno@clisp.org>
19352
19353         Implement nproc for IRIX.
19354         * lib/nproc.c: Include <sys/sysmp.h>.
19355         (num_processors): On IRIX systems, try sysmp.
19356         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19357
19358 2009-10-18  Bruno Haible  <bruno@clisp.org>
19359
19360         Implement nproc for HP-UX.
19361         * lib/nproc.c: Include <sys/pstat.h>
19362         (num_processors): On HP-UX systems, try pstat_getdynamic.
19363         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19364         pstat_getdynamic.
19365
19366 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19367             Bruno Haible  <bruno@clisp.org>
19368
19369         Implement nproc for NetBSD, OpenBSD.
19370         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19371         (ARRAY_SIZE): New macro.
19372         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19373         * m4/nproc.m4: New file.
19374         * modules/nproc (Files): Add m4/nproc.m4.
19375         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19376         (Makefile.am): Instead, augment lib_SOURCES.
19377
19378 2009-10-18  Bruno Haible  <bruno@clisp.org>
19379
19380         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19381         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19382         sys/param.h.
19383
19384 2009-10-16  Eric Blake  <ebb9@byu.net>
19385
19386         utimensat: new module
19387         * modules/utimensat: New file.
19388         * lib/utimensat.c (utimensat): Likewise.
19389         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19390         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19391         so we can work around Linux bugs.
19392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19393         * modules/sys_stat (Makefile.am): Substitute them.
19394         * lib/sys_stat.in.h (utimensat): Declare it.
19395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19396         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19397         * modules/utimensat-tests: New test.
19398         * tests/test-utimensat.c: Likewise.
19399
19400         utimens: let lutimens work on non-symlinks
19401         * lib/utimens.c (lutimens): Fall back to utimens rather than
19402         failing with ENOSYS, when file is not a symlink.
19403         (utimens): Reduce redirection.
19404         * tests/test-lutimens.h (test_lutimens): Update test to cover
19405         non-symlinks.
19406         * tests/test-utimens.h (test_utimens): Update test to cover
19407         symlinks.
19408         * tests/test-utimens.c (main): Update caller.
19409
19410         utimens: cache whether utimensat syscall works
19411         * lib/utimens.c (utimensat_works_really): New cache variable.
19412         (fdutimens, lutimens): Use it to avoid failing syscall.
19413
19414         test-stat-time, test-utimens: improve portability
19415         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19416         ext4 on alpha, and for cygwin.
19417         * tests/test-utimens-common.h: New file.
19418         (nap): Factor delays into single function.
19419         * tests/test-lutimens.h (test_lutimens): Use new header.
19420         * tests/test-futimens.h (test_futimens): Likewise.
19421         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19422         timestamps to occur from same machine, as was done previously for
19423         test_utimens.
19424         * modules/utimens-tests (Files): Ship new file.
19425         * modules/futimens-tests (Files): Likewise.
19426         Reported in part by Jim Meyering.
19427
19428         sys_stat: sort replacement declarations
19429         * lib/sys_stat.in.h: Sort declarations.
19430         * lib/futimens.c (futimens): Fix typo.
19431
19432 2009-10-15  Jim Meyering  <meyering@redhat.com>
19433
19434         don't let environment settings perturb build
19435         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19436         could cause a configure-time and/or build-time malfunction.
19437         Typically, a configure-time function-in-library test is performed
19438         via code like this:
19439
19440           LIB_VAR=
19441           AC_SUBST([LIB_VAR])
19442           prefix_saved_LIBS=$LIBS
19443             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19444                        [test "$ac_cv_search_FUNC" = "none required" ||
19445                         LIB_VAR=$ac_cv_search_FUNC])
19446           LIBS=$prefix_saved_LIBS
19447
19448         However, in each of the files affected by this change, the LIB_VAR=
19449         initialization was omitted.  Thus, when set in the environment, its
19450         value would propagate into generated Makefiles when FUNC is not found
19451         in LIB_NAME.
19452         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19455
19456 2009-10-14  Eric Blake  <ebb9@byu.net>
19457
19458         fchdir: avoid infinite recursion in mingw
19459         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19460         recursing.
19461
19462         test-stat-time: port to mingw
19463         * tests/test-stat-time.c (force_unlink): Return a value.
19464         (test_ctime) [W32]: Fix compilation error.
19465         (nap): Don't call usleep with too large an argument.  Use
19466         force_unlink.
19467         * doc/pastposix-functions/usleep.texi (usleep): Document the
19468         portability issue.
19469
19470 2009-10-13  Jim Meyering  <meyering@redhat.com>
19471
19472         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19473         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19474         * modules/pipe-filter-ii: Likewise.
19475         * modules/sys_socket-tests: Likewise.
19476         * modules/tsearch-tests: Likewise.
19477         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19478         (check): Depend on it.
19479
19480 2009-10-12  Eric Blake  <ebb9@byu.net>
19481
19482         utimens-tests: port to NFS file systems
19483         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19484         comparisons to avoid spurious failures from timestamp drift
19485         between NFS machines.
19486
19487 2009-10-12  Eric Blake  <ebb9@byu.net>
19488
19489         stat-time-tests: minor cleanups
19490         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19491         * tests/test-stat-time.c (nap): Separate assignment from call.
19492         Suggested by Paolo Bonzini and Bruno Haible.
19493
19494         sys_stat: guarantee struct timespec
19495         * lib/sys_stat.in.h (includes): Always include <time.h>
19496         * modules/sys_stat (Depends-on): Add time.
19497         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19498         mode_t permission values.
19499         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19500         get at subsecond timestamps.
19501
19502 2009-10-10  Eric Blake  <ebb9@byu.net>
19503
19504         futimens: new module
19505         * modules/futimens: New file.
19506         * lib/futimens.c (futimens): Likewise.
19507         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19508         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19509         we can work around Linux bugs.
19510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19511         * modules/sys_stat (Makefile.am): Substitute them.
19512         * lib/sys_stat.in.h (futimens): Declare it.
19513         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19514         * doc/posix-functions/futimens.texi (futimens): Likewise.
19515         * modules/futimens-tests: New test.
19516         * tests/test-futimens.c: Likewise.
19517
19518         utimens: introduce fdutimens
19519         * lib/utimens.h (fdutimens): New prototype.
19520         * lib/utimens.c (gl_futimens): Move guts...
19521         (fdutimens): ...to new interface.
19522         * tests/test-utimens.c (do_fdutimens): Use it.
19523
19524         utimens: add UTIME_NOW and UTIME_OMIT support
19525         * lib/utimens.c (validate_timespec, update_timespec): New helper
19526         functions.
19527         (gl_futimens, lutimens): Use them.
19528         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19529         stdbool, sys_stat.
19530         (Link): Mention resulting library dependency.
19531         * modules/utimecmp (Link): Likewise.
19532         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19533         (Makefile.am): Pick up library dependency.
19534         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19535         definition.
19536         * tests/test-sys_stat.c: Test the definitions.
19537         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19538         * NEWS: Document library dependency.
19539
19540         utimecmp: support symlink timestamps
19541         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19542         hashing when possible.  Use pathconf when available.
19543         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19544         * modules/utimecmp (Depends-on): Add lstat.
19545
19546         utimens: add lutimens interface
19547         * lib/utimens.c (lutimens): New function.
19548         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19549         * lib/utimens.h (lutimens): Declare new interface.
19550         * tests/test-utimens.c (main): Enhance test.
19551         * tests/test-lutimens.h (test_lutimens): New file.
19552         * modules/utimens-tests (Files): Distribute it.
19553         (Depends-on): Add symlink.
19554         (configure.ac): Check for usleep.
19555
19556         utimens: validate futimens usage
19557         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19558         fewer syscalls on failure later on.  Avoid compiler warning on
19559         mingw.
19560         * modules/utimens (Depends-on): Add dup2.
19561
19562         utimens: add test
19563         * modules/utimens-tests: New test.
19564         * tests/test-utimens.h: New file.
19565         * tests/test-futimens.h: Likewise.
19566         * tests/test-utimens.c: Likewise.
19567
19568         doc: mention timestamp portability issues
19569         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19570         instead.
19571         * doc/posix-functions/utime.texi (utime): Likewise.
19572         * doc/posix-functions/utimes.texi (utimes): Likewise.
19573         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19574         instead.
19575         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19576         module.
19577         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19578         Mention weakness with symlink timestamps.
19579         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19580         to utimensat/futimens instead.
19581         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19582
19583         test-dup2: enhance test
19584         * tests/test-dup2.c (main): Also check AT_FDCWD.
19585
19586         test-stat-time: avoid more spurious failures
19587         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19588         xfs; and avoid race if the two timestamps cross quantization edge.
19589
19590         relocatable: prefer 'file system' over 'filesystem'
19591         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19592         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19593         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19594         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19595         * lib/relocatable.c (compute_curr_prefix): Likewise.
19596
19597 2009-10-10  Jim Meyering  <meyering@redhat.com>
19598
19599         stat-time-tests: check for the usleep function
19600         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19601
19602 2009-10-10  Bruno Haible  <bruno@clisp.org>
19603
19604         * modules/xnanosleep: Put the Link section after the Include section.
19605
19606 2009-10-09  Eric Blake  <ebb9@byu.net>
19607
19608         dup2: work around FreeBSD 6.1 bug
19609         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19610         * doc/posix-functions/dup2.texi (dup2): Document it.
19611         Reported by Nelson H. F. Beebe and Jim Meyering.
19612
19613         test-stat-time: port to buggy NFS clients
19614         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19615         (test_ctime): Also skip test if mtime and ctime are skewed.
19616
19617         maint: prefer 'file system' over 'filesystem'
19618         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19619         * doc/posix-functions/lstat.texi (lstat): Likewise.
19620         * lib/file-has-acl.c (file_has_acl): Likewise.
19621         * lib/fwriteerror.c [TEST]: Likewise.
19622         * tests/test-areadlink.h (test_areadlink): Likewise.
19623         * tests/test-areadlinkat-with-size.c (main): Likewise.
19624         * tests/test-areadlinkat.c (main): Likewise.
19625         * tests/test-canonicalize-lgpl.c (main): Likewise.
19626         * tests/test-canonicalize.c (main): Likewise.
19627         * tests/test-fstatat.c (main): Likewise.
19628         * tests/test-linkat.c (main): Likewise.
19629         * tests/test-lstat.h (test_lstat_func): Likewise.
19630         * tests/test-mkdir.h (test_mkdir): Likewise.
19631         * tests/test-readlink.h (test_readlink): Likewise.
19632         * tests/test-remove.c (main): Likewise.
19633         * tests/test-rename.h (test_rename): Likewise.
19634         * tests/test-renameat.c (main): Likewise.
19635         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19636         * tests/test-symlink.h (test_symlink): Likewise.
19637         * tests/test-symlinkat.c (main): Likewise.
19638         * tests/test-unlink.h (test_unlink_func): Likewise.
19639         * tests/test-unlinkat.c (main): Likewise.
19640
19641         maint: make realtime library usage explicit
19642         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19643         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19644         * modules/settime (Link): Likewise.
19645         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19646
19647         test-stat-time: speed up execution
19648         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19649         warning on mingw.
19650         (nap): New helper function.
19651         (prepare_test): Use it to reduce sleep time.
19652         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19653         execution.
19654         * modules/stat-time-tests (configure.ac): Check for usleep.
19655
19656 2009-10-09  Jim Meyering  <meyering@redhat.com>
19657
19658         selinux-h: always use getfilecon wrappers
19659         * lib/getfilecon.c: New file.
19660         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19661         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19662         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19663         (fgetfilecon): Provide a stub.
19664         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19665         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19666         file unconditionally.
19667         When <selinux/selinux.h> is found, arrange to use wrappers.
19668         * modules/selinux-h (Files): Add getfilecon.c.
19669         (Makefile.am): Substitute include-next-related bits
19670         into the now-always-generated selinux/selinux.h file.
19671         * doc/glibc-functions/lgetfilecon.texi: New file.
19672         * doc/glibc-functions/fgetfilecon.texi: New file.
19673         * doc/glibc-functions/getfilecon.texi: New file.
19674         * doc/glibc-functions/getfilecon-desc.texi: New file.
19675         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19676         which to pull in the new files.
19677         * MODULES.html.sh (Misc): Add selinux-h.
19678
19679 2009-10-08  Jim Meyering  <meyering@redhat.com>
19680
19681         unistd: fix comment typo
19682         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19683
19684 2009-10-08  Eric Blake  <ebb9@byu.net>
19685
19686         areadlink: use SIZE_MAX consistently
19687         * modules/areadlink (Depends-on): Add stdint.
19688         * modules/areadlink-with-size (Depends-on): Likewise.
19689         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19690         gives NULL; drop sys/types, since unistd gives size_t; and add
19691         stdint for SIZE_MAX.
19692         (SIZE_MAX): Rely on headers.
19693         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19694         and add stdint.
19695         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19696         (SIZE_MAX): Likewise.
19697         (INITIAL_BUF_SIZE): Turn into enum.
19698         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19699
19700 2009-10-08  Jim Meyering  <meyering@redhat.com>
19701
19702         areadlinkat: avoid compilation failure
19703         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19704         Fix typo in comment.
19705
19706 2009-10-07  Eric Blake  <ebb9@byu.net>
19707
19708         areadlinkat-with-size: new module
19709         * modules/areadlinkat-with-size: New module.
19710         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19711         * lib/areadlink.h (areadlinkat): Declare it.
19712         * MODULES.html.sh (File system functions): Mention it.
19713         * modules/areadlinkat-with-size-tests: New test.
19714         * tests/test-areadlinkat-with-size.c: New file.
19715
19716         xreadlinkat: new module
19717         * modules/xreadlinkat: New module.
19718         * lib/xreadlinkat.c (xreadlinkat): New file.
19719         * lib/xreadlink.h (xreadlinkat): Declare it.
19720         * MODULES.html.sh (File system functions): Mention it.
19721
19722         areadlinkat: new module
19723         * lib/at-func.c (FUNC_FAIL): New define.
19724         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19725         * modules/areadlinkat: New module.
19726         * lib/linkat.c (areadlinkat): Move...
19727         * lib/areadlinkat.c (areadlinkat): ...to new file.
19728         * lib/areadlink.h (areadlinkat): Declare it.
19729         * modules/linkat (Depends-on): Add areadlinkat.
19730         * MODULES.html.sh (File system functions): Mention it.
19731         * modules/areadlinkat-tests: New test.
19732         * tests/test-areadlinkat.c: New file.
19733
19734         areadlink, areadlink-with-size: add tests
19735         * modules/areadlink-tests: New test.
19736         * modules/areadlink-with-size-tests: Likewise.
19737         * tests/test-areadlink.h: New file.
19738         * tests/test-areadlink.c: Likewise.
19739         * tests/test-areadlink-with-size.c: Likewise.
19740
19741         maint: minor cleanups
19742         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19743         _UNUSED_PARAMETER_ instead.
19744         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19745         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19746         * modules/linkat-tests (Files): Distribute test-link.h.
19747
19748         openat, utimens: whitespace cleanup
19749         * lib/openat.c: Prefer space throughout, rather than mix of 8
19750         spaces vs. tabs.
19751         * lib/at-func.c: Likewise.
19752         * lib/utimens.c: Likewise.
19753
19754         openat: avoid using wrong fd
19755         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19756         working directory chooses same fd.
19757         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19758
19759         mkdir, mkdirat: fix cygwin 1.5.x bug
19760         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19761         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19762         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19763         bug.
19764         (gl_PREREQ_MKDIR): Delete unused macro.
19765         * modules/mkdir (Files): Track file rename.
19766         (configure.ac): Update macro name.
19767         * modules/openat (Depends-on): Add mkdir.
19768         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19769
19770         mkdir, mkdirat: add tests
19771         * modules/mkdir-tests: New test.
19772         * tests/test-mkdir.h: New file.
19773         * tests/test-mkdir.c: Likewise.
19774         * tests/test-mkdirat.c: Likewise.
19775         * modules/openat-tests (Files): Add new files.
19776         (Makefile.am): Run new test.
19777
19778 2009-10-06  Eric Blake  <ebb9@byu.net>
19779
19780         doc: tweak *at function documentation
19781         * doc/posix-functions/faccessat.texi (faccessat): Mention
19782         known issue with replacement.
19783         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19784         * doc/posix-functions/linkat.texi (linkat): Likewise.
19785         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19786         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19787         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19788         * doc/posix-functions/renameat.texi (renameat): Likewise.
19789         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19790
19791         openat: fix GNU/Hurd bug in unlinkat
19792         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19793         broken.
19794         * doc/posix-functions/unlink.texi (unlink): Document this.
19795         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19796
19797         fdopendir: fix GNU/Hurd bug
19798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19799         allowing non-directory fds.
19800         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19802         * modules/dirent (Makefile.am): Substitute it.
19803         * lib/dirent.in.h (fdopendir): Declare replacement.
19804         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19805         * tests/test-fdopendir.c (main): Test something other than
19806         /dev/null, since on Hurd that behaves like a directory.
19807
19808         test-symlink: port to GNU/Hurd
19809         * tests/test-symlink.h (test_symlink): Relax expected errno.
19810
19811         doc: tweak more cygwin information
19812         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19813         now compatible with glibc.
19814         * doc/posix-functions/getopt.texi (getopt): Likewise.
19815
19816         getopt-gnu: add another test
19817         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19818         guarantee behavior relied on by m4.
19819         * tests/test-getopt.c (main): Use it.
19820         * modules/getopt-posix-tests (Depends-on): Add setenv.
19821         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19822
19823         getopt: fix compilation on darwin
19824         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19825         include.
19826         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19827         Reported by Ludovic Courtès.
19828
19829 2009-10-06  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/size_max (Description): Discourage its use.
19832         Reported by Simon Josefsson.
19833
19834 2009-10-06  Jim Meyering  <meyering@redhat.com>
19835
19836         linkat: avoid compilation failure
19837         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19838
19839 2009-10-05  Eric Blake  <ebb9@byu.net>
19840
19841         linkat: support Linux 2.6.17
19842         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19843         linkat on Linux, but allow cache variable override.
19844         * lib/linkat.c (rpl_linkat): Define override.
19845         * modules/linkat (Depends-on): Add symlinkat.
19846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19847         * modules/unistd (Makefile.am): Substitute it.
19848         * lib/unistd.in.h (linkat): Declare replacement.
19849         Reported by Pádraig Brady.
19850
19851         quotearg: port test to systems with C.UTF-8 locale
19852         * tests/test-quotearg.c (struct result_strings): Add another
19853         member, differentiating between C.ASCII and C.UTF-8 handling.
19854         (compare_strings): Add parameter.
19855         (main): Adjust all callers.
19856
19857         getopt: avoid clash with FreeBSD _getopt_internal
19858         * lib/getopt.in.h (_getopt_internal): Override the name.
19859         * lib/getopt_int.h (includes): Pick up any overrides.
19860         Reported by Reuben Thomas.
19861
19862         hash: allow C89 compilation
19863         * lib/hash.c (check_tuning): Move declaration before statement.
19864         Reported by Reuben Thomas.
19865
19866 2009-10-05  Karl Berry  <karl@gnu.org>
19867
19868         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19869
19870 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19871             Bruno Haible  <bruno@clisp.org>
19872
19873         * lib/uname.c (uname): Use a table-driven algorithm to compute
19874         Windows NT versions.
19875
19876 2009-10-04  Bruno Haible  <bruno@clisp.org>
19877
19878         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19879         program_invocation_short_name.
19880         * modules/progname (configure.ac): Test for presence of
19881         program_invocation_short_name.
19882         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19883
19884 2009-10-04  Bruno Haible  <bruno@clisp.org>
19885
19886         * lib/progname.c (set_program_name): Fix comment.
19887         Reported by Jim Meyering.
19888
19889 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19890             Bruno Haible  <bruno@clisp.org>
19891
19892         * lib/uname.c: Include <string.h>.
19893         (uname): Do only one call to GetVersionEx in the common case.
19894
19895 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19896             Bruno Haible  <bruno@clisp.org>
19897
19898         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19899         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19900         (uname): Add support for Windows CE and various non-x86 CPU types.
19901
19902 2009-10-03  Bruno Haible  <bruno@clisp.org>
19903
19904         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19905         invocation to tests/configure.ac.
19906         Reported by Ian Beckwith <ianb@erislabs.net>.
19907
19908 2009-10-02  Eric Blake  <ebb9@byu.net>
19909
19910         fchdir: avoid compiler warning
19911         * lib/fchdir.c (canonicalize_file_name)
19912         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19913
19914         test-open: support mingw errno values
19915         * tests/test-open.h (test_open): Relax test.
19916         * tests/test-fopen.h (test_fopen): Likewise.
19917         * tests/test-openat-safer.c (main): Likewise.
19918
19919         open: fix opening directory on mingw
19920         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19921
19922         test-open: on GNU/Hurd, /dev/null is a directory
19923         * tests/test-fopen.h (main): Rename...
19924         (test_fopen): ...to this.  Use a guaranteed non-directory when
19925         confirming open behavior on trailing slash.
19926         * tests/test-openat-safer.c (main): Likewise.
19927         * tests/test-open.h (main): Likewise....
19928         (test_open): ...to this.
19929         * tests/test-fopen.c (main): Adjust caller.
19930         * tests/test-fopen-safer.c (main): Likewise.
19931         * tests/test-open.c (main): Likewise.
19932         * tests/test-fcntl-safer.c (main): Likewise.
19933         Reported by Samuel Thibault.
19934
19935         rename, fchdir: don't ignore chdir failure
19936         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19937         * lib/rename.c (rpl_rename) [W32]: Likewise.
19938         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19939         an empty destination directory if source cannot be renamed,
19940         although there is still possibility for failure.
19941         * doc/posix-functions/rename.texi (rename): Document the race.
19942         Reported by Jim Meyering.
19943
19944         maint: cleanup whitespace in recent commits
19945         * lib/rename.c (rpl_rename): Remove tabs.
19946         * tests/test-link.h (test_link): Likewise.
19947         * lib/fchdir.c (get_name): Likewise.
19948         Reported by Jim Meyering.
19949
19950 2009-10-02  Ben Pfaff  <blp@gnu.org>
19951
19952         relocatable-prog-wrapper: Add missing dependency on
19953         double-slash-root.
19954         * modules/relocatable-prog-wrapper: Add dependency.
19955         Reported by Ian Beckwith <ianb@erislabs.net>.
19956
19957 2009-10-02  Eric Blake  <ebb9@byu.net>
19958
19959         renameat: fix Solaris bugs
19960         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19961         needed fixing.
19962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19963         * modules/stdio (Makefile.am): Substitute it.
19964         * lib/stdio.in.h (renameat): Declare replacement.
19965         * lib/renameat.c (rpl_renameat): Implement fix.
19966
19967         renameat: new module
19968         * modules/renameat: New file.
19969         * lib/renameat.c (renameat): Likewise.
19970         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19972         * modules/stdio (Makefile.am): Substitute them.
19973         * lib/stdio.in.h (renameat): Declare it.
19974         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19975         * doc/posix-functions/renameat.texi (renameat): Likewise.
19976         * modules/renameat-tests: New test.
19977         * tests/test-renameat.c: Likewise.
19978
19979         rename: fix mingw bugs
19980         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19981         directory overwrite bugs.
19982
19983         rename: fix another cygwin 1.5 bug
19984         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19985         checks.
19986         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19987         unnecessary cygwin workarounds.  Also work around bug with moving
19988         full directory onto an empty one.
19989         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19990
19991         rename-dest-slash: merge into rename module
19992         * modules/rename-dest-slash (Status): Mark obsolete.
19993         (Depends-on): Add rename.
19994         (Files): Let rename do it all.
19995         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19996         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19997         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19998         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19999         * lib/rename.c (rpl_rename): Update comments.
20000
20001         rename: fix cygwin 1.5.x bugs
20002         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20003         * lib/rename.c (rpl_rename): Work around them.
20004         * modules/rename (Depends-on): Add same-inode.
20005
20006         rename: fix Solaris 10 bug
20007         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20008         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20009         was the only bug.
20010
20011         rename: fix Solaris 9 bug
20012         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20013         on non-directory.  Avoid calling exit.
20014         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20015         strdup.
20016         * modules/rename-tests (Depends-on): Drop lstat.
20017         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20018         (gl_PREREQ_RENAME): Delete unused macro.
20019
20020         rename-dest-slash: fix NetBSD bug
20021         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20022         links.
20023         * modules/rename-dest-slash (Depends-on): Add same-inode.
20024
20025         rename-tests: new test, exposes several platform bugs
20026         * modules/rename-tests: New file.
20027         * tests/test-rename.h: Likewise.
20028         * tests/test-rename.c: Likewise.
20029         * doc/posix-functions/rename.texi (rename): Improve documentation,
20030         including bugs that will eventually be fixed in gnulib.
20031
20032 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20033
20034         * lib/uname.c: Include <stdlib.h>
20035         (uname): Assume version info is available.
20036
20037 2009-10-02  Jim Meyering  <meyering@redhat.com>
20038
20039         gnu-web-doc-update: correct --help output
20040         * build-aux/gnu-web-doc-update: Make --help output relevant.
20041
20042         gnu-web-doc-update: add standard options
20043         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20044
20045         gnu-web-doc-update: New module.
20046         Use this script to automatically update the on-line web documentation
20047         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20048         * modules/gnu-web-doc-update: New file, from coreutils.
20049         * build-aux/gnu-web-doc-update: New script.
20050
20051 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20052
20053         link: LoadLibrary is not needed.
20054         * lib/link.c: Use GetModuleHandle.
20055
20056 2009-10-01  Eric Blake  <ebb9@byu.net>
20057
20058         getopt: bump serial number
20059         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20060         change.
20061
20062         tests: tighten link, rmdir, and remove tests
20063         * tests/test-link.h (includes): No need to use <config.h> here.
20064         Clean up if directory hard link was created, otherwise test for
20065         trailing '.'.
20066         * tests/test-linkat.c (main): Simplify.
20067         * tests/test-remove.c (main): Enhance test for trailing '.'.
20068         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20069
20070 2009-10-01  Jim Meyering  <meyering@redhat.com>
20071
20072         maint.mk: requiring "make major" was annoying, for a "minor" release.
20073         What is intended is "stable", to contrast with alpha and beta,
20074         so require "make stable", not "make major".
20075         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20076         (get_tool_versions): Likewise.
20077         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20078
20079 2009-09-30  Ben Pfaff  <blp@gnu.org>
20080
20081         Fix broken build of replacement for Windows tmpfile().
20082         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20083         flags argument added along with the 'mkostemp' module.
20084
20085 2009-09-28  Bruno Haible  <bruno@clisp.org>
20086
20087         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20088         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20089         to 'remove_elt'.
20090         (gl_list_remove): Update.
20091         * lib/gl_list.c (gl_list_remove): Update.
20092         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20093         to 'remove_elt'.
20094         (gl_oset_remove): Update.
20095         * lib/gl_list.c (gl_oset_remove): Update.
20096         Reported by Eric Blake.
20097
20098 2009-09-28  Eric Blake  <ebb9@byu.net>
20099
20100         doc: mention yet more cygwin 1.7 status
20101         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20102         cygwin.
20103         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20104         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20105
20106         argp: fix test failure
20107         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20108         that are not upper-case.  Pass correct range to tolower.
20109
20110 2009-09-27  Jim Meyering  <meyering@redhat.com>
20111
20112         test-yesno: work around sparc-dash here-document infelicity
20113         Without this change, the literal \177 byte in a here document
20114         would make dash 0.5.5.1-3 access uninitialized memory.
20115         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20116         Instead, use a marker, "@", and filter through tr to create the desired
20117         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20118
20119 2009-09-27  Bruno Haible  <bruno@clisp.org>
20120
20121         Disable untested support for new flavours of ACLs on AIX.
20122         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20123         progress.
20124         * lib/set-mode-acl.c (qset_acl): Likewise.
20125
20126 2008-12-07  Bruno Haible  <bruno@clisp.org>
20127
20128         Add support for new flavours of ACLs on AIX. (Untested.)
20129         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20130         (file_has_acl): Add support for newer AIX.
20131         * lib/set-mode-acl.c (qset_acl): Likewise.
20132         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20133         Rainer Tammer <tammer@tammer.net>.
20134
20135 2009-09-26  Eric Blake  <ebb9@byu.net>
20136
20137         argp: fix compilation of getopt
20138         * lib/getopt.in.h (includes): Use different guard than glibc.
20139         Reported by Sergey Poznyakoff.
20140
20141         doc: mention more cygwin 1.7 status
20142         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20143         bug.
20144         * doc/posix-functions/execl.texi (execl): Likewise.
20145         * doc/posix-functions/execle.texi (execle): Likewise.
20146         * doc/posix-functions/execlp.texi (execlp): Likewise.
20147         * doc/posix-functions/execv.texi (execv): Likewise.
20148         * doc/posix-functions/execve.texi (execve): Likewise.
20149         * doc/posix-functions/execvp.texi (execvp): Likewise.
20150         * doc/glibc-functions/canonicalize_file_name.texi
20151         (canonicalize_file_name): Cygwin 1.7 now provides this.
20152         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20153         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20154         on AT_SYMLINK_NOFOLLOW.
20155
20156 2009-09-24  Eric Blake  <ebb9@byu.net>
20157
20158         test-linkat: make test more robust
20159         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20160
20161         getopt: fix inclusion guards for cygwin
20162         * modules/getopt-posix (Depends-on): Add include-next.
20163         (Makefile.am): Substitute more items in replacement header.
20164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20165         <getopt.h>.
20166         * lib/getopt.in.h (includes): Use split inclusion guard, and
20167         prefer <getopt.h> over include <unistd.h> when one is present.
20168         (option): Also override name of 'struct option'.
20169
20170         same-inode: revert prior change; it is not yet ready
20171         * NEWS: Undo mention of this change.
20172         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20173         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20174         * lib/cycle-check.c (cycle_check): Likewise.
20175         * lib/same.c (same_name): Likewise.
20176         * lib/at-func2.c (at_func2): Likewise.
20177
20178 2009-09-23  Eric Blake  <ebb9@byu.net>
20179
20180         linkat: new module
20181         * modules/linkat: New file.
20182         * lib/at-func2.c (at_func2): Likewise.
20183         * lib/linkat.c (linkat): Likewise.
20184         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20185         * lib/openat-priv.h (at_func2): Add declaration.
20186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20187         * modules/unistd (Makefile.am): Substitute them.
20188         * lib/unistd.in.h (linkat): Declare it.
20189         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20190         * doc/posix-functions/linkat.texi (linkat): Likewise.
20191         * doc/posix-functions/link.texi (link): Tweak wording.
20192         * tests/test-link.c (main): Move guts...
20193         * tests/test-link.h (test_link): ...into new file.
20194         * modules/linkat-tests: New test.
20195         * tests/test-linkat.c: Likewise.
20196         * modules/link-tests (Files): Ship new file.
20197         (Depends-on): Add stdbool.
20198
20199         dirname: add library-safe mdir_name
20200         * lib/dirname.h (mdir_name): New prototype.
20201         * lib/dirname.c (dir_name): Move guts...
20202         (mdir_name): ...to new function that avoids xalloc_die.
20203
20204         fchdir: another mingw fix
20205         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20206         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20207         on mingw (where it has not yet been ported), and make it optional
20208         elsewhere.
20209         (_gl_register_fd): Use it.
20210
20211         same-inode: make SAME_INODE tri-state, to port to mingw
20212         * NEWS: Mention this change.
20213         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20214         st_ino always being 0.
20215         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20216         * lib/cycle-check.c (cycle_check): Likewise.
20217         * lib/same.c (same_name): Likewise.
20218
20219         lstat: avoid mingw compilation error
20220         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20222         lstat ourselves.
20223         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20224         was adequate.
20225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20226         the checks for lstat.
20227         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20228
20229         link: fix test failure on Solaris 9
20230         * lib/link.c (rpl_link): Don't assume link will catch bogus
20231         trailing slash on source.
20232
20233         test-symlinkat: enhance test
20234         * tests/test-readlink.c (main): Move guts...
20235         * tests/test-readlink.h (test_readlink): ...into new file.
20236         * tests/test-symlink.c (main): Move guts...
20237         * tests/test-symlink.h (test_symlink): ...into new file.
20238         * tests/test-symlinkat.c (main): Use new files for further
20239         coverage.
20240         (do_symlink, do_readlink): New helper functions.
20241         * modules/symlink-tests (Files): Ship new file.
20242         (Depends-on): Add stdbool.
20243         * modules/readlink-tests (Files): Ship new file.
20244         (Depends-on): Add stdbool.
20245         * modules/symlinkat-tests (Files): Use new files.
20246
20247 2009-09-23  Eric Blake  <ebb9@byu.net>
20248
20249         readlink: document portability issue with symlink length
20250         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20251         systems have bogus st_size on symlinks, and mention the
20252         areadlink-with-size module.
20253         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20254         * doc/posix-functions/readlink.texi (readlink): Mention the
20255         areadlink module, and ERANGE failure.
20256         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20257         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20258
20259         readlink: fix Solaris 9 bug with trailing slash
20260         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20261         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20262         * doc/posix-functions/readlink.texi (readlink): Document this.
20263         * modules/readlink-tests: New test.
20264         * tests/test-readlink.c: Likewise.
20265
20266         readlink: fix cygwin 1.5.x bug with return type
20267         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20268         * lib/unistd.in.h (readlink): Use ssize_t.
20269         * lib/readlink.c (readlink): Likewise.
20270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20271         * modules/unistd (Makefile.am): Substitute it.
20272         * lib/unistd.in.h (readlink): Declare replacement.
20273         * doc/posix-functions/readlink.texi (readlink): Document this.
20274
20275         symlink: use throughout gnulib
20276         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20277         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20278         symlink is not used.
20279         * modules/symlinkat (Depends-on): Add symlink.
20280         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20281         * modules/canonicalize-tests (Depends-on): Likewise.
20282         * modules/lstat-tests (Depends-on): Likewise.
20283         * modules/openat-tests (Depends-on): Likewise.
20284         * modules/remove-tests (Depends-on): Likewise.
20285         * modules/rmdir-tests (Depends-on): Likewise.
20286         * modules/unlink-tests (Depends-on): Likewise.
20287         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20288         * tests/test-canonicalize.c (symlink): Likewise.
20289         * tests/test-fstatat.c (symlink): Likewise.
20290         * tests/test-lstat.c (symlink): Likewise.
20291         * tests/test-remove.c (symlink): Likewise.
20292         * tests/test-rmdir.c (symlink): Likewise.
20293         * tests/test-unlink.c (symlink): Likewise.
20294         * tests/test-unlinkat.c (symlink): Likewise.
20295
20296         symlink: new module, for Solaris 9 bug
20297         * modules/symlink: New file.
20298         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20299         * lib/symlink.c: Likewise.
20300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20301         * modules/unistd (Makefile.am): Substitute them.
20302         * lib/unistd.in.h (symlink): Declare replacement.
20303         * MODULES.html.sh (File system functions): Mention it.
20304         * doc/posix-functions/symlink.texi (symlink): Likewise.
20305         * modules/symlink-tests: New test.
20306         * tests/test-symlink.c: Likewise.
20307
20308 2009-09-23  Bruno Haible  <bruno@clisp.org>
20309
20310         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
20311         when needed.
20312         Test case: gnulib-tool --import --with-tests atexit inttypes.
20313         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
20314
20315 2009-09-23  Bruno Haible  <bruno@clisp.org>
20316
20317         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
20318         subcommand, not in a subshell.
20319
20320 2009-09-22  Eric Blake  <ebb9@byu.net>
20321
20322         unistd: sort replacement declarations
20323         * lib/unistd.in.h: Sort declarations.
20324
20325         open, openat: minor optimization
20326         * lib/open.c (open): If open succeeded, len is non-zero.
20327         * lib/openat.c (rpl_openat): Likewise.
20328
20329         link-follow: ensure correct result
20330         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
20331         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
20332         distinguish between possible failures.
20333
20334 2009-09-21  Eric Blake  <ebb9@byu.net>
20335
20336         fts: avoid compiler warning
20337         * lib/fts.c (dirent_inode_sort_may_be_useful)
20338         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20339
20340 2009-09-19  Bruno Haible  <bruno@clisp.org>
20341
20342         * lib/progreloc.c (canonicalize_file_name): New declaration.
20343
20344 2009-09-19  Eric Blake  <ebb9@byu.net>
20345
20346         link: fix quoting
20347         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20348
20349         openat: fix openat bugs on Solaris 9
20350         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20351         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20352         * modules/openat (Depends-on): Add open.
20353         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20354         * modules/fcntl-h (Makefile.am): Substitute it.
20355         * lib/fcntl.in.h (openat): Declare replacement.
20356         * doc/posix-functions/openat.texi (openat): Document this.
20357
20358         openat: move fstatat and unlinkat into correct files
20359         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20360         compiled.
20361         * lib/openat.c (fstatat, unlinkat): Move...
20362         * lib/fstatat.c (fstatat): ...into correct files.
20363         * lib/unlinkat.c (unlinkat): Likewise.
20364
20365         openat: fix unlinkat bugs on Solaris 9
20366         * lib/unlinkat.c (unlinkat): New file.
20367         * modules/openat (Depends-on): Add unlink.
20368         (Files): Distribute it.
20369         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20370         trailing slash behavior is broken.
20371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20372         * modules/unistd (Makefile.am): Substitute it.
20373         * lib/unistd.in.h (unlinkat): Declare replacement.
20374         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20375
20376         openat: fix fstatat bugs on Solaris 9
20377         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20378         stat.
20379         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20380
20381         test-unlinkat: enhance test, to expose Solaris 9 bug
20382         * tests/test-unlink.c (main): Factor guts...
20383         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20384         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20385         * tests/test-rmdir.c (main): Adjust caller.
20386         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20387         (unlinker): New helper function.
20388         (rmdirat): Enhance check.
20389         * modules/rmdir-tests (Depends-on): Add stdbool.
20390         * modules/unlink-tests (Depends-on): Likewise.
20391         (Files): Add test-unlink.h.
20392         * modules/openat-tests (Files): Likewise.
20393         (Depends-on): Add unlinkdir.
20394
20395         test-fstatat: new test, to expose Solaris 9 bugs
20396         * tests/test-stat.c (main): Factor guts...
20397         * tests/test-stat.h (test_stat_func): ...into new file.
20398         * tests/test-lstat.c (main): Factor guts...
20399         * tests/test-lstat.h (test_lstat_func): ...into new file.
20400         * tests/test-fstatat.c: New file.
20401         * modules/stat-tests (Files): Add test-stat.h.
20402         * modules/lstat-tests (Files): Add test-lstat.h.
20403         (Depends-on): Add stdbool.
20404         * modules/openat-tests (Depends-on): Add pathmax.
20405         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20406         (Makefile.am): Run new test.
20407
20408         remove: new module, for mingw and Solaris 9 bugs
20409         * modules/remove: New file.
20410         * lib/remove.c: Likewise.
20411         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20413         * modules/stdio (Makefile.am): Use them.
20414         * lib/stdio.in.h (remove): Declare replacement.
20415         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20416         * doc/posix-functions/remove.texi (remove): Likewise.
20417         * modules/remove-tests: New test.
20418         * tests/test-remove.c: Likewise.
20419
20420         unlink: new module, for Solaris 9 bug
20421         * modules/unlink: New file.
20422         * lib/unlink.c: Likewise.
20423         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20425         * modules/unistd (Makefile.am): Use them.
20426         * lib/unistd.in.h (stat): Declare replacement.
20427         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20428         * doc/posix-functions/unlink.texi (unlink): Likewise.
20429         * modules/unlink-tests: New test.
20430         * tests/test-unlink.c: Likewise.
20431
20432         lstat: fix Solaris 9 bug
20433         * lib/lstat.c (lstat): Also check for trailing slash on
20434         non-symlink, non-directories.  Use stat module to simplify logic.
20435         * doc/posix-functions/lstat.texi (lstat): Document it.
20436         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20437         (configure.ac): Check for symlink.
20438         * tests/test-lstat.c (main): Add more tests.
20439
20440         stat: add as dependency to other modules
20441         * modules/chown (Depends-on): Add stat.
20442         * modules/euidaccess (Depends-on): Likewise.
20443         * modules/fchdir (Depends-on): Likewise.
20444         * modules/isdir (Depends-on): Likewise.
20445         * modules/link (Depends-on): Likewise.
20446         * modules/lstat (Depends-on): Likewise.
20447         * modules/mkdir-p (Depends-on): Likewise.
20448         * modules/modechange (Depends-on): Likewise.
20449         * modules/open (Depends-on): Likewise.
20450         * modules/readlink (Depends-on): Likewise.
20451         * modules/same (Depends-on): Likewise.
20452
20453         stat: fix Solaris 9 bug
20454         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20455         slash.
20456         * lib/stat.c (rpl_stat): Work around it.
20457         * doc/posix-functions/stat.texi (stat): Update documentation.
20458
20459         stat: new module, for mingw bug
20460         * modules/stat: New file.
20461         * lib/stat.c: Likewise.
20462         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20464         * modules/sys_stat (Makefile.am): Use them.
20465         * lib/sys_stat.in.h (stat): Declare replacement.
20466         * lib/openat.c (fstatat): Deal with lstat and stat being function
20467         macros.
20468         * modules/openat (Depends-on): Add inline.
20469         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20470         * doc/posix-functions/stat.texi (stat): Likewise.
20471         * modules/stat-tests: New test.
20472         * tests/test-stat.c: Likewise.
20473
20474 2009-09-19  Jim Meyering  <meyering@redhat.com>
20475
20476         syntax-check: detect unnecessary inclusion of canonicalize.h
20477         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20478
20479 2009-09-19  Eric Blake  <ebb9@byu.net>
20480
20481         canonicalize-lgpl: adjust clients to use correct header
20482         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20483         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20484         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20485         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20486         * lib/progreloc.c (includes): Likewise.
20487
20488 2009-09-19  Jim Meyering  <meyering@redhat.com>
20489
20490         test-posixtm.c: correct a comment
20491         * tests/test-posixtm.c: Correct first-line comment.
20492         Spotted by Eric Blake.
20493
20494 2009-09-16  Jim Meyering  <meyering@redhat.com>
20495
20496         posixtm-tests: make T const-correct; add a test case
20497         * tests/test-posixtm.c (T): Declare const.
20498         Add a test for -(2^31+1).
20499         Remove useless can-succeed-only-in-2002 test.
20500
20501         posixtm-tests: adjust the sole failing test
20502         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20503         expected output matches what mktime now produces.  Cross-checked via
20504         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20505
20506         posixtm: move #ifdef'd tests into a new module
20507         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20508         * tests/test-posixtm.c: ... this new file.
20509         * modules/posixtm-tests: New module.
20510
20511 2009-09-19  Eric Blake  <ebb9@byu.net>
20512
20513         openat: simplify use of at-func.c
20514         * lib/at-func.c (includes): Include prerequisites here, to
20515         simplify requirements on client files.
20516         * lib/openat-priv.h: Add double-inclusion guard.
20517         * lib/faccessat.c (includes): Simplify.
20518         * lib/fchmodat.c (includes): Likewise.
20519         * lib/fchownat.c (includes): Likewise.
20520         * lib/mkdirat.c (includes): Likewise.
20521         * lib/mkfifoat.c (includes): Likewise.
20522         * lib/symlinkat.c (includes): Likewise.
20523
20524         openat: allow return of fd 0
20525         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20526         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20527         unistd-safer.
20528         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20529         <fcntl.h>; this module does not leak fds.
20530         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20531         must be allowed to return 0, leaving openat_safer to add the
20532         safety.
20533         (openat_permissive): Avoid writing to just-opened fd 2 if
20534         restoring the current directory fails.
20535         * lib/openat-die.c (openat_restore_fail): Add comment.
20536         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20537         (save_cwd): Guarantee safe fd, but without use of open_safer.
20538         * tests/test-openat.c: New test.
20539         * modules/openat-tests (Files, Makefile.am): Distribute and build
20540         new file.
20541
20542         relocatable-prog-wrapper: fix build
20543         * modules/relocatable-prog-wrapper (Files): Update name of
20544         canonicalize m4 file, broken on 2009-09-17.
20545         Reported by emad hajjar <aleppos@hotmail.com>.
20546
20547 2009-09-19  Bruno Haible  <bruno@clisp.org>
20548
20549         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20550         * lib/safe-alloc.c: Likewise.
20551         Reported by Ian Beckwith <ianb@erislabs.net>.
20552
20553 2009-09-18  Bruno Haible  <bruno@clisp.org>
20554
20555         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20556         Reported by <erobles@sensacd.com.mx>.
20557
20558 2009-09-17  Eric Blake  <ebb9@byu.net>
20559
20560         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20561         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20562         slashes when checking if last component is missing.
20563         * tests/test-canonicalize.c (main): Test this.
20564
20565         canonicalize, canonicalize-lgpl: honor // if distinct from /
20566         * modules/canonicalize (Files): Add double-slash-root.m4.
20567         * modules/canonicalize-lgpl (Files): Likewise.
20568         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20569         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20570         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20571         fallback definition.
20572         (canonicalize_filename_mode): Use it to protect //.
20573         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20574         (__realpath): Likewise.
20575         * tests/test-canonicalize.c (main): Test this.
20576         * tests/test-canonicalize-lgpl.c (main): Likewise.
20577         * modules/canonicalize-tests (Depends-on): Add same-inode.
20578         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20579
20580         canonicalize-lgpl: fix glibc bug with trailing slash
20581         * m4/canonicalize-lgpl.m4: Move contents...
20582         * m4/canonicalize.m4: ...here.
20583         (gl_CANONICALIZE_LGPL): Factor realpath check...
20584         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20585         glibc 2.3.5 bug, fixed 2005-04-27.
20586         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20587         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20588         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20589         * modules/canonicalize-lgpl (Files): Manage file rename.
20590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20591         * modules/stdlib (Makefile.am): Substitute witness.
20592         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20593         is needed.
20594         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20595         replacement is required.
20596         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20597         * doc/glibc-functions/canonicalize_file_name.texi
20598         (canonicalize_file_name): Document this.
20599         * doc/posix-functions/realpath.texi (realpath): Likewise.
20600
20601         canonicalize-lgpl: reject non-directory with trailing slash
20602         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20603         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20604         catches failures in glibc 2.3.5.
20605         * tests/test-canonicalize.c (main): Likewise.
20606
20607         canonicalize-lgpl: use native realpath if it works
20608         * lib/canonicalize-lgpl.c (realpath): Guard with
20609         FUNC_REALPATH_WORKS.
20610         * lib/stdlib.in.h (realpath): Make declaration optional based on
20611         HAVE_REALPATH.
20612         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20613         native realpath works.
20614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20615         * modules/stdlib (Makefile.am): Substitute witness.
20616
20617         canonicalize, canonicalize-lgpl: use <stdlib.h>
20618         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20619         (Include): Mention <stdlib.h>.
20620         (configure.ac): Mention functions we provide.
20621         * modules/canonicalize (configure.ac): Likewise.
20622         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20623         realpath if canonicalize_file_name is missing.
20624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20625         * modules/stdlib (Makefile.am): Substitute witnesses.
20626         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20627         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20628         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20629         * NEWS: Document this.
20630         * doc/glibc-functions/canonicalize_file_name.texi
20631         (canonicalize_file_name): Likewise.
20632         * doc/posix-functions/realpath.texi (realpath): Likewise.
20633         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20634
20635         test-canonicalize: consolidate into single C program
20636         * tests/test-canonicalize.sh: Delete; move setup into...
20637         * tests/test-canonicalize.c (main): ...the program, making it
20638         easier to run in debugger.  Add some tests.
20639         * modules/canonicalize-tests (Files): Remove unused file.
20640         (Depends-on): Add progname.
20641         (configure.ac, Makefile.am): Simplify.
20642
20643         test-canonicalize-lgpl: consolidate into single C program
20644         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20645         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20646         easier to run in debugger.  Add some tests.
20647         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20648         (configure.ac, Makefile.am): Simplify.
20649
20650         canonicalize: avoid resolvepath
20651         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20652         unnecessary checks.
20653         * lib/canonicalize.c (includes): Simplify.
20654         (canonicalize_file_name): Drop resolvepath implementation.
20655         * modules/canonicalize (Depends-on): Drop filenamecat.
20656
20657         canonicalize: don't lose errno
20658         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20659         over calls to free.
20660
20661         canonicalize: simplify errno handling
20662         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20663         assignment.
20664
20665         canonicalize, canonicalize-lgpl: update module dependencies
20666         * modules/canonicalize (Depends-on): Add extensions, lstat,
20667         pathmax, stdlib.
20668         (Files): Drop pathmax.h.
20669         (configure.ac): Adjust macro name.
20670         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20671         lstat, stdlib, sys_stat.
20672         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20673         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20674         extensions.
20675         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20676         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20677         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20678         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20679         declaration, if available.
20680         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20681         we can rely on the readlink module.
20682         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20683         (includes): Use <unistd.h> unconditionally.
20684
20685 2009-09-17  Eric Blake  <ebb9@byu.net>
20686
20687         maint: make Include sections of modules consistent
20688         * modules/alloca: Use only header name; no need to list #include.
20689         * modules/alloca-opt: Likewise.
20690         * modules/arpa_inet: Likewise.
20691         * modules/canon-host: Likewise.
20692         * modules/configmake: Likewise.
20693         * modules/dirent: Likewise.
20694         * modules/eealloc: Likewise.
20695         * modules/environ: Likewise.
20696         * modules/fchdir: Likewise.
20697         * modules/fcntl: Likewise.
20698         * modules/fcntl-h: Likewise.
20699         * modules/gethrxtime: Likewise.
20700         * modules/gettime: Likewise.
20701         * modules/ignore-value: Likewise.
20702         * modules/inet_ntop: Likewise.
20703         * modules/inet_pton: Likewise.
20704         * modules/inttypes: Likewise.
20705         * modules/isnand-nolibm: Likewise.
20706         * modules/isnanf-nolibm: Likewise.
20707         * modules/mbchar: Likewise.
20708         * modules/mbfile: Likewise.
20709         * modules/mbiter: Likewise.
20710         * modules/mbuiter: Likewise.
20711         * modules/netdb: Likewise.
20712         * modules/netinet_in: Likewise.
20713         * modules/nproc: Likewise.
20714         * modules/pagealign_alloc: Likewise.
20715         * modules/poll: Likewise.
20716         * modules/printf-frexp: Likewise.
20717         * modules/pthread: Likewise.
20718         * modules/putenv: Likewise.
20719         * modules/random_r: Likewise.
20720         * modules/relocatable-prog: Likewise.
20721         * modules/search: Likewise.
20722         * modules/select: Likewise.
20723         * modules/selinux-h: Likewise.
20724         * modules/settime: Likewise.
20725         * modules/signal: Likewise.
20726         * modules/size_max: Likewise.
20727         * modules/socklen: Likewise.
20728         * modules/ssize_t: Likewise.
20729         * modules/stdarg: Likewise.
20730         * modules/stdbool: Likewise.
20731         * modules/stddef: Likewise.
20732         * modules/stdint: Likewise.
20733         * modules/stdio: Likewise.
20734         * modules/stdlib: Likewise.
20735         * modules/string: Likewise.
20736         * modules/strings: Likewise.
20737         * modules/sys_file: Likewise.
20738         * modules/sys_ioctl: Likewise.
20739         * modules/sys_select: Likewise.
20740         * modules/sys_socket: Likewise.
20741         * modules/sys_stat: Likewise.
20742         * modules/sys_time: Likewise.
20743         * modules/sys_times: Likewise.
20744         * modules/sys_utsname: Likewise.
20745         * modules/sys_wait: Likewise.
20746         * modules/sysexits: Likewise.
20747         * modules/time: Likewise.
20748         * modules/times: Likewise.
20749         * modules/tmpfile: Likewise.
20750         * modules/trim: Likewise.
20751         * modules/unistd: Likewise.
20752         * modules/wchar: Likewise.
20753         * modules/wctype: Likewise.
20754
20755 2009-09-17  Bruno Haible  <bruno@clisp.org>
20756
20757         Make getdate.y compile on QNX and NetBSD 5 / i386.
20758         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20759         TIME_T_FITS_IN_LONG_INT.
20760         * lib/getdate.y (long_time_t): New type.
20761         (relative_time): Change type of 'seconds' field to long_time_t.
20762         (get_date): Update types of local variables. Check against overflow
20763         during conversion from long_time_t to time_t.
20764         Reported by Matt Kraai <kraai@ftbfs.org>
20765         and Hasso Tepper <hasso@netbsd.org>.
20766
20767 2009-09-17  Bruno Haible  <bruno@clisp.org>
20768
20769         * modules/COPYING: Update copyright years.
20770         * modules/README: Likeiwse.
20771         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20772         Reported by Ian Beckwith <ianb@erislabs.net>.
20773
20774 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20775
20776         * users.txt: Update references for gnuit package.
20777
20778 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20779
20780         * m4/getdelim.m4: Fix typo in copyright line.
20781
20782 2009-09-17  Bruno Haible  <bruno@clisp.org>
20783
20784         * lib/atoll.c: Use the standard header with GPL copyright.
20785         * lib/argz.in.h: Likewise.
20786         * lib/glob.c: Likewise.
20787         * lib/glob-libc.h: Likewise.
20788         * lib/random_r.c: Likewise.
20789         * lib/siglist.h: Likewise.
20790         * lib/strsignal.c: Likewise.
20791         Reported by Ian Beckwith <ianb@erislabs.net>.
20792
20793 2009-09-17  Eric Blake  <ebb9@byu.net>
20794
20795         rmdir: ensure correct dependency order
20796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20797
20798 2009-09-17  Bruno Haible  <bruno@clisp.org>
20799
20800         Disable assertion that fails on NetBSD 5 / i386.
20801         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20802         Reported by Sam Steingold <sds@gnu.org>
20803         and Hasso Tepper <hasso@netbsd.org>.
20804
20805 2009-09-16  Eric Blake  <ebb9@byu.net>
20806
20807         unlinkdir: port to mingw
20808         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20809         on which no one can unlink a directory.
20810
20811         stdlib: sort witness names
20812         * modules/stdlib (Makefile.am): Sort replacements.
20813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20814         * lib/stdlib.in.h: Likewise.
20815
20816         parse-duration-tests: avoid link failure
20817         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20818         LIBINTL.
20819         Reported by Tom G. Christensen.
20820
20821         openat-tests: ensure unlinkat behaves like rmdir
20822         * tests/test-rmdir.c (main): Factor guts...
20823         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20824         * modules/rmdir-tests (Files): Ship new file.
20825         * modules/openat-tests: New test.
20826         * tests/test-unlinkat.c: Likewise.
20827
20828         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20829         * modules/rmdir-errno (Status, Notice): Now obsolete.
20830
20831         rmdir: work around cygwin 1.5.x and mingw bugs
20832         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20833         * lib/rmdir.c (rmdir): Work around it.
20834         * modules/rmdir (Status, Notice): No longer obsolete.
20835         (Files): Add dos.m4.
20836         (Depends-on): Add unistd.
20837         (configure.ac): Set witnesses.
20838         (License): Relax to LGPLv2+.
20839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20840         * modules/unistd (Makefile.am): Substitute witnesses.
20841         * lib/unistd.in.h (rmdir): Declare replacement.
20842         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20843         * modules/rmdir-tests: New tests.
20844         * tests/test-rmdir.c: Likewise.
20845
20846 2009-09-15  Eric Blake  <ebb9@byu.net>
20847
20848         fchdir: improve use of replacement functions
20849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20850         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20852         REPLACE_CLOSEDIR.
20853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20854         * modules/sys_stat (Makefile.am): Substitute correct witness.
20855         * modules/dirent (Makefile.am): Likewise.
20856         * modules/unistd (Makefile.am): Likewise.
20857         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20858         * lib/unistd.in.h (dup): Likewise.
20859         * lib/sys_stat.in.h (fstat): Likewise.
20860
20861         maint: ignore gnulib-tool temp files
20862         * .gitignore: Ignore files created during gnulib-tool --test.
20863
20864 2009-09-13  Jim Meyering  <meyering@redhat.com>
20865
20866         posixtm: don't reject a time that specify "60" as the number of seconds
20867         * lib/posixtm.c (posixtime): The code to reject invalid dates
20868         would also reject a time specified with the .60 suffix.
20869         But POSIX allows that, in order to accommodate leap seconds.
20870         So don't reject it.
20871         (main): Adjust tests accordingly.
20872         * modules/posixtm (Depends-on): Add stpcpy.
20873
20874 2009-09-11  Jim Meyering  <meyering@redhat.com>
20875
20876         announce-gen: include [$release_type] in emitted Subject:
20877         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20878         e.g., [stable] in the emitted Subject: line.
20879
20880 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20881
20882         Remove obsolete macros from several modules.
20883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20884         obsolete Autoconf macros with their modern counterparts.
20885         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20886         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20887         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20888         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20889         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20890         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20892         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20893         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20894         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20895         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20897         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20898         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20899         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20901         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20902         * m4/time_r.m4 (gl_TIME_R): Likewise.
20903         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20904         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20905         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20906
20907         Fix copyright header in build-aux scripts.
20908         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20909         recommendation.
20910         * build-aux/ncftpput-ftp: Likewise.
20911         * build-aux/update-copyright: Likewise.
20912
20913 2009-09-09  Eric Blake  <ebb9@byu.net>
20914
20915         test-link: allow Linux choice of errno
20916         * tests/test-link.c (main): Relax test for alternate error.
20917
20918         strndup: fix improper m4 caching
20919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20920         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20921         (gl_PREREQ_STRNDUP): Delete.
20922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20923         * modules/string (Makefile.am): Substitute it.
20924         * lib/string.in.h (strndup): Modernize prototype.
20925
20926         getcwd: port to mingw
20927         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20928         different from the POSIX assumptions made throughout the getcwd
20929         module; fortunately, the mingw getcwd does not need replacement.
20930         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20931         * modules/getcwd-tests: New test.
20932         * tests/test-getcwd.c: Likewise.
20933
20934         link: fix platform bugs
20935         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20936         * lib/link.c (link): Work around them.  Fix related mingw bug.
20937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20938         * modules/unistd (Makefile.am): Substitute it.
20939         * lib/unistd.in.h (link): Declare replacement.
20940         * doc/posix-functions/link.texi (link): Document this.
20941         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20942
20943         test-link: consolidate into single C program, test more cases
20944         * tests/test-link.sh: Delete.
20945         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20946         at least Cygwin and Solaris.
20947         * modules/link-tests (Files): Remove unused file.
20948         (Depends-on): Add errno, sys_stat.
20949         (Makefile.am): Simplify.
20950
20951 2009-09-08  Bruno Haible  <bruno@clisp.org>
20952
20953         Work around towlower, towupper bug on mingw.
20954         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20955         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20956         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20957         * doc/posix-functions/towupper.texi: Likewise.
20958         Reported by Eric Blake.
20959
20960 2009-09-08  Jim Meyering  <meyering@redhat.com>
20961
20962         build: don't try to run autoheader if we don't use it
20963         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20964         is not used in configure.ac.
20965
20966 2009-09-08  Eric Blake  <ebb9@byu.net>
20967
20968         euidaccess: fix compilation error
20969         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20970
20971         rawmemchr: relax license
20972         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20973         okay.
20974         Reported by Jim Meyering.
20975
20976         mkfifoat: new module
20977         * modules/mkfifoat: New file.
20978         * lib/mkfifoat.c: Likewise.
20979         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20981         * modules/sys_stat (Makefile.am): Use them.
20982         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20983         * MODULES.html.sh (File system functions): Mention module.
20984         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20985         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20986         * modules/mkfifoat-tests: New test.
20987         * tests/test-mkfifoat.c: Likewise.
20988
20989         strchrnul: relax license
20990         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20991         okay.
20992         Reported by Jim Meyering.
20993
20994 2009-09-08  Eric Blake  <ebb9@byu.net>
20995
20996         fstatat: fix compilation on Solaris
20997         * lib/fstatat.c (includes): Add fcntl.h.
20998         Reported by Pádraig Brady.
20999
21000 2009-09-07  Eric Blake  <ebb9@byu.net>
21001
21002         rename: modernize replacement
21003         * modules/rename (Depends-on): Add stdio.
21004         (configure.ac): Declare witness.
21005         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21006         stdio take care of replacement.
21007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21008         * modules/stdio (Makefile.am): Substitute them.
21009         * lib/stdio.in.h (rename): Declare replacement.
21010         * lib/rename.c (includes): Allow cross-compilation to non-windows
21011         machines.
21012         * doc/posix-functions/rename.texi (rename): Improve
21013         documentation.
21014
21015         stdio: sort witness names
21016         * modules/stdio (Makefile.am): Sort replacements.
21017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21018         * lib/stdio.in.h: Likewise.
21019
21020         getcwd: minor cleanups
21021         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21022         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21023
21024         openat: provide more convenience names
21025         * modules/faccessat (configure.ac): Add C witness.
21026         * lib/unistd.in.h (readlinkat): Fix typo.
21027         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21028         convenience wrappers.
21029         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21030         wrappers in syntax checks.
21031
21032 2009-09-06  Eric Blake  <ebb9@byu.net>
21033
21034         doc: fix comments in recent patches
21035         * lib/faccessat.c: Mention correct function.
21036         * lib/fchmodat.c: Likewise.
21037         * lib/fchownat.c: Likewise.
21038         * lib/symlinkat.c: Likewise.
21039         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21040         constants.
21041
21042         faccessat, symlinkat: continue cleanup of previous patch
21043         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21044         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21045         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21047         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21048         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21049         set.
21050
21051 2009-09-06  Bruno Haible  <bruno@clisp.org>
21052
21053         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21054         (fstatat): Declare if GNULIB_FSTATAT is set.
21055         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21056         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21057         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21058         * modules/fcntl-h (Files): Remove m4/openat.m4.
21059         * modules/sys_stat (Files): Remove m4/openat.m4.
21060         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21061         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21062         * modules/unistd (Files): Remove m4/openat.m4.
21063         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21064         GNULIB_OPENAT.
21065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21066         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21067         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21068         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21069         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21070         gl_OPENAT_DEFAULTS.
21071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21072         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21073         Don't require gl_OPENAT_DEFAULTS.
21074         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21075         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21076         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21077         (gl_OPENAT_DEFAULTS): Remove macro.
21078
21079 2009-09-06  Bruno Haible  <bruno@clisp.org>
21080
21081         * modules/openat (configure.ac): Remove unneeded witness.
21082
21083 2009-09-06  Bruno Haible  <bruno@clisp.org>
21084
21085         Set errno to ENOSYS when a function is entirely unsupported.
21086         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21087         EOPNOTSUPP.
21088         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21089         * modules/chown (Depends-on): Remove errno.
21090
21091 2009-09-06  Bruno Haible  <bruno@clisp.org>
21092
21093         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21094
21095 2009-09-06  Bruno Haible  <bruno@clisp.org>
21096
21097         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21098
21099 2009-09-06  Ben Pfaff  <blp@gnu.org>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         Work around a glibc bug in strtok_r.
21103         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21104         Undefine if UNDEFINE_STRTOK_R is set.
21105         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21107         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21108         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21109         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21110         UNDEFINE_STRTOK_R.
21111         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21112
21113 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21114
21115         exclude: minor fix
21116         * lib/exclude.c: Include wctype.h
21117
21118 2009-09-06  Akim Demaille  <demaille@gostai.com>
21119
21120         bootstrap: improve error message
21121         * build-aux/bootstrap (find_tool): Upon failure, report the list
21122         of candidates.
21123         Honor the initial value of the envvar.
21124
21125 2009-09-05  Eric Blake  <ebb9@byu.net>
21126
21127         symlinkat: new module
21128         * modules/symlinkat: New file.
21129         * lib/symlinkat.c: Likewise.
21130         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21132         * modules/unistd (Makefile.am): Use them.
21133         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21134         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21135         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21136         * MODULES.html.sh (File system functions): Mention module.
21137         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21138         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21139         * modules/symlinkat-tests: New test.
21140         * tests/test-symlinkat.c: Likewise.
21141
21142         test-openat-safer: add more checks
21143         * tests/test-openat-safer.c (main): Check more code paths.
21144
21145 2009-09-05  Jim Meyering  <meyering@redhat.com>
21146
21147         syntax-check: detect unnecessary inclusion of openat.h
21148         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21149
21150 2009-09-05  Bruno Haible  <bruno@clisp.org>
21151
21152         Support towlower, towupper.
21153         * doc/posix-functions/towlower.texi: Mention module wctype.
21154         * doc/posix-functions/towupper.texi: Likewise.
21155         * lib/wctype.in.h (towlower, towupper): New functions.
21156         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21157         (ASSERT): New macro.
21158         (e): New variable.
21159         (main): Test also towlower, towupper. Test WEOF argument.
21160         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21161
21162 2009-09-05  Bruno Haible  <bruno@clisp.org>
21163
21164         Fix conversion behaviour when the input is invalid.
21165         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21166         mark occurring in first pass of indirect conversion.
21167         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21168         input.
21169         Found by clang's static analyzer.
21170
21171 2009-09-05  Bruno Haible  <bruno@clisp.org>
21172
21173         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21174         where direct conversion is possible.
21175
21176 2009-09-04  Eric Blake  <ebb9@byu.net>
21177
21178         openat: fail with ENOENT on empty name
21179         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21180         buffer.
21181
21182         link-follow: fix logic bug in prior patch
21183         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21184         reversed sense of yes and no in prior patch.  Avoid confusing
21185         compilation failure with desired semantics.
21186
21187         link-follow: accomodate mingw and cross-compilation
21188         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21189         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21190         cross-compilation results to -1, to make linkat easier to
21191         implement when cross-compiling.  Trivially support mingw.
21192         * modules/link-follow (configure.ac): Call new name.
21193         * NEWS: Mention this.
21194
21195 2009-09-03  Eric Blake  <ebb9@byu.net>
21196
21197         faccessat: compile replacement
21198         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21199         needed.
21200
21201         fts: fix compilation error
21202         * lib/fts.c (includes): Re-add "openat.h", for
21203         openat_needs_fchdir.
21204
21205         faccessat: new module
21206         * modules/faccessat: New file.
21207         * lib/faccessat.c: Likewise.
21208         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21210         * modules/unistd (Makefile.am): Use it.
21211         * lib/unistd.in.h (faccessat): Declare it.
21212         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21213         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21214         * MODULES.html.sh (File system functions): Mention it.
21215         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21216         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21217
21218         euidaccess: prefer POSIX over non-standard implementation
21219         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21220         * lib/euidaccess.c (euidaccess): Use it if available.
21221
21222         openat: make template easier to use
21223         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21224         AT_FUNC_F2 to be undefined.
21225         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21226         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21227         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21228         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21229         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21230         Likewise.
21231         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21232         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21233         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21234         Likewise.
21235
21236         openat: declare in POSIX headers
21237         * NEWS: Mention this.
21238         * modules/openat (configure.ac): Declare witnesses.
21239         (Depends-on): Add fcntl-h, sys_stat, unistd.
21240         (Include): Mention correct headers.
21241         * modules/fcntl-h (Depends-on): Add link-warning.
21242         (Files): Add openat.m4.
21243         (Makefile.am): Substitute witnesses.
21244         * modules/sys_stat (Files, Makefile.am): Likewise.
21245         * modules/unistd (Files, Makefile.am): Likewise.
21246         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21247         (gl_OPENAT_DEFAULTS): New macro.
21248         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21251         (SYS_STAT_H): Remove unused variable.
21252         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21253         * lib/fcntl--.h (includes): Remove unneeded header.
21254         * lib/openat-safer.c (includes): Likewise.
21255         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21256         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21257         appropriate headers.
21258         (__OPENAT_PREFIX): Delete.
21259         * lib/fcntl.in.h (openat): Provide declaration.
21260         (AT_FDCWD): Fix Solaris bug.
21261         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21262         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21263         * lib/fchmodat.c (includes):  Adjust to find declaration.
21264         * lib/fchownat.c (includes): Likewise.
21265         * lib/mkdirat.c (includes): Likewise.
21266         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21267         still visible.
21268
21269 2009-09-02  Eric Blake  <ebb9@byu.net>
21270
21271         errno: use consistently
21272         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21273         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21274         * lib/canonicalize.c (ELOOP): Likewise.
21275         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21276         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21277         * lib/lchown.c (EOPNOTSUPP): Likewise.
21278         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21279         * lib/savewd.c (ESTALE): Likewise.
21280         * lib/settime.c (ENOSYS): Likewise.
21281         * lib/utimens.c (ENOSYS): Likewise.
21282         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21283         * lib/chdir-safer.c (ELOOP): Likewise.
21284         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21285         * modules/c-stack (Depends-on): Add errno.
21286         * modules/canonicalize (Depends-on): Likewise.
21287         * modules/chdir-safer (Depends-on): Likewise.
21288         * modules/fdopendir (Depends-on): Likewise.
21289         * modules/inet_ntop (Depends-on): Likewise.
21290         * modules/inet_pton (Depends-on): Likewise.
21291         * modules/lchown (Depends-on): Likewise.
21292         * modules/openat (Depends-on): Likewise.
21293         * modules/savewd (Depends-on): Likewise.
21294         * modules/settime (Depends-on): Likewise.
21295         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
21296
21297         fts: avoid leaking fds
21298         * modules/fts (Depends-on): Add cloexec.
21299         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
21300         flag.
21301
21302         fts: make directory fds more robust
21303         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
21304         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
21305
21306         backupfile, chdir-long, fts, savedir: make safer
21307         * lib/backupfile.c (includes): Use "dirent--.h", since
21308         numbered_backup can write to stderr during readdir.
21309         * lib/savedir.c (includes): Likewise.
21310         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
21311         emulation can write to stderr on failure.
21312         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
21313         * lib/getcwd.c: Document why opendir_safer is unused.
21314         * lib/glob.c: Likewise.
21315         * lib/scandir.c: Likewise.
21316         * lib/openat-proc.c: Likewise, for open_safer.
21317         * modules/backupfile (Depends-on): Add dirent-safer.
21318         * modules/savedir (Depends-on): Likewise.
21319         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
21320         * modules/chdir-long (Depends-on): Add openat-safer.
21321
21322         openat-safer: new module
21323         * modules/openat-safer: New file.
21324         * lib/openat-safer.c: Likewise.
21325         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
21326         * lib/fcntl-safer.h (openat_safer): Declare.
21327         * lib/fcntl--.h (openat): Override.
21328         * MODULES.html.sh (File descriptor based I/O): Mention it.
21329         * lib/openat.h: Add double-inclusion guards.
21330         * lib/openat.c (includes): Only include "fcntl-safer.h", not
21331         "fcntl--.h", so we can implement openat.
21332         * modules/openat-safer-tests: New test.
21333         * tests/test-openat-safer.c: New file.
21334
21335         dirent-safer: new module
21336         * modules/dirent-safer: New file.
21337         * lib/dirent--.h: Likewise.
21338         * lib/dirent-safer.h: Likewise.
21339         * lib/opendir-safer.c: Likewise.
21340         * m4/dirent-safer.m4: Likewise.
21341         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21342         * modules/dirent-safer-tests: New test.
21343         * tests/test-dirent-safer.c: New file.
21344         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21345
21346         fdopendir: optimize on mingw
21347         * lib/unistd.in.h (_gl_directory_name): New prototype.
21348         * lib/fchdir.c (_gl_directory_name): Implement it.
21349         (fchdir): Use it to simplify implementation.
21350         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21351         fchdir, when available, to avoid calling [f]chdir().
21352
21353         fdopendir: split into its own module
21354         * lib/openat.c (fdopendir): Move...
21355         * lib/fdopendir.c: ...into new file.
21356         * modules/fdopendir: New module.
21357         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21358         * modules/openat (Depends-on): Add fdopendir.
21359         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21360         fdopendir here.
21361         * modules/savedir (Depends-on): Only need fdopendir, not full
21362         openat.
21363         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21364         * lib/openat.h (fdopendir): Drop prototype.
21365         * lib/dirent.in.h (fdopendir): Provide prototype.
21366         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21367         * modules/dirent (Makefile.am): Substitute them.
21368         * MODULES.html.sh (File system functions): Mention it.
21369         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21370         * modules/fdopendir-tests: New file.
21371         * tests/test-fdopendir.c: Likewise.
21372
21373         fchdir: use more consistent macro convention
21374         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21375         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21376         REPLACE_FCHDIR, rather than relying on config.h macros.
21377         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21378         inside a single make-time REPLACE_FCHDIR block, rather than using
21379         the config.h FCHDIR_REPLACEMENT.
21380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21381         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21382         Manage fstat replacement.
21383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21384         REPLACE_FCHDIR.
21385         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21386         (Makefile.am): Substitute REPLACE_FCHDIR.
21387         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21388         FCHDIR_REPLACEMENT.
21389         * lib/dup-safer.c (dup_safer): Likewise.
21390         * lib/dup2.c (rpl_dup2): Likewise.
21391         * lib/dup3.c (rpl_dup3): Likewise.
21392         * lib/open.c (rpl_open): Likewise.
21393
21394         fchdir: simplify error handling, and support dup3
21395         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21396         stdbool, malloc-posix, realloc-posix.
21397         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21398         (ensure_dirs_slot): Return false on allocation failure.
21399         (rpl_dup2): Delete.
21400         (_gl_register_dup): New function.
21401         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21402         (_gl_register_fd): Close fd on allocation failure.
21403         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21404         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21405         prototype.
21406         (rpl_dup2_fchdir): Delete prototype.
21407         * lib/open.c (open): Update caller.
21408         * lib/dup2.c (dup2): Track fchdir metadata.
21409         * lib/dup3.c (dup3): Likewise.
21410         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21412
21413 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21414
21415         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21416         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21417         don't pass arguments to AC_OUTPUT.
21418
21419 2009-09-02  Bruno Haible  <bruno@clisp.org>
21420
21421         * modules/mkdtemp (License): Relicense under LGPLv2+.
21422         Reported by Paolo Bonzini.
21423
21424 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21425
21426         Replace uses of obsolete autoconf macros in Jim's modules.
21427         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21428         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21429         can evoke a warning from autoconf when run with -Wobsolete
21430         enabled.  They were declared obsolete for good reasons (see
21431         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21432         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21433         should not continue using the deprecated macros.
21434         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21435         obsolete Autoconf macros with modern counterparts.
21436         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21437         * m4/dos.m4 (gl_AC_DOS): Likewise.
21438         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21440         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21441         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21442         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21443         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21444         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21445         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21446         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21447         Likewise.
21448         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21449         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21450         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21451         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21452         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21453         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21454
21455 2009-09-01  Eric Blake  <ebb9@byu.net>
21456
21457         fchdir: fix off-by-one bug in previous patch
21458         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21459         (_gl_unregister_fd): Delete useless if.
21460
21461 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21462
21463         maint.mk: sort the list of syntax-check rules
21464         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21465         easier to get a sense of progress when the rules are run sequentially
21466         and take a long time.
21467
21468 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21469
21470         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21471         * modules/netinet_in: Likewise.
21472         * modules/sys_file: Likewise.
21473         * modules/sys_ioctl: Likewise.
21474         * modules/sys_select: Likewise.
21475         * modules/sys_socket: Likewise.
21476         * modules/sys_stat: Likewise.
21477         * modules/sys_time: Likewise.
21478         * modules/sys_times: Likewise.
21479         * modules/sys_utsname: Likewise.
21480         * modules/sys_wait: Likewise.
21481
21482 2009-09-01  Jim Meyering  <meyering@redhat.com>
21483
21484         fts: help ensure that return values are not ignored
21485         * lib/fts_.h (__GNUC_PREREQ): Define.
21486         (__attribute_warn_unused_result__): Define.
21487         (fts_children, fts_close, fts_open, fts_read): Declare with
21488         __attribute_warn_unused_result__.
21489
21490         fts: fts_close now fails also when closing a dir file descriptor fails
21491         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21492         and propagate to caller, along with errno.
21493
21494         announce-gen: correct formatting in --help output
21495         * build-aux/announce-gen (usage): Move the one-line description in
21496         --help output "up", to where it belongs, just after Usage:.
21497
21498 2009-08-31  Eric Blake  <ebb9@byu.net>
21499
21500         fchdir: port to mingw
21501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21502         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21503         opened, then use a substitute.
21504         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21505         replacement.
21506         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21507         (_gl_register_fd): No need to check stat if open already filters
21508         all directories.
21509         (fchdir): Fix error condition to match POSIX.
21510         * modules/fchdir (Depends-on): Add sys_stat.
21511         * doc/posix-functions/open.texi (open): Document the limitation.
21512         * modules/fchdir-tests: New file.
21513         * tests/test-fchdir.c: Likewise.
21514
21515         canonicalize: allow cross-testing from cygwin to mingw
21516         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21517         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21518         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21519         Likewise.
21520         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21521         target does not support symlinks.
21522         * tests/test-canonicalize-lgpl.sh: Likewise.
21523
21524         chown: avoid compilation warning on mingw
21525         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21526         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21527         mingw.
21528         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21529         * modules/chown (Depends-on): Add errno.
21530
21531 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21532
21533         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21534         command.
21535
21536 2009-08-31  Jim Meyering  <meyering@redhat.com>
21537
21538         canonicalize: remove useless initialization
21539         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21540         initialization of local, "end".
21541
21542 2009-08-30  Bruno Haible  <bruno@clisp.org>
21543
21544         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21545         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21546         ENOSYS.
21547
21548 2009-08-30  Bruno Haible  <bruno@clisp.org>
21549
21550         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21551         /usr/xpg4/bin/tr when it exists.
21552         * tests/test-pipe-filter-gi1.sh: Likewise.
21553
21554 2009-08-30  Bruno Haible  <bruno@clisp.org>
21555
21556         Work around deficient /usr/bin/id program on Solaris.
21557         * tests/test-file-has-acl.sh (ID): New variable.
21558         * tests/test-set-mode-acl.sh (ID): Likewise.
21559         * tests/test-copy-acl.sh (ID): Likewise.
21560         * tests/test-copy-file.sh (ID): Likewise.
21561
21562 2009-08-30  Bruno Haible  <bruno@clisp.org>
21563
21564         New module 'xstriconveh'.
21565         * lib/xstriconveh.h: New file.
21566         * lib/xstriconveh.c: New file.
21567         * modules/xstriconveh: New file.
21568
21569 2009-08-30  Bruno Haible  <bruno@clisp.org>
21570
21571         Make it easier to use mem_cd_iconveh.
21572         * lib/striconveh.h (iconveh_t): New type.
21573         (iconveh_open, iconveh_close): New declarations.
21574         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21575         with a single 'const iconveh_t *' argument.
21576         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21577         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21578         with a single 'const iconveh_t *' argument.
21579         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21580         * tests/test-striconveh.c (main): Update.
21581         * NEWS: Mention the change.
21582
21583 2009-08-30  Bruno Haible  <bruno@clisp.org>
21584
21585         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21586         problem.
21587
21588 2009-08-30  Bruno Haible  <bruno@clisp.org>
21589
21590         Work around iconv_open problem on Solaris.
21591         * lib/iconv_open-solaris.gperf: New file.
21592         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21593         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21594         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21595         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21596         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21597         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21598
21599 2009-08-29  Jim Meyering  <meyering@redhat.com>
21600
21601         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21602         * top/maint.mk (cvs-check): Remove target; it was just an alias
21603         to the better-named vc-diff-check.
21604         (maintainer-distcheck): Remove rule.  It was used only from
21605         the (alpha/beta/major) target, and all of its commands but one
21606         were coreutils-specific.
21607         (vc-dist): Remove rule.
21608         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21609         Run vc-diff-check, not vc-dist.
21610         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21611
21612 2009-08-27  Bruno Haible  <bruno@clisp.org>
21613
21614         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21615         of 0.
21616
21617 2009-08-27  Bruno Haible  <bruno@clisp.org>
21618
21619         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21620         compilers.
21621         * doc/func.texi: Document the SunPRO C bug.
21622
21623 2009-08-27  Bruno Haible  <bruno@clisp.org>
21624
21625         Fix link error on Solaris.
21626         * tests/test-parse-duration.c (xstrdup): Remove function.
21627
21628 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21629
21630         ignore-value: handle pointer types, too
21631         * lib/ignore-value.h (__attribute__): Remove definition.
21632         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21633         of a more concise and more-often effective "(void) i" statement.
21634         (ignore_ptr): New function to suppress warnings from functions that
21635         return pointers, and to make it explicit that one function doesn't
21636         handle all cases.
21637
21638 2009-08-25  Bruno Haible  <bruno@clisp.org>
21639
21640         dup2: work around a Linux bug.
21641         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21642         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21643         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21644         Reported by Simon Josefsson.
21645
21646 2009-08-25  Jim Meyering  <meyering@redhat.com>
21647
21648         libguestfs uses gnulib
21649         * users.txt: Add libguestfs.
21650
21651 2009-08-24  Eric Blake  <ebb9@byu.net>
21652
21653         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21654         * lib/pipe2.c (includes): Add binary-io.h.
21655         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21656
21657 2009-08-24  Bruno Haible  <bruno@clisp.org>
21658
21659         Tolerate declared but missing accept4 syscall.
21660         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21661         available.
21662         * lib/sys_socket.in.h (accept4): If the function is already present,
21663         override it.
21664         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21665         * modules/accept4 (Makefile.am): Compile accept4.c always.
21666         Reported by Paolo Bonzini and Eric Blake.
21667
21668 2009-08-23  Bruno Haible  <bruno@clisp.org>
21669
21670         New module 'accept4'.
21671         * lib/sys_socket.in.h (accept4): New declaration.
21672         * lib/accept4.c: New file.
21673         * m4/accept4.m4: New file.
21674         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21675         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21676         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21677         HAVE_ACCEPT4.
21678         * modules/accept4: New file.
21679         * doc/glibc-functions/accept4.texi: Mention the new module.
21680
21681 2009-08-24  Jim Meyering  <meyering@redhat.com>
21682
21683         progname: also set global program_invocation_name, when possible
21684         Before this change, a libtool-enabled program that calls glibc's
21685         error function would report the program name as
21686         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21687         * modules/progname (configure.ac): Check for a declaration of
21688         program_invocation_name.
21689         * lib/progname.c:  Include <errno.h>.
21690         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21691         Set program_invocation_name.
21692
21693 2009-08-23  Bruno Haible  <bruno@clisp.org>
21694
21695         * lib/dup3.c: Include <string.h>.
21696
21697 2009-08-23  Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21700         * lib/pipe2.c (pipe2): Likewise.
21701         Suggested by Eric Blake.
21702
21703 2009-08-23  Bruno Haible  <bruno@clisp.org>
21704
21705         Tolerate declared but missing dup3 syscall.
21706         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21707         * lib/unistd.in.h (dup3): If the function is already present,
21708         override it.
21709         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21710         * modules/dup3 (Makefile.am): Compile dup3.c always.
21711         Reported by Paolo Bonzini.
21712
21713 2009-08-23  Bruno Haible  <bruno@clisp.org>
21714
21715         Tolerate declared but missing pipe2 syscall.
21716         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21717         available.
21718         * lib/unistd.in.h (pipe2): If the function is already present,
21719         override it.
21720         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21721         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21722         Reported by Paolo Bonzini.
21723
21724 2009-08-23  Bruno Haible  <bruno@clisp.org>
21725
21726         * lib/pipe2.c (pipe2): Move #ifs inside function.
21727
21728 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21729
21730         quotearg: document limitations of quote_these_too
21731         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21732         those limitations are created.
21733         * lib/quotearg.h (set_char_quoting): Document that digits and
21734         letters that are special after backslash are not permitted.
21735         (quotearg_char): Cross-reference set_char_quoting documentation.
21736
21737 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21738
21739         quotearg: implement custom_quoting_style
21740         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21741         right_quote fields.
21742         (set_custom_quoting): New public function.
21743         (quotearg_buffer_restyled): Add left_quote and right_quote
21744         arguments, handle them very much like locale quoting, and update
21745         all uses.
21746         (quotearg_n_custom): New public function.
21747         (quotearg_n_custom_mem): New public function.
21748         (quotearg_custom): New public function.
21749         (quotearg_custom_mem): New public function.
21750         * lib/quotearg.h: Prototype and document new public functions.
21751         (enum quoting_style): For escape_quoting_style and
21752         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21753         ignored even though they're otherwise like c_quoting_style.
21754         Add custom_quoting_style member and document with comparison to
21755         clocale_quoting_style.
21756         * tests/test-quotearg.c (custom_quotes): New array.
21757         (custom_results): New array.
21758         (main): Extend to test custom quoting.
21759
21760 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21761
21762         quotearg: fix right quote escaping when it's in quote_these_too
21763         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21764         quote, be sure to prepend only one backslash.
21765         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21766         (main): Test it.
21767
21768 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21769
21770         quotearg-tests: test escaping of embedded locale quotes
21771         * tests/test-quotearg.c (struct result_strings): Add member for
21772         new input.
21773         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21774         (inputs): Add new input.
21775         (results_g): Add expected results.
21776         (flag_results): Likewise.
21777         (locale_results): Likewise.
21778         (compare_strings): Check those.
21779
21780 2009-08-23  Bruno Haible  <bruno@clisp.org>
21781
21782         Tests for module 'dup3'.
21783         * modules/dup3-tests: New file.
21784         * tests/test-dup3.c: New file.
21785
21786         New module 'dup3'.
21787         * lib/unistd.in.h (dup3): New declaration.
21788         * lib/dup3.c: New file.
21789         * m4/dup3.m4: New file.
21790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21791         HAVE_DUP3.
21792         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21793         * modules/dup3: New file.
21794         * doc/glibc-functions/dup3.texi: Mention the new module.
21795
21796 2009-08-23  Bruno Haible  <bruno@clisp.org>
21797
21798         Tweak the dup2 test.
21799         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21800         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21801         the test file is still empty. Fix argument order of lseek.
21802
21803 2009-08-23  Bruno Haible  <bruno@clisp.org>
21804
21805         Avoid test link errors when the modules getopt-gnu, gettext are used.
21806         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21808
21809 2009-08-23  Bruno Haible  <bruno@clisp.org>
21810
21811         Fix getdtablesize() on mingw.
21812         * lib/getdtablesize.c (getdtablesize): Implement differently.
21813         * lib/unistd.in.h (getdtablesize): Improve comment.
21814
21815 2009-08-23  Bruno Haible  <bruno@clisp.org>
21816
21817         New module 'mkostemp'.
21818         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21819         * lib/stdlib.in.h (mksotemp): New declaration.
21820         * lib/mkostemp.c: New file, from glibc with modifications.
21821         * lib/tempname.h (GT_FILE): Remove outdated comment.
21822         (gen_tempname): Add flags argument.
21823         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21824         (__GT_FILE): Map to 1.
21825         (small_open, large_open): Remove macros.
21826         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21827         * lib/mkstemp.c (mkstemp): Update.
21828         * lib/mkdtemp.c (mkdtemp): Likewise.
21829         * m4/mkostemp.m4: New file.
21830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21831         HAVE_MKOSTEMP.
21832         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21833         HAVE_MKOSTEMP.
21834         * modules/mkostemp: New file, based on modules/mkstemp.
21835         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21836         * NEWS: Mention the change.
21837
21838 2009-08-23  Bruno Haible  <bruno@clisp.org>
21839
21840         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21841         Reported by Eric Blake.
21842
21843 2009-08-23  Bruno Haible  <bruno@clisp.org>
21844
21845         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21846         Reported by Eric Blake.
21847
21848 2009-08-23  Bruno Haible  <bruno@clisp.org>
21849
21850         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21851         * modules/pipe2 (Depends-on): Likewise.
21852
21853 2009-08-23  Eric Blake  <ebb9@byu.net>
21854
21855         fcntl-h: add O_TTY_INIT support
21856         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21857         * tests/test-fcntl-h.c (o): Test it.
21858         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21859
21860         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21861         * modules/fcntl: Move <fcntl.h> header replacement...
21862         * modules/fcntl-h: ...to new name, so as not to collide with
21863         like-named function.
21864         * tests/test-fcntl.c: Rename...
21865         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21866         * modules/fcntl-tests: Rename...
21867         * modules/fcntl-h-tests: ...to this.  Update test file name.
21868         * modules/chdir-long (Depends-on): Update clients.
21869         * modules/chdir-safer (Depends-on): Likewise.
21870         * modules/fcntl-safer (Depends-on): Likewise.
21871         * modules/fts (Depends-on): Likewise.
21872         * modules/mkancesdirs (Depends-on): Likewise.
21873         * modules/mkdir-p (Depends-on): Likewise.
21874         * modules/open (Depends-on): Likewise.
21875         * modules/savewd (Depends-on): Likewise.
21876         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21877         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21878
21879 2009-08-22  Bruno Haible  <bruno@clisp.org>
21880
21881         * modules/binary-io (License): Relicense under LGPL.
21882         * modules/pipe2 (License): Likewise.
21883
21884 2009-08-22  Bruno Haible  <bruno@clisp.org>
21885
21886         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21887         return value.
21888         * lib/pipe-filter-gi.c (filter_init): Likewise.
21889         Reported by Eric Blake.
21890
21891 2009-08-22  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21894         * modules/pipe (Depends-on): Add pipe2.
21895
21896 2009-08-22  Bruno Haible  <bruno@clisp.org>
21897
21898         Tests for module 'pipe2'.
21899         * modules/pipe2-tests: New file.
21900         * tests/test-pipe2.c: New file.
21901
21902         New module 'pipe2'.
21903         * lib/unistd.in.h (pipe2): New declaration.
21904         * lib/pipe2.c: New file.
21905         * m4/pipe2.m4: New file.
21906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21907         HAVE_PIPE2.
21908         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21909         * modules/pipe2: New file.
21910         * doc/glibc-functions/pipe2.texi: Mention the new module.
21911
21912 2009-08-22  Bruno Haible  <bruno@clisp.org>
21913
21914         Reference some new glibc functions.
21915         * doc/glibc-functions/accept4.texi: New file.
21916         * doc/glibc-functions/dup3.texi: New file.
21917         * doc/glibc-functions/mkostemp.texi: New file.
21918         * doc/glibc-functions/pipe2.texi: New file.
21919         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21920         (Glibc sys/socket.h): Refer to accept4.
21921         (Glibc unistd.h): Refer to dup3, pipe2.
21922         Reported by Eric Blake.
21923
21924 2009-08-22  Jim Meyering  <meyering@redhat.com>
21925             Bruno Haible  <bruno@clisp.org>
21926
21927         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21928         This makes it so packages using automake-1.11's silent-rules option
21929         can print e.g., a single "GEN    configmake.h" line, rather than
21930         the 30+ statements that perform the job.  If you want to see the
21931         actual commands, you can still run "make V=1".
21932         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21933         so that make output is abbreviated when those variables are defined
21934         appropriately.
21935         * modules/argz: Likewise.
21936         * modules/arpa_inet: Likewise.
21937         * modules/byteswap: Likewise.
21938         * modules/configmake: Likewise.
21939         * modules/dirent: Likewise.
21940         * modules/errno: Likewise.
21941         * modules/fcntl: Likewise.
21942         * modules/float: Likewise.
21943         * modules/fnmatch: Likewise.
21944         * modules/getopt-posix: Likewise.
21945         * modules/glob: Likewise.
21946         * modules/iconv_open: Likewise.
21947         * modules/inttypes: Likewise.
21948         * modules/localcharset: Likewise.
21949         * modules/locale: Likewise.
21950         * modules/math: Likewise.
21951         * modules/netdb: Likewise.
21952         * modules/netinet_in: Likewise.
21953         * modules/poll: Likewise.
21954         * modules/posix_spawnp-tests: Likewise.
21955         * modules/sched: Likewise.
21956         * modules/search: Likewise.
21957         * modules/selinux-h: Likewise.
21958         * modules/signal: Likewise.
21959         * modules/spawn: Likewise.
21960         * modules/stdarg: Likewise.
21961         * modules/stdbool: Likewise.
21962         * modules/stddef: Likewise.
21963         * modules/stdint: Likewise.
21964         * modules/stdio: Likewise.
21965         * modules/stdlib: Likewise.
21966         * modules/string: Likewise.
21967         * modules/strings: Likewise.
21968         * modules/sys_file: Likewise.
21969         * modules/sys_ioctl: Likewise.
21970         * modules/sys_select: Likewise.
21971         * modules/sys_socket: Likewise.
21972         * modules/sys_stat: Likewise.
21973         * modules/sys_time: Likewise.
21974         * modules/sys_times: Likewise.
21975         * modules/sys_utsname: Likewise.
21976         * modules/sys_wait: Likewise.
21977         * modules/sysexits: Likewise.
21978         * modules/time: Likewise.
21979         * modules/unistd: Likewise.
21980         * modules/wchar: Likewise.
21981         * modules/wctype: Likewise.
21982
21983 2009-08-22  Jim Meyering  <meyering@redhat.com>
21984
21985         announce-gen: detect write failure
21986         * build-aux/announce-gen: Add Coda at end.
21987         Remove equivalent-but-more-verbose block at top.
21988
21989 2009-08-19  Akim Demaille  <demaille@gostai.com>
21990
21991         bootstrap: --help to stdout.
21992         * bootstrap (usage): Don't send --help to stderr.
21993         Use a here doc instead of a long string.
21994
21995 2009-08-21  Eric Blake  <ebb9@byu.net>
21996
21997         test-popen-safer: split from test-popen
21998         * tests/test-popen.c (main): Move...
21999         * tests/test-popen.h: ...into new file.
22000         * tests/test-popen-safer2.c: New file.
22001         * modules/popen-tests (Files): Add test-popen.h.
22002         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22003         Suggested by Bruno Haible.
22004
22005         test-fcntl-safer: split from test-open
22006         * tests/test-open.c (main): Move...
22007         * tests/test-open.h: ...into new file.
22008         * tests/test-fcntl-safer.c: New file.
22009         * modules/open-tests (Files): Add test-open.h.
22010         * modules/fcntl-safer-tests: New file.
22011         Suggested by Bruno Haible.
22012
22013         test-fopen-safer: split from test-fopen
22014         * tests/test-fopen.c (main): Move...
22015         * tests/test-fopen.h: ...into new file.
22016         * tests/test-fopen-safer.c: New file.
22017         * modules/fopen-tests (Files): Add test-fopen.h.
22018         * modules/fopen-safer-tests: New file.
22019         Suggested by Bruno Haible.
22020
22021 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22022
22023         popen-safer: test O_CLOEXEC at run-time.
22024         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22025
22026 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22027
22028         fcntl: move more flags to the header
22029         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22030         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22031         * lib/fcntl.in.h: Do both things here.
22032
22033 2009-08-21  Jim Meyering  <meyering@redhat.com>
22034
22035         consistently remove $@-t before redirecting to it
22036         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22037         * modules/alloca-opt: Likewise.
22038         * modules/byteswap: Likewise.
22039         * modules/fnmatch: Likewise.
22040         * modules/getopt-posix: Likewise.
22041         * modules/glob: Likewise.
22042         * modules/poll: Likewise.
22043         * modules/posix_spawnp-tests: Likewise.
22044         * modules/sys_socket: Likewise.
22045         * modules/sysexits: Likewise.
22046
22047 2009-08-21  Eric Blake  <ebb9@byu.net>
22048
22049         popen: simplify access to original popen
22050         * lib/popen.c (rpl_popen): No need to worry about popen being a
22051         macro.
22052         Reported by Bruno Haible.
22053
22054 2009-08-20  Eric Blake  <ebb9@byu.net>
22055
22056         build: avoid some compiler warnings
22057         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22058         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22059         type.
22060         (new_exclude_segment, excluded_file_pattern_p)
22061         (excluded_file_name_p): Reduce scope.
22062         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22063         old-style declaration.
22064
22065 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22066
22067         * tests/test-exclude1.sh: Handle Windows EOL.
22068         * tests/test-exclude2.sh: Likewise.
22069         * tests/test-exclude3.sh: Likewise.
22070         * tests/test-exclude4.sh: Likewise.
22071         * tests/test-exclude5.sh: Likewise.
22072         * tests/test-exclude6.sh: Likewise.
22073         * tests/test-exclude7.sh: Likewise.
22074
22075 2009-08-19  Akim Demaille  <demaille@gostai.com>
22076
22077         bootstrap: find sha1sum when named gsha1sum.
22078         * bootstrap (find_tool): New.
22079         ($SHA1SUM): New.
22080         Use it.
22081
22082 2009-08-20  Jim Meyering  <meyering@redhat.com>
22083
22084         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22085         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22086         expression that converts "." in a file name to "\." in the resulting
22087         regexp.  Start with a dummy statement, so that prior shell variable
22088         definitions are expanded portably.  Reported by Simon Josefsson.
22089
22090 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22091
22092         Fix polling for writeability of a screen buffer.
22093         * lib/poll.c: Distinguish input and screen buffers for the
22094         Win32 implementation.
22095         * lib/select.c: Likewise.
22096
22097 2009-08-19  Eric Blake  <ebb9@byu.net>
22098
22099         popen-safer: prevent popen from clobbering std descriptors
22100         * modules/popen-safer: New file.
22101         * lib/popen-safer.c: Likewise.
22102         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22103         * lib/stdio--.h (popen): Provide override.
22104         * lib/stdio-safer.h (popen_safer): Provide declaration.
22105         * tests/test-popen.c (includes): Partially test this.
22106         * modules/popen-safer-tests: New file, for more tests.
22107         * tests/test-popen-safer.c: Likewise.
22108         * MODULES.html.sh (file stream based Input/Output): Mention it.
22109
22110         tests: test some of the *-safer modules
22111         * modules/fopen-safer (Depends-on): Add fopen.
22112         * modules/fcntl-safer (Depends-on): Add fcntl.
22113         * modules/stdlib-safer (Depends-on): Add stdlib.
22114         (configure.ac): Set indicator.
22115         * modules/unistd-safer (configure.ac): Likewise.
22116         * modules/tmpfile-safer (configure.ac): Likewise.
22117         (Depends-on): Add tmpfile.
22118         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22119         active.
22120         * tests/test-fopen.c (includes): Test safer versions when they are
22121         in use.
22122         * tests/test-open.c (includes): Likewise.
22123
22124         popen: fix cygwin 1.5 bug when stdin closed
22125         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22126         * modules/popen: New file.
22127         * modules/popen-tests: Likewise.
22128         * tests/test-popen.c: Likewise.
22129         * m4/popen.m4: Likewise.
22130         * lib/popen.c: Likewise.
22131         * lib/stdio.in.h (popen): New declaration.
22132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22133         * modules/stdio (Makefile.am): Likewise.
22134         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22135
22136 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22137
22138         maint.mk: give full control over update-copyright exclusions
22139         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22140         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22141         (update-copyright): Don't force inclusion of top-level
22142         ChangeLog.  Don't force exclusion of all COPYING files, but make
22143         them the default exclusion instead.
22144
22145 2009-08-16  Bruno Haible  <bruno@clisp.org>
22146
22147         Fix test failures on Solaris 10.
22148         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22149         tests when Solaris iconv() is used.
22150         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22151         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22152         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22153         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22154         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22155
22156 2009-08-16  Bruno Haible  <bruno@clisp.org>
22157
22158         Fix test failures on Solaris 10.
22159         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22160         'tr' program and pass it as first argument.
22161         * tests/test-pipe-filter-gi1.sh: Likewise.
22162         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22163         program as first argument.
22164         * tests/test-pipe-filter-gi1.c (main): Likewise.
22165
22166 2009-08-16  Eric Blake  <ebb9@byu.net>
22167
22168         fpurge: fix previous commits
22169         * modules/fpurge (Makefile.am): Make replacement conditional,
22170         partially reverting 2007-04-29 change; missed in previous
22171         attempt.
22172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22173         is missing.
22174
22175 2009-08-16  Bruno Haible  <bruno@clisp.org>
22176
22177         Clarify fpurge's effect on the file position.
22178         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22179         * tests/test-fpurge.c (main): Make a second pass for checking the file
22180         position.
22181
22182 2009-08-16  Bruno Haible  <bruno@clisp.org>
22183
22184         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22185         declaration of fpurge is missing.
22186         * tests/test-fpurge.c (main): Check that the file has not more contents
22187         than expected. Close the file before removing it.
22188
22189 2009-08-15  Eric Blake  <ebb9@byu.net>
22190
22191         fpurge: don't wrap working cygwin implementation
22192         * lib/fpurge.c (fpurge): Fix comment typo.
22193         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22194         1.7 to avoid replacement.
22195         * tests/test-fpurge.c (main): Enhance test.
22196
22197 2009-08-15  Eric Blake  <ebb9@byu.net>
22198         and Jim Meyering  <meyering@redhat.com>
22199
22200         test-update-copyright: skip if perl is insufficient
22201         * tests/test-update-copyright.sh: Failure to run maintainer tool
22202         should not cause testsuite failure on cygwin 1.5.
22203
22204 2009-08-14  Eric Blake  <ebb9@byu.net>
22205
22206         doc: mention more functions added in cygwin 1.7.0
22207         * doc/posix-headers/limits.texi (limits.h): Update for recent
22208         cygwin additions.
22209         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22210         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22211         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22212         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22213         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22214
22215 2009-08-14  Eric Blake  <ebb9@byu.net>
22216
22217         maint.mk: simplify update-copyright rule
22218         * top/maint.mk (update-copyright-local): Delete, and document how
22219         to do it in cfg.mk instead.
22220         (update-copyright-exclude-regexp): Delete, and document how to do
22221         it in .x-update-copyright instead.
22222         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22223         exclude ChangeLog.
22224
22225 2009-08-14  Bruno Haible  <bruno@clisp.org>
22226
22227         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22228
22229 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22230
22231         maint.mk: support update-copyright-env
22232         * top/maint.mk (update-copyright-env): Define place-holder.
22233         (update-copyright): Expand $(update-copyright-env) before
22234         invoking update-copyright.
22235
22236 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22237
22238         update-copyright: implement forced reformatting
22239         * build-aux/update-copyright: Implement and document
22240         UPDATE_COPYRIGHT_FORCE.
22241         * tests/test-update-copyright.sh: Test it.
22242
22243 2009-08-14  Eric Blake  <ebb9@byu.net>
22244         and Bruno Haible  <bruno@clisp.org>
22245
22246         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22247         * tests/test-locale.c: Revert previous patch related to NULL.
22248         * tests/test-stdio.c: Likewise.
22249         * tests/test-stdlib.c: Likewise.
22250         * tests/test-string.c: Likewise.
22251         * tests/test-unistd.c: Likewise.
22252         * modules/time-tests (Depends-on): Add verify.
22253         * modules/wchar-tests (Depends-on): Likewise.
22254         * tests/test-time.c: Test for NULL compliance.
22255         * tests/test-wchar.c: Likewise.
22256         * modules/locale (Depends-on): Add stddef.
22257         * modules/stdio (Depends-on): Likewise.
22258         * modules/stdlib (Depends-on): Likewise.
22259         * modules/string (Depends-on): Likewise.
22260         * modules/time (Depends-on): Likewise.
22261         * modules/unistd (Depends-on): Likewise.
22262         * modules/wchar (Depends-on): Likewise.
22263         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22264         * lib/stdlib.in.h (includes): Likewise.
22265         * lib/string.in.h (includes): Likewise.
22266         * lib/time.in.h (includes): Likewise.
22267         * lib/unistd.in.h (includes): Likewise.
22268         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22269         replaced.
22270         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22271         * m4/stddef_h.m4: New file.
22272         * modules/stddef: Likewise.
22273         * lib/stddef.in.h: Likewise.
22274         * modules/stddef-tests: Likewise.
22275         * tests/test-stddef.c: Likewise.
22276         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22277         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22278         * doc/posix-headers/locale.texi (locale.h): Likewise.
22279         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22280         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22281         * doc/posix-headers/string.texi (string.h): Likewise.
22282         * doc/posix-headers/time.texi (time.h): Likewise.
22283         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22284         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22285
22286 2009-08-14  Eric Blake  <ebb9@byu.net>
22287
22288         doc: improve git diff of texinfo files
22289         * .gitattributes: Add rule for *.texi files, with hint on how to
22290         use it.
22291         Copied from m4, and based on a report by Bruno Haible.
22292
22293 2009-08-14  Bruno Haible  <bruno@clisp.org>
22294
22295         Disable multithread support by default on Cygwin 1.5.x for real.
22296         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
22297
22298 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22299
22300         update-copyright: much ado about intervals
22301         * build-aux/update-copyright: Implement and document
22302         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
22303         of copyright year intervals.
22304         Also, document UPDATE_COPYRIGHT_YEAR.
22305         * tests/test-update-copyright.sh: Test it.
22306
22307         update-copyright: convert 2-digit to 4-digit years
22308         * build-aux/update-copyright: Implement and document.
22309         * tests/test-update-copyright.sh: Update.
22310
22311 2009-08-14  Jim Meyering  <meyering@redhat.com>
22312
22313         test-exclude: avoid coreutils "make check" failure
22314         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
22315         just as in test-argmatch.c.
22316
22317 2009-08-13  Eric Blake  <ebb9@byu.net>
22318
22319         test-dup2: fix bad assumption
22320         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
22321         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
22322
22323         test-version-etc: fix CRLF portability issue
22324         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
22325         recognize \r.
22326         * tests/test-argp-version-etc-1.sh: Likewise.
22327
22328         getopt: update client modules
22329         * modules/argp (Depends-on): Use getopt-gnu.
22330         * modules/git-merge-changelog (Depends-on): Likewise.
22331         * modules/long-options (Depends-on): Likewise.
22332         * modules/xstrtol (Depends-on): Likewise.
22333
22334 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22335
22336         * tests/test-version-etc.sh: Don't fail on different
22337         project/version.  Don't fail on CRLF differences.  Rewrite to use
22338         multiple -e instead of multiple sed forks, suggested by Eric Blake
22339         <ebb9@byu.net>.
22340         * tests/test-argp-version-etc-1.sh: Likewise.
22341
22342 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22343
22344         * tests/test-version-etc.sh: Don't fail on different
22345         project/version.
22346
22347 2009-08-12  Bruno Haible  <bruno@clisp.org>
22348
22349         Tests for modules 'getopt-posix', 'getopt-gnu'.
22350         * modules/getopt-posix-tests: New file.
22351         * tests/test-getopt.c: New file.
22352         * tests/test-getopt.h: New file.
22353         * tests/test-getopt_long.h: New file.
22354
22355         New modules 'getopt-posix', 'getopt-gnu'.
22356         * modules/getopt-gnu: New file, renamed from modules/getopt.
22357         * modules/getopt-posix: New file.
22358         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22359         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22360         (gl_GETOPT): Remove macro.
22361         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22362         Disable the test against BSD systems that declare optreset. Test
22363         against mingw bug. Test against lack of support of optional arguments
22364         on many platforms.
22365         * doc/glibc-headers/getopt.texi: Update module name and list of
22366         relevant platforms.
22367         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22368         'getopt-gnu' and more portability problems.
22369         * NEWS: Mention the changes.
22370
22371 2009-08-12  Bruno Haible  <bruno@clisp.org>
22372
22373         Ensure that optarg etc. get declared by <unistd.h>.
22374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22375         AC_USE_SYSTEM_EXTENSIONS.
22376         * modules/getopt (Depends-on): Add 'extensions'.
22377
22378 2009-08-12  Bruno Haible  <bruno@clisp.org>
22379
22380         Avoid test link errors.
22381         * modules/pipe-filter-ii-tests (Makefile.am): Define
22382         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22383         * modules/pipe-filter-gi-tests (Makefile.am): Define
22384         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22386
22387 2009-08-12  Bruno Haible  <bruno@clisp.org>
22388
22389         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22390         gl_GETOPT_SUBSTITUTE before.
22391         (gl_GETOPT): Use it.
22392         * m4/argp.m4 (gl_ARGP): Update.
22393         Reported by Sergey Poznyakoff.
22394
22395         * m4/getopt.m4: Reorder macros.
22396         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22397         (gl_GETOPT_SUBSTITUTE): Remove macro.
22398
22399 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22400
22401         Minor improvement in gitlog-to-changelog
22402
22403         * build-aux/gitlog-to-changelog: New option `--format' makes
22404         output format string configurable.
22405
22406 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22407
22408         Optimize exclude: use hash tables for non-wildcard patterns.
22409
22410         * lib/exclude.c: Include hash.h and mbuiter.h
22411         (struct exclude_pattern, exclude_segment): New data types.
22412         (struct exclude): Rewrite.
22413         (fnmatch_pattern_has_wildcards): New function.
22414         (new_exclude_segment, free_exclude_segment): New functions.
22415         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22416         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22417         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22418         * modules/exclude: Depend on hash and mbuiter.
22419
22420         * modules/exclude-tests: New file.
22421         * tests/test-exclude.c: New file.
22422         * tests/test-exclude1.sh: New file.
22423         * tests/test-exclude2.sh: New file.
22424         * tests/test-exclude3.sh: New file.
22425         * tests/test-exclude4.sh: New file.
22426         * tests/test-exclude5.sh: New file.
22427         * tests/test-exclude6.sh: New file.
22428         * tests/test-exclude7.sh: New file.
22429
22430 2009-08-12  Bruno Haible  <bruno@clisp.org>
22431
22432         Ensure that getopt() gets declared by <unistd.h>.
22433         * lib/unistd.in.h: Conditionally include getopt.h.
22434         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22435         Set GNULIB_UNISTD_H_GETOPT.
22436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22437         GNULIB_UNISTD_H_GETOPT.
22438         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22439
22440 2009-08-12  Bruno Haible  <bruno@clisp.org>
22441
22442         Clarify logic.
22443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22444         gl_replace_getopt instead of GETOPT_H.
22445
22446 2009-08-12  Bruno Haible  <bruno@clisp.org>
22447
22448         * m4/getopt.m4: Add comments.
22449
22450 2009-08-12  Bruno Haible  <bruno@clisp.org>
22451
22452         Disable multithread support by default on Cygwin 1.5.x.
22453         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22454         set gl_use_threads=no if not specified otherwise.
22455
22456 2009-08-11  Bruno Haible  <bruno@clisp.org>
22457
22458         Avoid compilation error on NetBSD 5.0.
22459         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22460         * tests/test-stdio.c: Likewise.
22461         * tests/test-stdlib.c: Likewise.
22462         * tests/test-string.c: Likewise.
22463         * tests/test-unistd.c: Likewise.
22464         Reported by Greg Troxel <gdt@ir.bbn.com>
22465         at <https://savannah.gnu.org/support/?106973>.
22466
22467 2009-08-11  Bruno Haible  <bruno@clisp.org>
22468
22469         * modules/dup2-tests (Depends-on): Remove close.
22470
22471         Undo 2009-07-19 commit.
22472         * modules/acl-tests (Depends-on): Remove close.
22473         * modules/binary-io-tests (Depends-on): Likewise.
22474         * modules/closein-tests (Depends-on): Likewise.
22475         * modules/flock-tests (Depends-on): Likewise.
22476         * modules/fsync-tests (Depends-on): Likewise.
22477         * modules/lseek-tests (Depends-on): Likewise.
22478         * modules/pipe-tests (Depends-on): Likewise.
22479         * modules/posix_spawn-tests (Depends-on): Likewise.
22480         * modules/posix_spawnp-tests (Depends-on): Likewise.
22481         * modules/stat-time-tests (Depends-on): Likewise.
22482         * modules/yesno-tests (Depends-on): Likewise.
22483
22484 2009-08-10  Bruno Haible  <bruno@clisp.org>
22485
22486         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22487
22488 2009-08-10  Bruno Haible  <bruno@clisp.org>
22489
22490         Fix a gcc warning.
22491         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22492
22493 2009-08-10  Bruno Haible  <bruno@clisp.org>
22494
22495         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22496         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22497         not only the first time.
22498         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22499         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22500         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22501         is 1, not only the the first time.
22502
22503 2009-08-10  Bruno Haible  <bruno@clisp.org>
22504
22505         Make it possible to use module 'gethostname' without module 'close'.
22506         * lib/unistd.in.h (close): Evoke a link error only if
22507         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22509         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22510         * modules/unistd (Makefile.am): Substitute
22511         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22512         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22513         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22514         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22515         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22516         * modules/sys_ioctl (Makefile.am): Substitute
22517         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22518         * modules/socket (configure.ac): On native Windows, set
22519         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22520         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22521         Reported by Sam Steingold <sds@gnu.org>.
22522
22523 2009-08-10  Bruno Haible  <bruno@clisp.org>
22524
22525         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22526         * modules/ioctl (configure.ac): Likewise.
22527
22528 2009-08-10  Bruno Haible  <bruno@clisp.org>
22529
22530         Avoid collision between gnulib wrapper and libintl wrapper.
22531         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22532         already defined in intl/printf.c.
22533         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22534         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22535
22536 2009-08-09  Bruno Haible  <bruno@clisp.org>
22537
22538         Make <sys/select.h> really self-contained, also on Solaris 10.
22539         * lib/sys_select.in.h: Include <string.h>.
22540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22541         Solaris 10 problem.
22542         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22543         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22544         Reported by Jim Meyering.
22545
22546 2009-08-09  Bruno Haible  <bruno@clisp.org>
22547
22548         Avoid warnings from 'aclocal' that are due to a use of macro name
22549         AM_XGETTEXT_OPTION that is not defined in automake.
22550         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22551         automake.
22552         * modules/error (configure.ac): Likewise.
22553         * modules/propername (configure.ac): Likewise.
22554         * modules/vasprintf (configure.ac): Likewise.
22555         * modules/verror (configure.ac): Likewise.
22556         * modules/xprintf (configure.ac): Likewise.
22557         * modules/xvasprintf (configure.ac): Likewise.
22558
22559 2009-08-08  Bruno Haible  <bruno@clisp.org>
22560
22561         Avoid compilation error in C++ mode.
22562         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22563         Reported by Sam Steingold <sds@gnu.org>.
22564
22565 2009-08-08  Bruno Haible  <bruno@clisp.org>
22566
22567         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22568         for the various Unix platforms.
22569         * doc/posix-headers/limits.texi: Update platforms list regarding
22570         HOST_NAME_MAX.
22571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22572
22573 2009-08-07  Jim Meyering  <meyering@redhat.com>
22574
22575         selinux-at: fix typo in a comment
22576         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22577         Spotted by Paolo Bonzini.
22578
22579         selinux-at: remove redundant m4 code, add documentation
22580         * modules/selinux-at (configure.ac): Remove redundant code.
22581         LIB_SELINUX is already set via the dependent module, selinux-h.
22582         (Include): Add quotes around selinux-at.h.
22583         * lib/selinux-at.h: Add documentation.
22584         Reported by Bruno Haible in
22585         http://marc.info/?l=gnulib-bug&m=124958988300749
22586
22587 2009-08-07  Bruno Haible  <bruno@clisp.org>
22588
22589         Avoid link error on MacOS X 10.3 and 10.4.
22590         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22591         on non-ELF systems.
22592         * lib/argp-pv.c (argp_program_version): Likewise.
22593         Reported by Simon Josefsson.
22594
22595 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22596
22597         * tests/test-version-etc.sh: Use $EXEEXT.
22598
22599 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22600
22601         update-copyright: update documentation to point to maint.mk
22602         * build-aux/update-copyright: Here.
22603
22604 2009-08-06  Jim Meyering  <meyering@redhat.com>
22605
22606         maint.mk: support update-copyright-local
22607         * top/maint.mk (update-copyright-local): Define place-holder.
22608         (update-copyright): Depend on $(update-copyright-local).
22609
22610 2009-08-06  Jim Meyering  <meyering@redhat.com>
22611
22612         selinux-at: new module
22613         Initially written for coreutils, this module will soon be
22614         used by findutils, too.
22615         * MODULES.html.sh [Misc]: Add selinux-at.
22616         * lib/selinux-at.h: New file, from coreutils.
22617         * lib/selinux-at.c: Likewise.
22618         * modules/selinux-at: Likewise.
22619         (License): Change from LGPL to GPL, since it depends
22620         on the GPL'd openat module.
22621
22622         doc: update README
22623         * README: Remove references to cogito.
22624         Remove cvs-repo-updating instructions from 2007.
22625         Don't imply that CVS is better if you have limited disk space.
22626
22627 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22628
22629         update-copyright: support C-style comments
22630         * build-aux/update-copyright: Implement and document.
22631         * tests/test-update-copyright.sh: Test.
22632
22633 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22634
22635         update-copyright: support omitted "(C)"
22636         * build-aux/update-copyright: Implement and document.  Also,
22637         allow variable whitespace before "(C)".
22638         * tests/test-update-copyright.sh: Test.
22639
22640 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22641
22642         update-copyright: don't trip on non-FSF copyright statements
22643         * build-aux/update-copyright: Fix so that the first correctly
22644         formatted FSF copyright statement is recognized no matter what
22645         appears before it.  Update documentation.
22646         * tests/test-update-copyright.sh: Test that.
22647
22648 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22649
22650         update-copyright: clean up code a little
22651         * build-aux/update-copyright: Append "_re" to the name of any
22652         variable holding a regular expression.
22653         Replace "old" and "new" with "stmt" in variable names.
22654         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22655         handled correctly.
22656         Format code more consistently.
22657
22658 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22659
22660         update-copyright-tests: improve portability
22661         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22662         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22663
22664 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22665
22666         update-copyright: support @copyright{} and &copy;
22667         * build-aux/update-copyright: Implement and document.
22668         * tests/test-update-copyright.sh: Test.
22669
22670 2009-08-04  Jim Meyering  <meyering@redhat.com>
22671
22672         update-copyright-tests: correctly test EOL=\r\n handling
22673         * tests/test-update-copyright.sh: Put \r at the end of some lines
22674         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22675
22676         maint.mk: make update-copyright exclusion list more configurable
22677         * top/maint.mk (update-copyright): Default to excluding COPYING,
22678         but allow an override, in case someone does want to update that file.
22679
22680         maint.mk: don't update copyright date in COPYING
22681         * top/maint.mk (update-copyright): Exclude COPYING.
22682
22683         maint.mk: add a copyright-updating rule
22684         * top/maint.mk (update-copyright): New rule.
22685         Derived from coreutils/Makefile.am.
22686
22687         update-copyright: rename some variables
22688         * build-aux/update-copyright: Rename a few variables for clarity.
22689         Tweak syntax.  List Joel E. Denny as coauthor.
22690
22691 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22692
22693         update-copyright: fix bug for 2-digit last year and add tests
22694         * build-aux/update-copyright: Fix bug.
22695         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22696         specified.
22697         * modules/update-copyright-tests: New
22698         * tests/test-update-copyright.sh: New.
22699
22700 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22701
22702         update-copyright: handle leading tabs in line prefix
22703         * build-aux/update-copyright: Count leading tabs as 8 spaces
22704         when computing margin.  This helps with the formatting of
22705         ChangeLogs, for example.
22706         Fix documentation a little.
22707
22708 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22709
22710         update-copyright: support EOL=\r\n
22711         * build-aux/update-copyright: Implement that.
22712
22713 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22714
22715         update-copyright: automatically format copyright statements
22716         * build-aux/update-copyright: Implement that.
22717         Also, be a little more predictable and safer by always failing
22718         when the full copyright format is not perfectly recognized as an
22719         unbroken whole.  Discussed at
22720         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22721         Rewrite documentation.
22722
22723 2009-08-03  Bruno Haible  <bruno@clisp.org>
22724
22725         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22726
22727 2009-08-02  Bruno Haible  <bruno@clisp.org>
22728
22729         Tests for module 'uname'.
22730         * modules/uname-tests: New file.
22731         * tests/test-uname.c: New file.
22732
22733         New module 'uname'.
22734         * lib/uname.c: New file.
22735         * m4/uname.m4: New file.
22736         * modules/uname: New file.
22737         * doc/posix-functions/uname.texi: Mention the new module.
22738
22739 2009-08-02  Bruno Haible  <bruno@clisp.org>
22740
22741         Tests for module 'sys_utsname'.
22742         * modules/sys_utsname-tests: New file.
22743         * tests/test-sys_utsname.c: New file.
22744
22745         New module 'sys_utsname'.
22746         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22747         * m4/sys_utsname_h.m4: New file.
22748         * modules/sys_utsname: New file.
22749         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22750
22751 2009-08-02  Bruno Haible  <bruno@clisp.org>
22752
22753         Implicitly initialize the sockets library.
22754         * lib/gethostname.c: Include sockets.h.
22755         (rpl_gethostname): Invoke gl_sockets_startup.
22756         * lib/socket.c: Include sockets.h.
22757         (rpl_socket): Invoke gl_sockets_startup.
22758         * modules/gethostname (Depends-on): Add sockets.
22759         * modules/socket (Depends-on): Likewise.
22760         * tests/test-poll.c: Don't include sockets.h.
22761         (main): Don't invoke gl_sockets_startup.
22762         * tests/test-select.c: Don't include sockets.h.
22763         (main): Don't invoke gl_sockets_startup.
22764
22765 2009-08-02  Bruno Haible  <bruno@clisp.org>
22766
22767         Allow multiple calls to gl_sockets_startup.
22768         * lib/sockets.c (initialized_sockets_version): New variable.
22769         (gl_sockets_startup): Do nothing if already called for this or a higher
22770         version.
22771         (gl_sockets_cleanup): Reset initialized_sockets_version.
22772
22773 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22774
22775         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22776         different project/version.
22777
22778 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22779             Bruno Haible  <bruno@clisp.org>
22780
22781         Tests for module 'pipe-filter-gi'.
22782         * modules/pipe-filter-gi-tests: New file.
22783         * tests/test-pipe-filter-gi1.sh: New file.
22784         * tests/test-pipe-filter-gi1.c: New file.
22785         * tests/test-pipe-filter-gi2.sh: New file.
22786         * tests/test-pipe-filter-gi2-main.c: New file.
22787         * tests/test-pipe-filter-gi2-child.c: New file.
22788
22789         New module 'pipe-filter-gi'.
22790         * lib/pipe-filter-gi.c: New file.
22791         * modules/pipe-filter-gi: New file.
22792
22793 2009-08-02  Bruno Haible  <bruno@clisp.org>
22794             Paolo Bonzini  <bonzini@gnu.org>
22795
22796         Tests for module 'pipe-filter-ii'.
22797         * modules/pipe-filter-ii-tests: New file.
22798         * tests/test-pipe-filter-ii1.sh: New file.
22799         * tests/test-pipe-filter-ii1.c: New file.
22800         * tests/test-pipe-filter-ii2.sh: New file.
22801         * tests/test-pipe-filter-ii2-main.c: New file.
22802         * tests/test-pipe-filter-ii2-child.c: New file.
22803
22804         New module 'pipe-filter-ii'.
22805         * lib/pipe-filter.h: New file.
22806         * lib/pipe-filter-ii.c: New file.
22807         * lib/pipe-filter-aux.h: New file.
22808         * modules/pipe-filter-ii: New file.
22809
22810 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22811
22812         * lib/gc-libgcrypt.c: Change copyright to FSF.
22813         * lib/gc-gnulib.c: Likewise.
22814
22815 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22816
22817         * lib/gethostname.c: Include limits.h.
22818
22819 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22820             Bruno Haible  <bruno@clisp.org>
22821
22822         Ensure HOST_NAME_MAX as part of the gethostname module.
22823         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22824         define also HOST_NAME_MAX.
22825         * tests/test-gethostname.c: Include <limits.h>.
22826         (main): Check also HOST_NAME_MAX.
22827         * doc/posix-headers/limits.texi: Document the mingw problem.
22828
22829 2009-08-02  Bruno Haible  <bruno@clisp.org>
22830
22831         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22832         Add comments.
22833
22834 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22835
22836         * lib/gethostname.c: Add Windows wrapper.
22837         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22838         * modules/gethostname: Depend on sys_socket & errno, for also
22839         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22840         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22841
22842 2009-07-31  Jim Meyering  <meyering@redhat.com>
22843
22844         getloadavg: fix symbol name in comment
22845         * lib/getloadavg.c: Correct a typo I introduced when adding
22846         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22847         Matt Kraai spotted the problem.
22848
22849 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22850
22851         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22852         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22853         code also if ! defined N_NAME_POINTER.
22854         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22855         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22856         but the n_name member is a 12-byte array.
22857
22858 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22859
22860         update-copyright: generalize comment handling
22861         * build-aux/update-copyright: Handle copyright statements
22862         within more comment styles.
22863         Document usage.
22864         Report any file with an external copyright holder or parse failure.
22865
22866 2009-07-29  Jim Meyering  <meyering@redhat.com>
22867
22868         mktime: correct setting of REPLACE_MKTIME
22869         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22870
22871         update-copyright: new module
22872         * modules/update-copyright: New file.
22873         * build-aux/update-copyright: New file.
22874         * MODULES.html.sh (maint+release support): Add update-copyright.
22875
22876 2009-07-27  Bruno Haible  <bruno@clisp.org>
22877
22878         Fix compilation error when <ctime> is used and mktime is replaced.
22879         * lib/time.in.h (mktime): New declaration.
22880         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22881         REPLACE_MKTIME instead of defining mktime in config.h.
22882         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22883         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22884         Reported by Ross McFarland <rwmcfa1@neces.com>.
22885
22886 2009-07-27  Bruno Haible  <bruno@clisp.org>
22887
22888         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22889         Reported by Matt Kraai <mkraai@beckman.com>.
22890
22891 2009-07-25  Jim Meyering  <meyering@redhat.com>
22892
22893         maint.mk: avoid warnings about missing files
22894         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22895         diagnostic when .prev-version does not exist.
22896         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22897         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22898         nonexistent cfg.mk.
22899         Suggestions from Simon Josefsson.
22900
22901 2009-07-25  Bruno Haible  <bruno@clisp.org>
22902
22903         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22904         defined as macros. Needed on QNX 6.4.1.
22905         Reported by Matt Kraai <mkraai@beckman.com>.
22906
22907 2009-07-23  Jim Meyering  <meyering@redhat.com>
22908
22909         maint.mk: invoke "make dist" with a working value of XZ_OPT
22910         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22911
22912 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22913
22914         Make fseeko.c compile on QNX.
22915         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22916
22917 2009-07-22  Peter Simons  <simons@cryp.to>
22918
22919         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22920         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22921         * lib/md4.h: Likewise.
22922         * lib/md5.h: Likewise.
22923         * lib/sha1.h: Likewise.
22924         * lib/sha256.h: Likewise.
22925         * lib/sha512.h: Likewise.
22926
22927         tests-sha1: don't assign literal string to 'char *' variable
22928         * tests/test-sha1.c (main): Declare locals with "const" to match
22929         attributes of the right hand side.
22930
22931 2009-07-21  Eric Blake  <ebb9@byu.net>
22932
22933         dup2: fix more mingw problems
22934         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22935         fd to itself.
22936         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22937         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22938         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22939         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22940         care of mingw bugs.
22941
22942 2009-07-21  Jim Meyering  <meyering@redhat.com>
22943
22944         vc-list-files: avoid failure when /bin/sh is dash
22945         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22946         On some Debian based systems, /bin/sh is a symlink to dash, and running
22947         this command would omit the "/" following each 'tests' prefix:
22948           dash -x build-aux/vc-list-files -C . tests
22949         That is because bash and dash work differently:
22950           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22951           bash ok
22952           dash odd
22953
22954 2009-07-21  Eric Blake  <ebb9@byu.net>
22955
22956         dup2-tests: test previous patch
22957         * modules/dup2-tests: New file.
22958         * tests/test-dup2.c: Likewise.
22959         * tests/test-open.c (main): Avoid unspecified behavior.
22960         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22961         test.
22962
22963         dup2: work around mingw and cygwin 1.5 bug
22964         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22966         * modules/unistd (Makefile.am): Substitute it.
22967         * lib/unistd.in.h (dup2): Declare the replacement.
22968         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22969         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22970         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22971         * modules/execute (Depends-on): Add dup2.
22972         * modules/fseterr (Depends-on): Likewise.
22973         * modules/pipe (Depends-on): Likewise.
22974         * modules/posix_spawn-internal (Depends-on): Likewise.
22975
22976 2009-07-21  Bruno Haible  <bruno@clisp.org>
22977
22978         * modules/.gitattributes: New file.
22979
22980 2009-07-20  Bruno Haible  <bruno@clisp.org>
22981
22982         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22983         (main): Use it.
22984
22985 2009-07-20  Eric Blake  <ebb9@byu.net>
22986
22987         test-pipe: make a bit more robust.
22988         * tests/test-pipe.c (myerr): Allow error messages regardless of
22989         what we do to stderr.
22990         (test_pipe): Rearrange to avoid deadlock.
22991         (child_main): Try a larger read, to ensure we avoided deadlock.
22992         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22993         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22994         if misused.
22995
22996 2009-07-19  Jim Meyering  <meyering@redhat.com>
22997
22998         fts: avoid false-positive cycle-detection
22999         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23000         for each new command line argument.
23001
23002 2009-07-19  Bruno Haible  <bruno@clisp.org>
23003
23004         Fix build error on mingw with the modules sys_select and unistd.
23005         * modules/acl-tests (Depends-on): Add close.
23006         * modules/binary-io-tests (Depends-on): Likewise.
23007         * modules/closein-tests (Depends-on): Likewise.
23008         * modules/flock-tests (Depends-on): Likewise.
23009         * modules/fsync-tests (Depends-on): Likewise.
23010         * modules/lseek-tests (Depends-on): Likewise.
23011         * modules/pipe-tests (Depends-on): Likewise.
23012         * modules/posix_spawn-tests (Depends-on): Likewise.
23013         * modules/posix_spawnp-tests (Depends-on): Likewise.
23014         * modules/stat-time-tests (Depends-on): Likewise.
23015         * modules/yesno-tests (Depends-on): Likewise.
23016
23017 2009-07-19  Bruno Haible  <bruno@clisp.org>
23018
23019         Unify conditionals.
23020         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23021         macros, not at the compiler macros.
23022         * lib/pipe.c: Likewise.
23023         * lib/execute.c: Likewise.
23024         * lib/spawni.c: Likewise.
23025
23026 2009-07-19  Bruno Haible  <bruno@clisp.org>
23027
23028         Fix handling of closed stdin/stdout/stderr on mingw.
23029         * lib/w32spawn.h: Include unistd.h.
23030         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23031         file descriptor with O_NOINHERIT flag.
23032         (fd_safer_noinherit): New function, based on fd-safer.c.
23033         (dup_safer_noinherit): New function, based on dup-safer.c.
23034         (undup_safer_noinherit): New function.
23035         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23036         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23037         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23038         instead of fd_safer.
23039         * tests/test-pipe.c: Include <windows.h>.
23040         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23041
23042         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23043         from main.
23044         (test_pipe): Pass an extra argument for disambiguation.
23045         (main): Invoke parent_main or child_main.
23046
23047         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23048         consistently.
23049
23050 2009-07-18  Eric Blake  <ebb9@byu.net>
23051
23052         test-pipe: fix mingw build
23053         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23054
23055 2009-07-18  Bruno Haible  <bruno@clisp.org>
23056
23057         * modules/pipe-tests (Makefile.am): Fix typo.
23058
23059 2009-07-18  Eric Blake  <ebb9@byu.net>
23060
23061         error: fix mingw build
23062         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23063         Reported by Bruno Haible.
23064
23065         error: avoid undefined use of stdout
23066         * lib/error.c (error, error_at_line): Check that fd 1 is open
23067         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23068         is handling faults and the close_stdout module wants to report the
23069         detection of closed stdout as an error.
23070
23071 2009-07-17  Eric Blake  <ebb9@byu.net>
23072
23073         pipe: be robust in face of closed fds
23074         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23075         should cause child to misbehave.
23076         * modules/pipe-tests: New module.
23077         * tests/test-pipe.c: New file.
23078         * tests/test-pipe.sh: New file.
23079         Reported by Akim Demaille.
23080
23081 2009-07-14  Bruno Haible  <bruno@clisp.org>
23082
23083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23084         Reported by anonymous kc.
23085
23086 2009-07-07  Jim Meyering  <meyering@redhat.com>
23087
23088         maint.mk: don't look for translatable strings in *.m4 or *.mk
23089         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23090         when searching for translatable strings.
23091
23092 2009-07-05  Jim Meyering  <meyering@redhat.com>
23093
23094         remove superfluous parentheses in STREQ definition
23095         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23096         * lib/getugroups.c (STREQ): Likewise.
23097         * lib/fnmatch.c (STREQ): Likewise.
23098         Spotted by Bruno Haible.
23099
23100 2009-07-04  Jim Meyering  <meyering@redhat.com>
23101
23102         argv-iter: new module
23103         * MODULES.html.sh: Add argv-iter.
23104         * lib/argv-iter.c, lib/argv-iter.h: New files.
23105         * modules/argv-iter: New file.
23106         * modules/argv-iter-tests: New file.
23107         * tests/test-argv-iter.c: Test it.
23108
23109 2009-07-04  Bruno Haible  <bruno@clisp.org>
23110
23111         Fix assertion.
23112         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23113         contains more exact copies of a given entry than file2, leave the extra
23114         copies unpaired rather than aborting.
23115         Reported by Eric Blake.
23116
23117 2009-07-02  Bruno Haible  <bruno@clisp.org>
23118
23119         Speedup git-merge-changelog for git cherry-pick.
23120         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23121         (entries_mapping_get): New function, extracted from compute_mapping.
23122         (entries_mapping_reverse_get): New function.
23123         (compute_mapping): Add a 'full' argument. Return the result in a
23124         'struct entries_mapping'.
23125         (main): Update. Access the mappings through entries_mapping_get.
23126         Reported by Eric Blake.
23127
23128 2009-07-02  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23131         best_i.
23132
23133 2009-07-02  Bruno Haible  <bruno@clisp.org>
23134
23135         Speed up approximate search for matching ChangeLog entries.
23136         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23137         argument. Call fstrcmp_bounded instead of fstrcmp.
23138         (compute_mapping, try_split_merged_entry, main): Update callers.
23139
23140 2009-07-02  Bruno Haible  <bruno@clisp.org>
23141
23142         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23143
23144 2009-06-30  Bruno Haible  <bruno@clisp.org>
23145
23146         Reduce the number of uc_is_cased calls.
23147         * lib/unicase.h (casing_suffix_context_t): Add
23148         'first_char_except_ignorable' field.
23149         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23150         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23151         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23152         Update initializer.
23153         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23154         case-ignorable characters.
23155         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23156         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23157         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23158         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23159         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23160
23161 2009-06-30  Bruno Haible  <bruno@clisp.org>
23162
23163         Tests for module 'unicase/ignorable'.
23164         * modules/unicase/ignorable-tests: New file.
23165         * tests/unicase/test-ignorable.c: New file, generated by
23166         gen-uni-tables.
23167
23168         Tests for module 'unicase/cased'.
23169         * modules/unicase/cased-tests: New file.
23170         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23171         * tests/unicase/test-predicate-part1.h: New file, derived from
23172         tests/unictype/test-predicate-part1.h.
23173         * tests/unicase/test-predicate-part2.h: New file, same as
23174         tests/unictype/test-predicate-part2.h.
23175
23176         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23177         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23178         (output_casing_properties): New function.
23179         (main): Call it.
23180         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23181         * lib/unicase/cased.c: Include unictype/bitmap.h.
23182         (uc_is_cased): Define through a bitmap lookup.
23183         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23184         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23185         (uc_is_case_ignorable): Define through a bitmap lookup.
23186         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23187         lib/unictype/bitmap.h.
23188         (Depends-on): Add inline. Clean up.
23189         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23190         lib/unictype/bitmap.h.
23191         (Depends-on): Add inline. Clean up.
23192         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23193         recognition.
23194         * tests/unicase/test-u16-tolower.c (main): Likewise.
23195         * tests/unicase/test-u32-tolower.c (main): Likewise.
23196
23197 2009-06-30  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23200         * lib/unicase/u16-casemap.c: Likewise.
23201         * lib/unicase/u32-casemap.c: Likewise.
23202
23203 2009-06-29  Bruno Haible  <bruno@clisp.org>
23204
23205         Define u32_casefold as a wrapper around u32_ct_casefold.
23206         * lib/unicase/u32-casefold.c: Update.
23207         * modules/unicase/u32-casefold (Depends-on): Add
23208         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23209         unicase/empty-suffix-context. Clean up.
23210
23211         Define u16_casefold as a wrapper around u16_ct_casefold.
23212         * lib/unicase/u16-casefold.c: Update.
23213         * modules/unicase/u16-casefold (Depends-on): Add
23214         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23215         unicase/empty-suffix-context. Clean up.
23216
23217         Define u8_casefold as a wrapper around u8_ct_casefold.
23218         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23219         * lib/unicase/u8-casefold.c: Update.
23220         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23222
23223         Define u32_totitle as a wrapper around u32_ct_totitle.
23224         * lib/unicase/u32-totitle.c: Update.
23225         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23227
23228         Define u16_totitle as a wrapper around u16_ct_totitle.
23229         * lib/unicase/u16-totitle.c: Update.
23230         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23231         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23232
23233         Define u8_totitle as a wrapper around u8_ct_totitle.
23234         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23235         functions.
23236         (FUNC): Delegate to U_CT_TOTITLE.
23237         * lib/unicase/u8-totitle.c: Update.
23238         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23239         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23240
23241         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23242         invocation.
23243         * modules/unicase/u32-tolower (Depends-on): Add
23244         unicase/empty-prefix-context, unicase/empty-suffix-context.
23245
23246         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23247         invocation.
23248         * modules/unicase/u16-tolower (Depends-on): Add
23249         unicase/empty-prefix-context, unicase/empty-suffix-context.
23250
23251         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23252         * modules/unicase/u8-tolower (Depends-on): Add
23253         unicase/empty-prefix-context, unicase/empty-suffix-context.
23254
23255         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23256         invocation.
23257         * modules/unicase/u32-toupper (Depends-on): Add
23258         unicase/empty-prefix-context, unicase/empty-suffix-context.
23259
23260         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23261         invocation.
23262         * modules/unicase/u16-toupper (Depends-on): Add
23263         unicase/empty-prefix-context, unicase/empty-suffix-context.
23264
23265         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23266         * modules/unicase/u8-toupper (Depends-on): Add
23267         unicase/empty-prefix-context, unicase/empty-suffix-context.
23268
23269         New module 'unicase/u32-ct-casefold'.
23270         * lib/unicase/u32-ct-casefold.c: New file.
23271         * modules/unicase/u32-ct-casefold: New file.
23272
23273         New module 'unicase/u16-ct-casefold'.
23274         * lib/unicase/u16-ct-casefold.c: New file.
23275         * modules/unicase/u16-ct-casefold: New file.
23276
23277         New module 'unicase/u8-ct-casefold'.
23278         * lib/unicase/u8-ct-casefold.c: New file.
23279         * lib/unicase/u-ct-casefold.h: New file, derived from
23280         lib/unicase/u-casefold.h.
23281         * modules/unicase/u8-ct-casefold: New file.
23282
23283         New module 'unicase/u32-ct-totitle'.
23284         * lib/unicase/u32-ct-totitle.c: New file.
23285         * modules/unicase/u32-ct-totitle: New file.
23286
23287         New module 'unicase/u16-ct-totitle'.
23288         * lib/unicase/u16-ct-totitle.c: New file.
23289         * modules/unicase/u16-ct-totitle: New file.
23290
23291         New module 'unicase/u8-ct-totitle'.
23292         * lib/unicase/u8-ct-totitle.c: New file.
23293         * lib/unicase/u-ct-totitle.h: New file, derived from
23294         lib/unicase/u-totitle.h.
23295         * modules/unicase/u8-ct-totitle: New file.
23296
23297         New module 'unicase/u32-ct-tolower'.
23298         * lib/unicase/u32-ct-tolower.c: New file.
23299         * modules/unicase/u32-ct-tolower: New file.
23300
23301         New module 'unicase/u16-ct-tolower'.
23302         * lib/unicase/u16-ct-tolower.c: New file.
23303         * modules/unicase/u16-ct-tolower: New file.
23304
23305         New module 'unicase/u8-ct-tolower'.
23306         * lib/unicase/u8-ct-tolower.c: New file.
23307         * modules/unicase/u8-ct-tolower: New file.
23308
23309         New module 'unicase/u32-ct-toupper'.
23310         * lib/unicase/u32-ct-toupper.c: New file.
23311         * modules/unicase/u32-ct-toupper: New file.
23312
23313         New module 'unicase/u16-ct-toupper'.
23314         * lib/unicase/u16-ct-toupper.c: New file.
23315         * modules/unicase/u16-ct-toupper: New file.
23316
23317         New module 'unicase/u8-ct-toupper'.
23318         * lib/unicase/u8-ct-toupper.c: New file.
23319         * modules/unicase/u8-ct-toupper: New file.
23320
23321         Add context arguments to u*_casemap functions.
23322         * lib/unicase/unicasemap.h: Include unicase.h.
23323         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
23324         suffix_context arguments.
23325         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
23326         functions.
23327         (FUNC): Add prefix_context and suffix_context arguments. Use
23328         uc_is_cased and uc_is_case_ignorable.
23329         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
23330         * lib/unicase/u16-casemap.c: Likewise.
23331         * lib/unicase/u32-casemap.c: Likewise.
23332         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
23333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23334         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23335         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23336         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23337         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23338
23339         New module 'unicase/u32-suffix-context'.
23340         * lib/unicase/u32-suffix-context.c: New file.
23341         * modules/unicase/u32-suffix-context: New file.
23342
23343         New module 'unicase/u16-suffix-context'.
23344         * lib/unicase/u16-suffix-context.c: New file.
23345         * modules/unicase/u16-suffix-context: New file.
23346
23347         New module 'unicase/u8-suffix-context'.
23348         * lib/unicase/u8-suffix-context.c: New file.
23349         * lib/unicase/u-suffix-context.h: New file.
23350         * modules/unicase/u8-suffix-context: New file.
23351
23352         New module 'unicase/empty-suffix-context'.
23353         * lib/unicase/empty-suffix-context.c: New file.
23354         * modules/unicase/empty-suffix-context: New file.
23355
23356         New module 'unicase/u32-prefix-context'.
23357         * lib/unicase/u32-prefix-context.c: New file.
23358         * modules/unicase/u32-prefix-context: New file.
23359
23360         New module 'unicase/u16-prefix-context'.
23361         * lib/unicase/u16-prefix-context.c: New file.
23362         * modules/unicase/u16-prefix-context: New file.
23363
23364         New module 'unicase/u8-prefix-context'.
23365         * lib/unicase/u8-prefix-context.c: New file.
23366         * lib/unicase/u-prefix-context.h: New file.
23367         * lib/unicase/context.h: New file.
23368         * modules/unicase/u8-prefix-context: New file.
23369
23370         New module 'unicase/empty-prefix-context'.
23371         * lib/unicase/empty-prefix-context.c: New file.
23372         * modules/unicase/empty-prefix-context: New file.
23373
23374         New module 'unicase/ignorable'.
23375         * lib/unicase/ignorable.c: New file.
23376         * modules/unicase/ignorable: New file.
23377
23378         New module 'unicase/cased'.
23379         * lib/unicase/caseprop.h: New file.
23380         * lib/unicase/cased.c: New file.
23381         * modules/unicase/cased: New file.
23382
23383         New functions for case mapping of substrings.
23384         * lib/unicase.h (casing_prefix_context_t): New type.
23385         (unicase_empty_prefix_context): New variable.
23386         (u8_casing_prefix_context, u16_casing_prefix_context,
23387         u32_casing_prefix_context, u8_casing_prefixes_context,
23388         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23389         declarations.
23390         (casing_suffix_context_t): New type.
23391         (unicase_empty_suffix_context): New variable.
23392         (u8_casing_suffix_context, u16_casing_suffix_context,
23393         u32_casing_suffix_context, u8_casing_suffixes_context,
23394         u16_casing_suffixes_context, u32_casing_suffixes_context,
23395         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23396         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23397         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23398         declarations.
23399
23400 2009-06-28  Jim Meyering  <meyering@redhat.com>
23401
23402         boostrap: indent only with spaces
23403         * build-aux/bootstrap: Indent only with spaces, never TABs.
23404
23405         bootstrap: split long lines
23406         * build-aux/bootstrap: Keep line length < 80.
23407
23408         bootstrap: sync from coreutils
23409         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23410         just as autoreconf does.  Verify a list of prerequisite
23411         package-name,version-number pairs if defined in bootstrap.conf.
23412         Refer to README-prereq, if prerequisites are not satisfied.
23413
23414 2009-06-27  Eric Blake  <ebb9@byu.net>
23415
23416         tests: add test for bogus NULL definition
23417         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23418         * tests/test-stdlib.c: Likewise.
23419         * tests/test-string.c: Likewise.
23420         * tests/test-locale.c: Likewise.
23421         * tests/test-unistd.c: Likewise.
23422         * modules/stdio-tests (Depends-on): Add verify.
23423         * modules/stdlib-tests (Depends-on): Likewise.
23424         * modules/string-tests (Depends-on): Likewise.
23425         * modules/locale-tests (Depends-on): Likewise.
23426         * modules/unistd-tests (Depends-on): Likewise.
23427
23428 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23429
23430         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23431         self-explaining comment.
23432         * m4/selinux-selinux-h: Update serial.
23433         (gl_LIBSELINUX): New macro, adding a warning for missing development
23434         packages to code extracted from...
23435         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23436         Add warning for missing development packages here, too.
23437
23438 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23439
23440         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23441
23442 2009-06-25  Eric Blake  <ebb9@byu.net>
23443
23444         version-etc: fix regression
23445         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23446         gcc.
23447         (version_etc): Use it, to catch bugs with trailing NULL.
23448         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23449         (version_etc_va): Fix logic bug.
23450         * modules/version-etc-tests: Add test.
23451         * tests/test-version-etc.c: New file.
23452         * tests/test-version-etc.sh: Likewise.
23453
23454 2009-06-25  Sam Steingold  <sds@gnu.org>
23455
23456         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23457         mbtowc declaration.
23458
23459 2009-06-25  Eric Blake  <ebb9@byu.net>
23460
23461         fpurge: migrate into <stdio.h>
23462         * lib/fpurge.h: Delete...
23463         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23464         * lib/fpurge.c (fpurge): Change declaring header.
23465         * modules/fpurge (Files): Drop deleted file.
23466         (Depends-on): Add stdio.
23467         (configure.ac): Set witness.
23468         * modules/stdio (Makefile.am): Support fpurge macros.
23469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23470         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23471         * lib/fflush.c: Update client.
23472         * tests/test-fpurge.c: Likewise.
23473         * NEWS: Mention the change.
23474
23475 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23476
23477         * lib/argp-version-etc.c (program_authors): Add const
23478         qualifier.
23479         * lib/version-etc.c: Fix typos in the comments.
23480         * modules/argp-version-etc: Depends on version-etc.
23481
23482 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23483
23484         argp-version-etc: new module.
23485
23486         * lib/argp-version-etc.c: New file.
23487         * lib/argp-version-etc.h: New file.
23488         * modules/argp-version-etc: New file.
23489         * modules/argp-version-etc-tests: New file.
23490         * tests/test-argp-version-etc.c: New test.
23491         * tests/test-argp-version-etc-1.sh: New test.
23492
23493 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23494
23495         Provide additional interfaces and documentation for version-etc
23496         module.
23497
23498         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23499         interfaces.
23500         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23501         prototypes.
23502
23503 2009-06-24  Bruno Haible  <bruno@clisp.org>
23504
23505         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23506         HAVE_LIB${NAME} macro.
23507         Reported by Sam Steingold <sds@gnu.org>.
23508
23509 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23510
23511         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23512         needed.
23513
23514 2009-06-21  Bruno Haible  <bruno@clisp.org>
23515
23516         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23517         work.
23518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23519         together with LIB${NAME}, LTLIB${NAME}.
23520         Reported by Sam Steingold <sds@gnu.org>.
23521
23522 2009-06-20  Jim Meyering  <meyering@redhat.com>
23523
23524         tests: make sc_require_test_exit_idiom more generic
23525         * top/maint.mk (Exit_witness_file): New overridable variable.
23526         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23527         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23528
23529 2009-06-19  Jim Meyering  <meyering@redhat.com>
23530
23531         hash: reverse order of src/dst parameters in an internal interface
23532         * lib/hash.c (transfer_entries): Reverse order of parameters to
23533         put DST before SRC.  Adjust callers.
23534
23535         tests: test-hash: avoid wholesale duplication
23536         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23537         Instead, use a loop and add a single conditional.
23538
23539         tests: test-hash: allow seed selection via a command line argument
23540         * tests/test-hash.c (get_seed): New function.
23541         (main): Use it.
23542
23543 2009-06-19  Eric Blake  <ebb9@byu.net>
23544
23545         hash: avoid memory leak on allocation failure
23546         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23547         failure.  Factor repeated algorithm...
23548         (transfer_entries): ...into new helper routine.
23549         (hash_delete): React to hash_rehash return value.
23550
23551         hash: reduce memory pressure in hash_rehash no-op case
23552         * lib/hash.c (next_prime): Avoid overflow.
23553         (hash_initialize): Factor bucket size computation...
23554         (compute_bucket_size): ...into new helper function.
23555         (hash_rehash): Use new function and open coding to reduce memory
23556         pressure, and avoid a memory leak in USE_OBSTACK code.
23557         Reported by Jim Meyering.
23558
23559 2009-06-18  Eric Blake  <ebb9@byu.net>
23560
23561         hash: make rotation more obvious
23562         * modules/hash (Depends-on): Add bitrotate and stdint.
23563         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23564         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23565         (SIZE_MAX): Rely on headers for definition.
23566         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23567         (raw_hasher): Use rotr_sz.
23568         Suggested by Jim Meyering.
23569
23570         hash: fix memory leak in last patch
23571         * lib/hash.c (hash_rehash): Avoid memory leak.
23572
23573         hash: avoid no-op rehashing
23574         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23575
23576         hash: provide default callback functions
23577         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23578         (hash_initialize): Use them as defaults.
23579         * tests/test-hash.c (main): Test this.
23580
23581         hash: minor optimization
23582         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23583         when possible.
23584         (hash_initialize): Document this promise.
23585         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23586         * tests/test-hash.c (hash_compare_strings): Test this.
23587
23588 2009-06-18  Bruno Haible  <bruno@clisp.org>
23589
23590         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23591         going to be replaced anyway.
23592
23593 2009-06-18  Bruno Haible  <bruno@clisp.org>
23594
23595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23596         in one place.
23597         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23598         be replaced anyway.
23599
23600 2009-06-18  Eric Blake  <ebb9@byu.net>
23601
23602         hash: check for resize before insertion
23603         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23604         threshold before insertion, so that a pathological hash_rehash
23605         that fills every bucket can still trigger another rehash.
23606
23607 2009-06-18  Jim Meyering  <meyering@redhat.com>
23608
23609         hash-tests: add a loop around the small tests
23610         * tests/test-hash.c (main): Repeat small tests with selected
23611         small initial table sizes.
23612
23613 2009-06-17  Eric Blake  <ebb9@byu.net>
23614
23615         hash: minor cleanups
23616         * lib/hash.h (hash_entry): Make opaque, by moving...
23617         * lib/hash.c (hash_entry): ...here.
23618         (hash_insert): Clarify restrictions on what can be inserted.
23619         (hash_get_next): Clarify when it is safe to remove an element
23620         during traversal.
23621         (check_tuning): Skip verification when tuning is known safe.
23622         (hash_initialize): Clarify restrictions on tuning.
23623
23624 2009-06-17  Jim Meyering  <jim@meyering.net>
23625         and Eric Blake  <ebb9@byu.net>
23626
23627         hash-tests: new module
23628         * modules/hash-tests: New file.
23629         * tests/test-hash.c: New file.
23630
23631 2009-06-17  Eric Blake  <ebb9@byu.net>
23632
23633         strstr-simple: document new module
23634         * MODULES.html.sh: Document new module.
23635
23636         strstr, strcasestr: replace on platforms with broken memchr
23637         * modules/strstr: Split into...
23638         * modules/strstr-simple: ...new module that does not care about
23639         performance, but does care about glibc bug.
23640         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23641         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23642         if platform memchr is broken, per Debian bug 521737.
23643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23644         memchr.
23645         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23646         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23647         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23648         * modules/mountlist (Depends-on): Add strstr-simple.
23649         * modules/gen-uni-tables (Depends-on): Likewise.
23650         * modules/argz (Depends-on): Add strstr.
23651
23652 2009-06-17  Bruno Haible  <bruno@clisp.org>
23653
23654         * modules/posix_spawn-internal (Depends-on): Add errno.
23655
23656 2009-06-17  Bruno Haible  <bruno@clisp.org>
23657
23658         Define missing ESTALE on Interix 3.5.
23659         * lib/errno.in.h (ESTALE): Assign a value if missing.
23660         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23661         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23662         missing.
23663         * doc/posix-headers/errno.texi: Mention the Interix bug.
23664         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23665
23666 2009-06-15  Eric Blake  <ebb9@byu.net>
23667
23668         memchr, memchr2: add valgrind exception
23669         * lib/memchr.valgrind: New file.
23670         * lib/memchr2.valgrind: New file.
23671         * modules/memchr (Files): Distribute valgrind file.
23672         * modules/memchr2 (Files): Likewise.
23673
23674         docs: memchr is no longer obsolete
23675         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23676         * lib/string.in.h (memchr): Simplify logic.
23677
23678 2009-06-14  Jim Meyering  <meyering@redhat.com>
23679
23680         link-follow: fix the "checking..." message to not mention trailing slash
23681         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23682         never considered trailing slashes.
23683
23684 2009-06-14  Bruno Haible  <bruno@clisp.org>
23685
23686         * m4/memchr.m4: Mention also the bug on IA-64.
23687         * doc/posix-functions/memchr.texi: Likewise.
23688
23689 2009-06-12  Eric Blake  <ebb9@byu.net>
23690
23691         memchr: detect broken x86_64 and alpha implementations
23692         * modules/memchr-tests (Depends-on): Move mmap detection...
23693         * modules/memchr (Depends-on): ...here.
23694         (configure.ac): Set indicator.
23695         * lib/string.in.h (memchr): Declare replacement.
23696         * modules/string (Makefile.am): Trigger replacement.
23697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23699         bugs.
23700         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23701         * modules/getpagesize (License): Relax license.
23702
23703 2009-06-11  Bruno Haible  <bruno@clisp.org>
23704
23705         * lib/idpriv.h: Add more references.
23706
23707 2009-06-08  Bruno Haible  <bruno@clisp.org>
23708
23709         Tests for module 'idpriv-droptemp'.
23710         * modules/idpriv-droptemp-tests: New file.
23711         * tests/test-idpriv-droptemp.sh: New file.
23712         * tests/test-idpriv-droptemp.su.sh: New file.
23713         * tests/test-idpriv-droptemp.c: New file.
23714
23715         New module 'idpriv-droptemp'.
23716         * lib/idpriv-droptemp.c: New file.
23717         * modules/idpriv-droptemp: New file.
23718
23719 2009-06-08  Bruno Haible  <bruno@clisp.org>
23720
23721         Tests for module 'idpriv-drop'.
23722         * modules/idpriv-drop-tests: New file.
23723         * tests/test-idpriv-drop.sh: New file.
23724         * tests/test-idpriv-drop.su.sh: New file.
23725         * tests/test-idpriv-drop.c: New file.
23726
23727         New module 'idpriv-drop'.
23728         * lib/idpriv.h: New file.
23729         * lib-idpriv-drop.c: New file.
23730         * m4/idpriv.m4: New file.
23731         * modules/idpriv-drop: New file.
23732
23733 2009-06-08  Bruno Haible  <bruno@clisp.org>
23734
23735         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23742
23743 2009-06-08  Eric Blake  <ebb9@byu.net>
23744
23745         test-strstr: use memory fence, when possible
23746         * tests/test-strstr.c (main): Use memory fence, in order to be
23747         more likely to trigger Debian bug 521737.
23748         * modules/strstr-tests (Files): Pull in additional files.
23749
23750         memchr: no longer obsolete, for wider field testing
23751         * modules/memchr (Status, Notice): Delete, this module is no
23752         longer obsolete.
23753         * modules/vasnprintf (Depends-on): Add memchr.
23754
23755 2009-06-07  Jim Meyering  <meyering@redhat.com>
23756
23757         hash: declare some functions with the warn_unused_result attribute
23758         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23759
23760 2009-06-07  Bruno Haible  <bruno@clisp.org>
23761
23762         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23763         Reported by Eric Blake.
23764
23765 2009-06-06  Eric Blake  <ebb9@byu.net>
23766
23767         test-alignof: fix typo with long double
23768         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23769         compiler error.
23770
23771 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23772
23773         Escape non-texinfo { and }s.
23774         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23775         markup error.
23776
23777 2009-06-04  Jim Meyering  <meyering@redhat.com>
23778
23779         gitlog-to-changelog: don't infloop on an empty commit log
23780         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23781         Reported by Boris Petersen <transacid@centerim.org>.
23782
23783 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23784
23785         version-etc: extend for packagers
23786         Add three new configure options, intended for packagers:
23787           --with-packager="packager name"
23788           --with-packager-version="packager-specific version"
23789           --with-packager-bug-reports="packager bug reporting"
23790         An example with coreutils:
23791           $ ./configure \
23792             --with-packager=Gentoo \
23793             --with-packager-bug-report=http://bugs.gentoo.org/ \
23794             --with-packager-version="patchset 1.6"
23795           $ ./src/ls --version | head -n2
23796           ls (GNU coreutils) 7.1-dirty
23797           Packaged by Gentoo (patchset 1.6)
23798         Note that the bug reporting info via --help doesn't show up because
23799         coreutils uses its own custom emit_bug_reporting_address() implementation
23800         in src/system.h.  If it didn't, it'd look like:
23801           $ ./src/ls --help | tail -n4
23802           Report bugs to <bug-coreutils@gnu.org>.
23803           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23804           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23805           General help using GNU software: <http://www.gnu.org/gethelp/>.
23806         * lib/version-etc.c: Print new information, if provided.
23807         * m4/version-etc.m4: New file.
23808         * modules/version-etc (Files): Add m4/version-etc.m4.
23809         (configure.ac): Add gl_VERSION_ETC.
23810
23811 2009-05-31  Bruno Haible  <bruno@clisp.org>
23812
23813         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23814         and 'int64_t'.
23815         * modules/alignof-tests (Dependencies): Add stdint.
23816         Reported by Eric Blake.
23817
23818 2009-05-31  Bruno Haible  <bruno@clisp.org>
23819
23820         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23821         restriction due to compiler bugs.
23822         Reported by Eric Blake.
23823
23824 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23825             Bruno Haible  <bruno@clisp.org>
23826
23827         Fix test-alignof failure.
23828         * lib/alignof.h (alignof_slot): New macro.
23829         (alignof_type): New macro, with the same semantics as the previous
23830         'alignof'.
23831         (alignof): Alias to alignof_slot.
23832         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23833         check that the results are usable as constant expressions.
23834
23835 2009-05-31  Bruno Haible  <bruno@clisp.org>
23836
23837         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23838         * tests/test-memchr.c (main): Check that memchr does not read past the
23839         first occurrence of the byte.
23840         * tests/test-strstr.c (main): Update comment.
23841         Suggested by Eric Blake.
23842
23843 2009-05-30  Bruno Haible  <bruno@clisp.org>
23844
23845         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23846         detail how to use dumpbin.
23847         Reported by David Byron <dbyron@dbyron.com>.
23848
23849 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23850
23851         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23852
23853 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23854
23855         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23856
23857 2009-05-28  Bruno Haible  <bruno@clisp.org>
23858
23859         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23860         build-aux/ files.
23861
23862 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23863
23864         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23865
23866 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23867
23868         * gnulib-tool (sed_transform_main_lib_file)
23869         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23870         regexps.
23871
23872 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23873
23874         * tests/test-strstr.c: Add another self-test.
23875         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23876         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23877
23878 2009-05-23  Bruno Haible  <bruno@clisp.org>
23879
23880         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23881         change.
23882
23883 2009-05-21  Bruno Haible  <bruno@clisp.org>
23884
23885         Simplify use of mode_t varargs.
23886         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23887         uses 'mode_t' or 'int'.
23888         * lib/openat.c (openat): Likewise.
23889         * lib/open-safer.c (open_safer): Likewise.
23890         * m4/mode_t.m4: New file.
23891         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23892         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23894         * modules/open (Files): Add m4/mode_t.m4.
23895         * modules/openat (Files): Likewise.
23896         * modules/fcntl-safer (Files): Likewise.
23897         Suggested by Eric Blake.
23898
23899 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23900
23901         * doc/glibc-functions/fallocate.texi: New file.
23902         * doc/gnulib.texi: Include it.
23903
23904 2009-05-21  Eric Blake  <ebb9@byu.net>
23905             Bruno Haible  <bruno@clisp.org>
23906
23907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23908         invocations.
23909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23910
23911 2009-05-21  Eric Blake  <ebb9@byu.net>
23912             Bruno Haible  <bruno@clisp.org>
23913
23914         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23915         include_next. Fix of 2008-11-20 commit.
23916         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23917         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23918         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23919         NEXT_MATH_H.
23920         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23921         instead of NEXT_MATH_H.
23922
23923 2009-05-21  Bruno Haible  <bruno@clisp.org>
23924
23925         Avoid redefinition warnings for SIZE_MAX.
23926         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23927         Reported by Simon Josefsson.
23928
23929 2009-05-21  Bruno Haible  <bruno@clisp.org>
23930
23931         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23932         AC_CACHE_VAL.
23933
23934 2009-05-20  Bruno Haible  <bruno@clisp.org>
23935
23936         Make zeroptr.h work on mingw.
23937         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23938         mprotect.
23939         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23940         * modules/memchr2-tests (configure.ac): Likewise.
23941         * modules/memcmp-tests (configure.ac): Likewise.
23942         * modules/memmem-tests (configure.ac): Likewise.
23943         * modules/memrchr-tests (configure.ac): Likewise.
23944         Reported by Simon Josefsson.
23945
23946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23947
23948         * tests/test-glob.c: Include string.h for strcmp prototype.
23949
23950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23951
23952         * modules/getdelim (Depends-on): Add explicit stdint, although it
23953         was implicitly already pulled in via realloc-posix.
23954         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23955
23956 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23957
23958         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23959         G. Christensen" <tgc@jupiterrise.com>.
23960         * m4/sys_socket_h.m4: Check for sa_family_t.
23961         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23962         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23963         * tests/test-sys_socket.c: Check that sa_family_t works.
23964
23965 2009-05-18  Eric Blake  <ebb9@byu.net>
23966
23967         maint.mk: allow gnulib_dir in VPATH build
23968         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23969
23970 2009-05-15  Jim Meyering  <meyering@redhat.com>
23971
23972         maint.mk: Give gnulib_dir a default definition.
23973         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23974         Thus, most packages no longer need to specify this variable in cfg.mk
23975
23976 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23977
23978         rename.m4: fix typos that would make non-mingw cross-configure fail
23979         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23980
23981 2009-05-13  Eric Blake  <ebb9@byu.net>
23982
23983         mmap-anon: avoid out-of-order autoconf expansion
23984         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23985         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23986         * modules/memchr-tests (Depends-on): Add extensions.
23987         * modules/memchr2-tests (Depends-on): Add extensions.
23988         * modules/memcmp-tests (Depends-on): Add extensions.
23989         * modules/memmem-tests (Depends-on): Add extensions.
23990         * modules/memrchr-tests (Depends-on): Add extensions.
23991
23992 2009-05-13  Bruno Haible  <bruno@clisp.org>
23993
23994         Make some tests ISO C 99 compliant.
23995         * tests/zerosize-ptr.h: New file.
23996         * tests/test-memchr.c: Include zerosize-ptr.h.
23997         (main): Use a zero-size object pointer instead of NULL.
23998         * tests/test-memchr2.c: Include zerosize-ptr.h.
23999         (main): Use a zero-size object pointer instead of NULL.
24000         * tests/test-memcmp.c: Include zerosize-ptr.h.
24001         (main): Use a zero-size object pointer instead of NULL.
24002         * tests/test-memmem.c: Include zerosize-ptr.h.
24003         (main): Use a zero-size object pointer instead of NULL.
24004         * tests/test-memrchr.c: Include zerosize-ptr.h.
24005         (main): Use a zero-size object pointer instead of NULL.
24006         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24007         m4/mmap-anon.m4.
24008         (Depends-on): Add getpagesize.
24009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24010         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24011         m4/mmap-anon.m4.
24012         (Depends-on): Add getpagesize.
24013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24014         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24015         m4/mmap-anon.m4.
24016         (Depends-on): Add getpagesize.
24017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24018         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24019         m4/mmap-anon.m4.
24020         (Depends-on): Add getpagesize.
24021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24022         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24023         m4/mmap-anon.m4.
24024         (Depends-on): Add getpagesize.
24025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24026
24027 2009-05-12  Bruno Haible  <bruno@clisp.org>
24028
24029         Tests for module 'alignof'.
24030         * modules/alignof-tests: New file.
24031         * tests/test-alignof.c: New file.
24032
24033 2009-05-12  Bruno Haible  <bruno@clisp.org>
24034
24035         Fix alignof macro.
24036         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24037         vendor compilers that are always correct.
24038
24039 2009-05-12  Bruno Haible  <bruno@clisp.org>
24040
24041         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24042         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24043         not whether its fully works.
24044
24045 2009-05-12  Bruno Haible  <bruno@clisp.org>
24046
24047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24048
24049 2009-05-12  Jim Meyering  <meyering@redhat.com>
24050
24051         * top/maint.mk: Adjust backslash alignment.
24052
24053 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24054
24055         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24056
24057 2009-05-11  Eric Blake  <ebb9@byu.net>
24058
24059         argp: avoid undefined behavior
24060         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24061         macros.
24062
24063 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24064
24065         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24066         user.name to prevent git commit from complaining.
24067
24068 2009-05-10  Bruno Haible  <bruno@clisp.org>
24069
24070         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24071         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24072         it rewrites every file name only once.
24073         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24074
24075 2009-05-08  Bruno Haible  <bruno@clisp.org>
24076
24077         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24078         instead of 'max'.
24079
24080 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24081
24082         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24083         sockaddr_storage test.
24084
24085 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24086
24087         * modules/sys_socket (Makefile.am): Substitute
24088         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24089         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24090         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24091         * tests/test-sys_socket.c: Check sockaddr_storage.
24092
24093 2009-05-08  Bruno Haible  <bruno@clisp.org>
24094
24095         New module 'alignof'.
24096         * lib/alignof.h: New file.
24097         * modules/alignof: New file.
24098
24099 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24100             Bruno Haible  <bruno@clisp.org>
24101
24102         Fix test-file-has-acl on FreeBSD.
24103         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24104         mask is implicitly added.
24105         * tests/test-file-has-acl.c: Include <signal.h>.
24106         (main): Terminate the test after 5 seconds.
24107         * modules/acl-tests (configure.ac): Check for alarm function.
24108
24109 2009-05-04  Bruno Haible  <bruno@clisp.org>
24110
24111         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24113         * modules/errno (configure.ac): Drop AC_REQUIRE.
24114         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24115         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24116
24117 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24118
24119         * modules/glob-tests: New module.
24120         * tests/test-glob.c: Add.
24121
24122 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24123
24124         * modules/fnmatch-tests: New module.
24125         * tests/test-fnmatch.c: Add.
24126
24127 2009-05-04  Eric Blake  <ebb9@byu.net>
24128
24129         maint: make the new no-submodule-changes rule VPATH-safe
24130         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24131
24132 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24133             Bruno Haible  <bruno@clisp.org>
24134
24135         acl: Fix infinite loop on FreeBSD.
24136         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24137         of return value from acl_get_entry.
24138         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24139         Likewise.
24140
24141 2009-05-03  Bruno Haible  <bruno@clisp.org>
24142
24143         * lib/acl-internal.h (acl_entries): Clarify return value.
24144         * lib/acl_entries.c (acl_entries): Likewise.
24145
24146 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24147
24148         Bug fix in acl module.
24149         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24150
24151 2009-05-03  Bruno Haible  <bruno@clisp.org>
24152
24153         Create gperf-generated file in the source dir, not in the build dir.
24154         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24155         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24156         * modules/unicase/locale-language (unicase/locale-languages.h):
24157         Likewise.
24158         * modules/unicase/special-casing (unicase/special-casing-table.h):
24159         Likewise.
24160         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24161         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24162         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24163         Reported by Ralf Wildenhues.
24164
24165 2009-05-03  Bruno Haible  <bruno@clisp.org>
24166
24167         * modules/fnmatch (Description, configure.ac): Taken from
24168         fnmatch-posix.
24169         * modules/fnmatch-posix: Turn into a symbolic reference to the
24170         'fnmatch' module, and deprecate.
24171         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24172
24173 2009-05-03  Bruno Haible  <bruno@clisp.org>
24174
24175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24176         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24177         Reported by Ralf Wildenhues.
24178
24179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24180
24181         * m4/fnmatch.m4: Fix fnmatch re-define.
24182
24183 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24184
24185         priv-set: new module and tests; adapt write-any-file
24186         * lib/priv-set.c: New file.
24187         * lib/priv-set.h: New file.
24188         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24189         * lib/write-any-file.c: Simplify by using priv-set module.
24190         * m4/priv-set.m4: New file.
24191         * modules/priv-set: New file.
24192         * modules/unlinkdir: Add dependency on priv-set module.
24193         * modules/write-any-file: Likewise.
24194
24195         Tests for module 'priv-set'.
24196         * modules/priv-set-tests: New file.
24197         * tests/test-priv-set.c: New file.
24198
24199 2009-05-03  Jim Meyering  <meyering@redhat.com>
24200             Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24203         use the converted UTF-8 variant of the name instead.
24204
24205 2009-05-03  Jim Meyering  <meyering@redhat.com>
24206
24207         tests: tighten some getdate tests
24208         * tests/test-getdate.c (main): Tighten tests: require equality,
24209         not just greater than.  Set TZ envvar to UTC0.
24210
24211 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24212
24213         getdate: correctly interpret "next monday" when run on a Monday
24214         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24215         that e.g., "next tues" (when run on a tuesday) results in a date
24216         that is one week in the future, and not today's date.
24217         I.e., add a week when the wday is the same as the current one.
24218         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24219         and earlier by Martin Bernreuther and Jan Minář.
24220         * tests/test-getdate.c (main): Check that "next DAY" is always in
24221         the future and that "last DAY" is always in the past.
24222
24223 2009-05-02  Jim Meyering  <meyering@redhat.com>
24224
24225         build: ensure that a release build fails when a submodule is unclean
24226         * top/maint.mk (no-submodule-changes): New rule.
24227         (alpha beta major): Depend on it.
24228
24229 2009-05-02  Bruno Haible  <bruno@clisp.org>
24230
24231         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24233         shell variable gl_fnmatch_required to detect which variant is
24234         requested.
24235         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24236         gl_FUNC_FNMATCH_POSIX.
24237         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24238         exclude fnmatch-posix.
24239
24240 2009-05-02  Bruno Haible  <bruno@clisp.org>
24241
24242         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24243         * modules/mbsrtowcs (License): Change to LGPLv2+.
24244         * modules/strnlen1 (License): Likewise.
24245         Reported by Simon Josefsson.
24246
24247 2009-05-02  Bruno Haible  <bruno@clisp.org>
24248
24249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24250         "cross".
24251         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24252         gnulib-tool was called with option --source-base=lib.
24253
24254 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24255
24256         Use automake *-local hooks without commands, for extensibility.
24257         * modules/localcharset (Makefile.am): Rename install-exec-local
24258         rule to install-exec-localcharset, and make it a prerequisite of
24259         install-exec-local.  Likewise, rename the uninstall-local rule to
24260         uninstall-localcharset, and make it a prerequisite of the former.
24261
24262 2009-05-01  Bruno Haible  <bruno@clisp.org>
24263
24264         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24265         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24266         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24268         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24269         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24270         m4/locale-zh.m4, m4/codeset.m4.
24271
24272         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24273         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24274         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24275         m4/locale-zh.m4.
24276
24277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24278         REPLACE_WCRTOMB if mbstate_t must be replaced.
24279         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24280         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24281
24282 2009-05-01  Bruno Haible  <bruno@clisp.org>
24283
24284         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24285         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24286         dngettext, dcngettext, textdomain, bindtextdomain,
24287         bind_textdomain_codeset): Undefine before redefining.
24288
24289 2009-04-30  Bruno Haible  <bruno@clisp.org>
24290
24291         Fix bug introduced on 2009-04-25.
24292         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
24293         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
24294         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
24295         is defined.
24296         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
24297         is defined.
24298         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
24299         is defined.
24300         Reported by Elbert_Pol <elbert.pol@gmail.com>.
24301
24302 2009-04-28  Bruno Haible  <bruno@clisp.org>
24303
24304         Comment tweaks.
24305         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
24306         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
24307         * lib/unicase.h (u*_casexfrm): Likewise.
24308         Reported by Paolo Bonzini.
24309
24310 2009-04-28  Bruno Haible  <bruno@clisp.org>
24311
24312         Fix a compilation error.
24313         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
24314         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24315         Reported by Jim Meyering.
24316
24317 2009-04-27  Bruno Haible  <bruno@clisp.org>
24318
24319         New module 'libunistring'.
24320         * modules/libunistring: New file.
24321         * m4/libunistring.m4: New file.
24322         * MODULES.html.sh (Unicode string functions): Add it.
24323
24324 2009-04-27  Eric Blake  <ebb9@byu.net>
24325
24326         maint.mk: allow package-specific header to provide <config.h>
24327         * top/maint.mk (sc_require_config_h): New variable.
24328         (sc_require_config_h, sc_require_config_h_first): Use it.
24329
24330 2009-04-27  Simon Josefsson  <simon@josefsson.org>
24331
24332         * top/maint.mk (sc_avoid_if_before_free): Except
24333         useless-if-before-free script.
24334
24335 2009-04-27  Eric Blake  <ebb9@byu.net>
24336
24337         maintainer-makefile: depend on all required helper scripts
24338         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24339         useless-if-before-free.
24340         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24341         version, rather than assuming gnulib checkout is available.
24342         Reported by Simen Josefsson.
24343
24344 2009-04-26  Bruno Haible  <bruno@clisp.org>
24345
24346         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24347         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24348         "../" or "..".
24349
24350 2009-04-26  Bruno Haible  <bruno@clisp.org>
24351
24352         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24353         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24354         AC_LIB_HAVE_LINKFLAGS.
24355
24356 2009-04-26  Bruno Haible  <bruno@clisp.org>
24357
24358         Simplify calling convention of u*_conv_from_encoding.
24359         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24360         u32_conv_from_encoding): Expect a resultbuf argument and return the
24361         result directly as a pointer.
24362         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24363         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24364         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24365         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24366         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24367         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24368         Update.
24369         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24370         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24371         * lib/vasnprintf.c (VASNPRINTF): Update.
24372         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24373         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24374         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24375         * NEWS: Mention the change.
24376
24377 2009-04-26  Bruno Haible  <bruno@clisp.org>
24378
24379         Simplify calling convention of u*_conv_to_encoding.
24380         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24381         u32_conv_to_encoding): Expect a resultbuf argument and return the
24382         result directly as a pointer.
24383         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24384         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24385         freeing scaled_offsets if mem_iconveha failed.
24386         * lib/unicase/u-casexfrm.h (FUNC): Update.
24387         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24388         * lib/vasnprintf.c (VASNPRINTF): Update.
24389         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24390         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24391         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24392         * NEWS: Mention the change.
24393
24394 2009-04-26  Bruno Haible  <bruno@clisp.org>
24395
24396         Avoid test failures on AIX and OSF/1.
24397         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24398         malloc(0).
24399         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24400         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24401         Likewise.
24402         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24403         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24404         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24405         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24406         * doc/posix-functions/malloc.texi: Document the portability problem
24407         related to malloc(0).
24408
24409 2009-04-26  Bruno Haible  <bruno@clisp.org>
24410
24411         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24412         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24413         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24414
24415 2009-04-25  Bruno Haible  <bruno@clisp.org>
24416
24417         Avoid link error when creating a namespace clean library.
24418         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24419         as macro with arguments if already defined as an alias.
24420         * lib/signbitf.c (gl_signbitf): Don't undefine.
24421         * lib/signbitd.c (gl_signbitd): Don't undefine.
24422         * lib/signbitl.c (gl_signbitl): Don't undefine.
24423
24424 2009-04-25  Jim Meyering  <meyering@redhat.com>
24425
24426         vc-list-files: fix another quoting bug
24427         * build-aux/vc-list-files: Avoid sed backslash expansion
24428         of pathological directory names.
24429
24430 2009-04-25  Eric Blake  <ebb9@byu.net>
24431
24432         vc-list-files: fix shell quoting error
24433         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24434         timestamp.
24435
24436 2009-04-25  Jim Meyering  <meyering@redhat.com>
24437
24438         vc-list-files: restore lost functionality with subdir argument
24439         * build-aux/vc-list-files: When given a non-"." sub-directory
24440         argument, substitute the $dir/ prefix back onto each resulting name.
24441         Otherwise, coreutils' root_tests check would fail.
24442
24443 2009-04-24  Eric Blake  <ebb9@byu.net>
24444
24445         vc-list-files: ignore git symlinks
24446         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24447         than ls-files, to ignore git symlinks.
24448
24449         maint.mk: import improvements from m4
24450         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24451         (move_if_change): Delete unused macro.
24452         (news-date-check, vc-diff-check): Support VPATH builds.
24453         (announcement): Likewise.  Split --bootstrap-tools list...
24454         (boostrap-tools): ...into separate list, which can be overridden
24455         in cfg.mk.
24456         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24457         requiring dependency on useless-if-before-free module.
24458         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24459         Support VPATH builds.
24460
24461 2009-04-24  Jim Meyering  <meyering@redhat.com>
24462
24463         maint.mk: remove coreutils-specific rules and variables
24464         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24465         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24466         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24467
24468         maint.mk: remove obsolete rule
24469         * top/maint.mk (rel-check): Remove rule.
24470         (WGET, WGETFLAGS): Remove now-unused variables.
24471
24472 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24473
24474         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24475         consistency.
24476
24477         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24478         '$(PATH_SEPARATOR)' instead of ':'.
24479
24480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24481
24482         * lib/getopt1.c (main): Use 'const' for static array.
24483
24484 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24485
24486         * top/maint.mk: Sync with coreutils.
24487         * NEWS: Explain incompatibilities.
24488
24489 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24490             Bruno Haible  <bruno@clisp.org>
24491
24492         Fix cross-compilation results.
24493         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24494         statement, as third argument of AC_TRY_RUN.
24495         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24496         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24497         Likewise.
24498         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24499         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24500         Likewise.
24501         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24503         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24504
24505 2009-04-20  Bruno Haible  <bruno@clisp.org>
24506
24507         Avoid test failure on mingw.
24508         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24509
24510 2009-04-20  Bruno Haible  <bruno@clisp.org>
24511
24512         Avoid compilation error on mingw.
24513         * modules/localename-tests (Depends-on): Add locale.
24514
24515 2009-04-19  Bruno Haible  <bruno@clisp.org>
24516
24517         Support for building a shared library on Windows platforms.
24518         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24519         (main): Test the presence of UNINORM_NFC here.
24520         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24521         (main): Test the presence of UNINORM_NFD here.
24522         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24523         (main): Test the presence of UNINORM_NFKC here.
24524         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24525         (main): Test the presence of UNINORM_NFKD here.
24526
24527 2009-04-19  Bruno Haible  <bruno@clisp.org>
24528
24529         Avoid a compiler warning.
24530         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24531         Change type of variable 'sequence'.
24532
24533 2009-04-19  Bruno Haible  <bruno@clisp.org>
24534
24535         * modules/configmake (Makefile.am): When the contents of configmake.h
24536         does not change, arrange to preserve its modification time.
24537
24538 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24539
24540         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24541         gettext domain.
24542
24543 2009-04-16  Jim Meyering  <meyering@redhat.com>
24544
24545         useless-if-before-free: improve conversion code
24546         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24547         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24548
24549 2009-04-14  Bruno Haible  <bruno@clisp.org>
24550
24551         * modules/fcntl (Depends-on): Add extensions.
24552         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24553
24554 2009-04-12  Ben Pfaff  <blp@gnu.org>
24555
24556         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24557         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24558
24559 2009-03-20  Ben Pfaff  <blp@gnu.org>
24560
24561         Make rename replace existing destinations on Windows.
24562         * m4/rename.m4: Add test for Mingw.
24563         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24564         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24565         * doc/posix-functions/rename.texi: Document.
24566
24567 2009-04-10  Bruno Haible  <bruno@clisp.org>
24568
24569         New include file "iconveh.h".
24570         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24571         * lib/striconveh.h: Include it.
24572         (enum iconv_ilseq_handler): Remove definition.
24573         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24574         striconveh.h.
24575         * lib/striconveha.c: Include striconveh.h.
24576         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24577         * modules/striconveh (Files): Add lib/iconveh.h.
24578         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24579         lib/striconveh.h.
24580
24581 2009-04-10  Bruno Haible  <bruno@clisp.org>
24582
24583         * lib/uniconv.h: Update comment.
24584
24585 2009-04-10  Bruno Haible  <bruno@clisp.org>
24586
24587         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24588         always.
24589         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24590         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24591         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24592         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24593         "unistring-notinline.h", so that the function gets defined always.
24594         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24595         * lib/unistr/u8-uctomb.c: Likewise.
24596         * lib/unistr/u16-mbtouc.c: Likewise.
24597         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24598         * lib/unistr/u16-uctomb.c: Likewise.
24599         * lib/unistr/u32-mbtouc.c: Likewise.
24600         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24601         * lib/unistr/u32-uctomb.c: Likewise.
24602
24603 2009-04-10  Bruno Haible  <bruno@clisp.org>
24604
24605         Mark 'utime' obsolete.
24606         * modules/utime (Status, Notice): New sections.
24607         Suggested by Jim Meyering.
24608
24609         Fix cross-compile guess for utime test.
24610         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24611         autoconf.
24612         * doc/posix-functions/utime.texi: Give more precisions.
24613         Reported by Jan <ipif@ymail.com>.
24614
24615 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24616
24617         filevercmp: correct today's change
24618         * lib/filevercmp.c: Also handle coreutils' test inputs.
24619         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24620
24621         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24622         for reporting it.
24623         * lib/filevercmp.c: Special handle for "", "." and "..".
24624         * tests/test-filevercmp.c: Enlarge the set suite.
24625
24626 2009-04-07  Jim Meyering  <meyering@redhat.com>
24627
24628         useless-if-before-free: show how to remove braced useless free, too
24629         * build-aux/useless-if-before-free: still only in a comment, though.
24630
24631 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24632
24633         maint.mk: import changes to syntax-check macros from coreutils
24634         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24635         Use them in the relevant macros.
24636
24637 2009-04-06  Bruno Haible  <bruno@clisp.org>
24638
24639         Fix unportable use of bit-fields.
24640         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24641         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24642         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24643
24644 2009-04-06  Bruno Haible  <bruno@clisp.org>
24645
24646         Avoid test failures on AIX and OSF/1.
24647         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24648         that malloc(0) = NULL.
24649         * tests/unicase/test-u8-tolower.c (check): Likewise.
24650         * tests/unicase/test-u8-totitle.c (check): Likewise.
24651         * tests/unicase/test-u8-toupper.c (check): Likewise.
24652         * tests/unicase/test-u16-casefold.c (check): Likewise.
24653         * tests/unicase/test-u16-tolower.c (check): Likewise.
24654         * tests/unicase/test-u16-totitle.c (check): Likewise.
24655         * tests/unicase/test-u16-toupper.c (check): Likewise.
24656         * tests/unicase/test-u32-casefold.c (check): Likewise.
24657         * tests/unicase/test-u32-tolower.c (check): Likewise.
24658         * tests/unicase/test-u32-totitle.c (check): Likewise.
24659         * tests/unicase/test-u32-toupper.c (check): Likewise.
24660         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24661         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24662         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24663         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24664         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24665         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24666         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24667         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24668         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24669         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24670         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24671         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24672
24673 2009-04-05  Bruno Haible  <bruno@clisp.org>
24674
24675         Work around an autoconf limitation.
24676         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24677         comment line if it would be longer than 3 KB.
24678
24679 2009-04-05  Bruno Haible  <bruno@clisp.org>
24680
24681         Avoid test failure with libiconv-1.13.
24682         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24683         of the expected test results.
24684
24685 2009-04-05  Bruno Haible  <bruno@clisp.org>
24686
24687         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24688         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24689         that it should be installed.
24690
24691 2009-04-05  Bruno Haible  <bruno@clisp.org>
24692
24693         * gnulib-tool: New option --copy-file.
24694         (func_usage): Document it.
24695         (func_dest_tmpfilename): Moved out of func_import.
24696         (func_add_file, func_update_file): New functions, extracted from
24697         func_import.
24698         (func_import): Update.
24699
24700 2009-04-05  Karl Berry  <karl@gnu.org>
24701
24702         * README: prominently mention gnulib-tool.
24703         Rearrange sections so getting the code is near the top.
24704
24705 2009-04-05  Bruno Haible  <bruno@clisp.org>
24706
24707         * lib/unicase.h: Mention u*_cmp2.
24708         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24709         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24710         * lib/unicase/ulc-casecmp.c: Likewise.
24711         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24712         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24713         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24714         unistr/u8-cmp.
24715         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24716         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24717         unistr/u16-cmp.
24718         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24719         unistr/u32-cmp.
24720
24721         * lib/uninorm.h: Mention u*_cmp2.
24722         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24723         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24724         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24725         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24726         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24727         unistr/u8-cmp.
24728         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24729         unistr/u16-cmp.
24730         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24731         unistr/u32-cmp.
24732
24733         New module 'unistr/u32-cmp2'.
24734         * lib/unistr/u32-cmp2.c: New file.
24735         * modules/unistr/u32-cmp2: New file.
24736
24737         New module 'unistr/u16-cmp2'.
24738         * lib/unistr/u16-cmp2.c: New file.
24739         * modules/unistr/u16-cmp2: New file.
24740
24741         New module 'unistr/u8-cmp2'.
24742         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24743         * lib/unistr/u8-cmp2.c: New file.
24744         * lib/unistr/u-cmp2.h: New file.
24745         * modules/unistr/u8-cmp2: New file.
24746
24747 2009-04-05  Bruno Haible  <bruno@clisp.org>
24748
24749         * lib/unictype.h (uc_property_is_valid): New macro.
24750         * tests/unictype/test-pr_byname.c (main): Use it.
24751
24752         * lib/unistr.h: Doc fixes.
24753         * lib/uniconv.h: Doc fixes.
24754         * lib/unictype.h: Doc fixes.
24755
24756 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24757
24758         Port coreutils 7.2 to Solaris 8.
24759
24760         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24761         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24762         for Solaris 8.  This is a bit of a hack, as it means it's the
24763         caller's responsibility to add -lnsl if needed, but most likely it
24764         won't be needed since only getaddrinfo uses this and getaddrinfo
24765         isn't needed on Solaris 8.
24766
24767         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24768         problem to Solaris 8 encountered with coreutils 7.2, which
24769         resulted in a message "fnmatch.c:292: warning: passing argument 4
24770         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24771         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24772
24773 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24774
24775         * m4/ld-version-script.m4: Add FIXME comment.
24776
24777 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24778
24779         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24780         SOVERSION variable.
24781
24782 2009-04-02  Bruno Haible  <bruno@clisp.org>
24783
24784         * Makefile (info, html, dvi, pdf): Combine the rules.
24785         Suggested by Jim Meyering.
24786
24787 2009-04-01  Bruno Haible  <bruno@clisp.org>
24788
24789         * Makefile (info, html, dvi, pdf): New targets.
24790         Reported by Reuben Thomas <rrt@sc3d.org>.
24791
24792 2009-04-01  Bruno Haible  <bruno@clisp.org>
24793
24794         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24795         can be put into PATH.
24796         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24797
24798 2009-04-01  Bruno Haible  <bruno@clisp.org>
24799
24800         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24801
24802 2009-04-01  Bruno Haible  <bruno@clisp.org>
24803
24804         Rename module 'visibility'.
24805         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24806         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24807         * doc/gnulib.texi: Update.
24808         * MODULES.html.sh (Misc): Update.
24809         * NEWS: Mention the change.
24810
24811 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24812
24813         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24814         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24815         Eric Blake <ebb9@byu.net> for review.
24816         * MODULES.html.sh: Add lib-msvc-compat.
24817         * doc/gnulib.texi: Link to new section.
24818         * m4/ld-output-def.m4: New file.
24819         * doc/ld-output-def.texi: New file.
24820
24821 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24822
24823         Rename ld-version-script to lib-symbol-versions.  Suggested by
24824         Bruno Haible <bruno@clisp.org>.
24825         * modules/ld-version-script: Renamed to lib-symbol-versions.
24826         * doc/ld-version-script.texi: Fix module name.
24827         * MODULES.html.sh: Add lib-symbol-versions.
24828
24829 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24830
24831         * modules/u64-tests: New file.
24832         * tests/test-u64.c: New file.
24833
24834 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24835
24836         * MODULES.html.sh: Mention u64.
24837         * modules/u64: New module.
24838         * modules/crypto/sha512: Depend on u64 module instead of providing
24839         u64.h.
24840
24841 2009-03-27  Eric Blake  <ebb9@byu.net>
24842
24843         test-strerror: make debugging EAI_SYSTEM easier
24844         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24845         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24846         failure was EAI_SYSTEM.
24847
24848 2009-03-25  Bruno Haible  <bruno@clisp.org>
24849
24850         Fix a problem with --enable-relocatable on Solaris 7.
24851         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24852         since 2008-02-24.
24853
24854 2009-03-25  Eric Blake  <ebb9@byu.net>
24855
24856         test-sockets: avoid gcc warning
24857         * tests/test-sockets.c (main): Silence compiler warning.
24858
24859 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         New modules nproc, pthread, contributed by Glen Lenker.
24862
24863         * MODULES.html.sh: Add pthread, nproc.
24864         * lib/nproc.c: New file.
24865         * lib/nproc.h: New file.
24866         * lib/pthread.in.h: New file.
24867         * m4/pthread.m4: New file.
24868         * modules/nproc: New file.
24869         * modules/pthread: New file.
24870
24871 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24872
24873         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24874         New variable.
24875
24876 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24877
24878         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24879         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24880         * tests/test-filevercmp.c: Add tests for backup suffixes.
24881
24882 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24883
24884         * modules/stdlib (Depends-on): Add stdint, needed when defining
24885         struct random_data on, for example, HP-UX 10.20.  Reported by
24886         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24887
24888 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24889
24890         * lib/readline.c (readline): Call fflush on stdout after printing
24891         prompt.
24892
24893 2009-03-20  Bruno Haible  <bruno@clisp.org>
24894
24895         Remove dependency from 'close' module to -lws2_32 on native Windows.
24896         * lib/close-hook.h: New file.
24897         * lib/close-hook.c: New file.
24898         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24899         w32sock.h.
24900         (_gl_close_fd_maybe_socket): Remove function.
24901         (rpl_close): Invoke execute_all_close_hooks instead of
24902         _gl_close_fd_maybe_socket.
24903         * lib/sockets.c: Include close-hook.h, w32sock.h.
24904         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24905         (close_sockets_hook): New variable.
24906         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24907         (gl_sockets_cleanup): Unregister it.
24908         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24909         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24910         * modules/close-hook: New file.
24911         * modules/close (Files): Remove lib/w32sock.h.
24912         (Depends-on): Add close-hook.
24913         (Link): Remove section.
24914         * modules/sockets (Files): Add lib/w32sock.h.
24915         (Depends-on): Add close-hook.
24916         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24917         invocation.
24918         * NEWS: Mention that LIB_CLOSE is gone.
24919
24920 2009-03-23  Eric Blake  <ebb9@byu.net>
24921
24922         signal-tests: test previous patch
24923         * tests/test-signal.c: New file.
24924         * modules/signal-tests: Likewise.
24925
24926         signal.h: always support 'volatile sig_atomic_t'
24927         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24928         (gl_SIGNAL_H_DEFAULTS): Add a default.
24929         * modules/signal (Makefile.am): Substitute if needed.
24930         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24931         users can blindly add volatile.
24932         * doc/posix-headers/signal.texi (signal.h): Document it.
24933         Reported by Matthew Woehlke.
24934
24935 2009-03-23  Jim Meyering  <meyering@redhat.com>
24936
24937         pathmax: PATH_MAX: use pathconf only when available
24938         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24939         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24940         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24941         This avoids a link failure in a PSP cross-compilation environment
24942         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24943
24944         * lib/vasnprintf.c (divide): Fix typo in comment.
24945
24946 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24947
24948         * gnulib-tool (func_filter_filelist): Fix comment.
24949
24950 2009-03-20  Bruno Haible  <bruno@clisp.org>
24951
24952         Make sockets.h self-contained.
24953         * lib/sockets.c: Include sockets.h first.
24954         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24955
24956 2009-03-19  Eric Blake  <ebb9@byu.net>
24957
24958         doc: mention more functions added in cygwin 1.7.0
24959         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24960         addition.
24961         * doc/posix-functions/log2f.texi: Likewise.
24962
24963 2009-03-19  Jim Meyering  <meyering@redhat.com>
24964
24965         fsusage: avoid syntax error due to statement-before-declaration
24966         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24967         after all declarations.  Reported by Matthew Woehlke in
24968         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24969
24970 2009-03-18  Eric Blake  <ebb9@byu.net>
24971
24972         build-aux/compile: sync from automake
24973         * build-aux/compile: New file, from automake.
24974         * config/srclist.txt: Mention build-aux/compile.
24975
24976 2009-03-17  Bruno Haible  <bruno@clisp.org>
24977
24978         * lib/git-merge-changelog.c: Fix typo in comment.
24979         Reported by Reuben Thomas <rrt@sc3d.org>.
24980
24981 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24982
24983         * m4/regex.m4: update and improve help for
24984         --without-included-regex.
24985
24986 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24987
24988         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24989         failure on missing include files.
24990
24991 2009-03-17  Eric Blake  <ebb9@byu.net>
24992
24993         doc: mention more functions added in cygwin 1.7.0
24994         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24995         addition.
24996         * doc/posix-functions/fwscanf.texi: Likewise.
24997         * doc/posix-functions/swprintf.texi: Likewise.
24998         * doc/posix-functions/swscanf.texi: Likewise.
24999         * doc/posix-functions/vfwprintf.texi: Likewise.
25000         * doc/posix-functions/vfwscanf.texi: Likewise.
25001         * doc/posix-functions/vswprintf.texi: Likewise.
25002         * doc/posix-functions/vswscanf.texi: Likewise.
25003         * doc/posix-functions/vwprintf.texi: Likewise.
25004         * doc/posix-functions/vwscanf.texi: Likewise.
25005         * doc/posix-functions/wcscasecmp.texi: Likewise.
25006         * doc/posix-functions/wcsdup.texi: Likewise.
25007         * doc/posix-functions/wcsftime.texi: Likewise.
25008         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25009         * doc/posix-functions/wprintf.texi: Likewise.
25010         * doc/posix-functions/wscanf.texi: Likewise.
25011         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25012
25013 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25014
25015         maint.mk: really add $(AM_MAKEFLAGS)
25016         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25017         was inadvertently omitted in the last commit.
25018         Spotted by Bruno Haible.
25019
25020         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25021         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25022         $(AM_MAKEFLAGS)' rather than plain `make'.
25023
25024         gnulib-tool: execute $MAKE not make
25025         * gnulib-tool: Default $MAKE to 'make'.
25026         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25027         than make.  Initialize $MAKE in the do-autobuild script.
25028
25029         gnulib-tool: use $MAKE not make in generated files
25030         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25031         make, in generated files.  Initialize $MAKE in the do-autobuild
25032         script.
25033
25034         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25035
25036         GNUmakefile: disable parallelism only for multiple, recursive targets
25037         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25038         additions in the Makefile.
25039         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25040         by Automake.
25041         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25042         are listed on the command line and at least one of them is
25043         listed in $(ALL_RECURSIVE_TARGETS).
25044
25045 2009-03-14  Bruno Haible  <bruno@clisp.org>
25046
25047         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25048         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25049         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25050         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25051         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25052         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25053         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25054         unistr/u8-uctomb.
25055         * modules/unistr/u8-strchr (Depends-on): Likewise.
25056         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25057         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25058         unistr/u16-uctomb.
25059         * modules/unistr/u16-strchr (Depends-on): Likewise.
25060         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25061
25062 2009-03-12  Bruno Haible  <bruno@clisp.org>
25063
25064         Work around select() bug on Interix 3.5.
25065         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25066         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25067         * m4/select.m4: New file.
25068         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25069         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25070         * modules/select (Files): Add m4/select.m4.
25071         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25072         * modules/nanosleep (Depends-on): Add select.
25073         * modules/poll (Depends-on): Likewise.
25074         * doc/posix-functions/select.texi: Mention the Interix bug.
25075         Reported by Markus Duft <mduft@gentoo.org>.
25076
25077         * lib/select.c: Renamed from lib/winsock-select.c.
25078         * modules/select (Files): Add lib/select.c, remove
25079         lib/winsock-select.c.
25080         (configure.ac): Update.
25081
25082 2009-03-12  Jim Meyering  <meyering@redhat.com>
25083
25084         avoid gcc warnings about unused macro definitions
25085         * lib/readtokens.c (STREQ): Remove unused definition.
25086         * lib/xmalloc.c (SIZE_MAX): Likewise.
25087         * lib/openat-die.c (N_): Likewise.
25088         * lib/mountlist.c (SIZE_MAX): Remove definition.
25089         Instead, include <stdint.h>.
25090         * lib/readutmp.c: Likewise.
25091         * modules/readutmp (Depends-on): Add stdint.
25092         * modules/mountlist (Depends-on): Add stdint.
25093         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25094
25095 2009-03-10  Bruno Haible  <bruno@clisp.org>
25096
25097         Tests for module 'mbmemcasecoll'.
25098         * modules/mbmemcasecoll-tests: New file.
25099         * tests/test-mbmemcasecoll1.sh: New file.
25100         * tests/test-mbmemcasecoll2.sh: New file.
25101         * tests/test-mbmemcasecoll3.sh: New file.
25102         * tests/test-mbmemcasecoll.c: New file.
25103
25104         New module 'mbmemcasecoll'.
25105         * lib/mbmemcasecoll.h: New file.
25106         * lib/mbmemcasecoll.c: New file.
25107         * modules/mbmemcasecoll: New file.
25108
25109         * tests/test-mbmemcasecmp.h: New file, extracted from
25110         tests/test-mbmemcasecmp.c.
25111         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25112         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25113         (main): Update.
25114         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25115
25116 2009-03-09  Bruno Haible  <bruno@clisp.org>
25117
25118         Tests for module 'mbmemcasecmp'.
25119         * modules/mbmemcasecmp-tests: New file.
25120         * tests/test-mbmemcasecmp1.sh: New file.
25121         * tests/test-mbmemcasecmp2.sh: New file.
25122         * tests/test-mbmemcasecmp3.sh: New file.
25123         * tests/test-mbmemcasecmp.c: New file.
25124
25125         New module 'mbmemcasecmp'.
25126         * lib/mbmemcasecmp.h: New file.
25127         * lib/mbmemcasecmp.c: New file.
25128         * modules/mbmemcasecmp: New file.
25129
25130 2009-03-09  Bruno Haible  <bruno@clisp.org>
25131
25132         Tests for module 'unicase/ulc-casecoll'.
25133         * modules/unicase/ulc-casecoll-tests: New file.
25134         * tests/unicase/test-ulc-casecoll1.sh: New file.
25135         * tests/unicase/test-ulc-casecoll2.sh: New file.
25136         * tests/unicase/test-ulc-casecoll.c: New file.
25137
25138         New module 'unicase/ulc-casecoll'.
25139         * lib/unicase.h (ulc_casecoll): New declaration.
25140         * lib/unicase/ulc-casecoll.c: New file.
25141         * modules/unicase/ulc-casecoll: New file.
25142
25143         New module 'unicase/ulc-casexfrm'.
25144         * lib/unicase.h (ulc_casexfrm): New declaration.
25145         * lib/unicase/ulc-casexfrm.c: New file.
25146         * modules/unicase/ulc-casexfrm: New file.
25147
25148 2009-03-09  Bruno Haible  <bruno@clisp.org>
25149
25150         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25151         invocations.
25152
25153         * m4/mbscasecmp.m4: Remove file.
25154         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25155         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25156
25157         * m4/mbscasestr.m4: Remove file.
25158         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25159         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25160
25161         * m4/mbschr.m4: Remove file.
25162         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25163         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25164
25165         * m4/mbscspn.m4: Remove file.
25166         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25167         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25168
25169         * m4/mbslen.m4: Remove file.
25170         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25171         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25172
25173         * m4/mbsncasecmp.m4: Remove file.
25174         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25175         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25176
25177         * m4/mbsnlen.m4: Remove file.
25178         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25179         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25180
25181         * m4/mbspbrk.m4: Remove file.
25182         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25183         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25184
25185         * m4/mbspcasecmp.m4: Remove file.
25186         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25187         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25188
25189         * m4/mbsrchr.m4: Remove file.
25190         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25191         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25192
25193         * m4/mbssep.m4: Remove file.
25194         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25195         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25196
25197         * m4/mbsspn.m4: Remove file.
25198         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25199         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25200
25201         * m4/mbsstr.m4: Remove file.
25202         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25203         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25204
25205         * m4/mbstok_r.m4: Remove file.
25206         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25207         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25208
25209         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25210
25211         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25212         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25213
25214         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25215
25216 2009-03-08  Bruno Haible  <bruno@clisp.org>
25217
25218         Tests for module 'unicase/ulc-casecmp'.
25219         * modules/unicase/ulc-casecmp-tests: New file.
25220         * tests/unicase/test-ulc-casecmp1.sh: New file.
25221         * tests/unicase/test-ulc-casecmp2.sh: New file.
25222         * tests/unicase/test-ulc-casecmp.c: New file.
25223
25224         New module 'unicase/ulc-casecmp'.
25225         * lib/unicase.h (ulc_casecmp): New declaration.
25226         * lib/unicase/ulc-casecmp.c: New file.
25227         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25228         'const SRC_UNIT *'.
25229         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25230         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25231         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25232         * modules/unicase/ulc-casecmp: New file.
25233
25234         Tests for module 'unicase/u32-is-cased'.
25235         * modules/unicase/u32-is-cased-tests: New file.
25236         * tests/unicase/test-u32-is-cased.c: New file.
25237
25238         Tests for module 'unicase/u16-is-cased'.
25239         * modules/unicase/u16-is-cased-tests: New file.
25240         * tests/unicase/test-u16-is-cased.c: New file.
25241
25242         Tests for module 'unicase/u8-is-cased'.
25243         * modules/unicase/u8-is-cased-tests: New file.
25244         * tests/unicase/test-u8-is-cased.c: New file.
25245         * tests/unicase/test-is-cased.h: New file.
25246
25247         New module 'unicase/u32-is-cased'.
25248         * lib/unicase/u32-is-cased.c: New file.
25249         * modules/unicase/u32-is-cased: New file.
25250
25251         New module 'unicase/u16-is-cased'.
25252         * lib/unicase/u16-is-cased.c: New file.
25253         * modules/unicase/u16-is-cased: New file.
25254
25255         New module 'unicase/u8-is-cased'.
25256         * lib/unicase/u8-is-cased.c: New file.
25257         * lib/unicase/u-is-cased.h: New file.
25258         * modules/unicase/u8-is-cased: New file.
25259
25260         Tests for module 'unicase/u32-is-casefolded'.
25261         * modules/unicase/u32-is-casefolded-tests: New file.
25262         * tests/unicase/test-u32-is-casefolded.c: New file.
25263
25264         Tests for module 'unicase/u16-is-casefolded'.
25265         * modules/unicase/u16-is-casefolded-tests: New file.
25266         * tests/unicase/test-u16-is-casefolded.c: New file.
25267
25268         Tests for module 'unicase/u8-is-casefolded'.
25269         * modules/unicase/u8-is-casefolded-tests: New file.
25270         * tests/unicase/test-u8-is-casefolded.c: New file.
25271         * tests/unicase/test-is-casefolded.h: New file.
25272
25273         New module 'unicase/u32-is-casefolded'.
25274         * lib/unicase/u32-is-casefolded.c: New file.
25275         * modules/unicase/u32-is-casefolded: New file.
25276
25277         New module 'unicase/u16-is-casefolded'.
25278         * lib/unicase/u16-is-casefolded.c: New file.
25279         * modules/unicase/u16-is-casefolded: New file.
25280
25281         New module 'unicase/u8-is-casefolded'.
25282         * lib/unicase/u8-is-casefolded.c: New file.
25283         * modules/unicase/u8-is-casefolded: New file.
25284
25285         Tests for module 'unicase/u32-is-titlecase'.
25286         * modules/unicase/u32-is-titlecase-tests: New file.
25287         * tests/unicase/test-u32-is-titlecase.c: New file.
25288
25289         Tests for module 'unicase/u16-is-titlecase'.
25290         * modules/unicase/u16-is-titlecase-tests: New file.
25291         * tests/unicase/test-u16-is-titlecase.c: New file.
25292
25293         Tests for module 'unicase/u8-is-titlecase'.
25294         * modules/unicase/u8-is-titlecase-tests: New file.
25295         * tests/unicase/test-u8-is-titlecase.c: New file.
25296         * tests/unicase/test-is-titlecase.h: New file.
25297
25298         New module 'unicase/u32-is-titlecase'.
25299         * lib/unicase/u32-is-titlecase.c: New file.
25300         * modules/unicase/u32-is-titlecase: New file.
25301
25302         New module 'unicase/u16-is-titlecase'.
25303         * lib/unicase/u16-is-titlecase.c: New file.
25304         * modules/unicase/u16-is-titlecase: New file.
25305
25306         New module 'unicase/u8-is-titlecase'.
25307         * lib/unicase/u8-is-titlecase.c: New file.
25308         * modules/unicase/u8-is-titlecase: New file.
25309
25310         Tests for module 'unicase/u32-is-lowercase'.
25311         * modules/unicase/u32-is-lowercase-tests: New file.
25312         * tests/unicase/test-u32-is-lowercase.c: New file.
25313
25314         Tests for module 'unicase/u16-is-lowercase'.
25315         * modules/unicase/u16-is-lowercase-tests: New file.
25316         * tests/unicase/test-u16-is-lowercase.c: New file.
25317
25318         Tests for module 'unicase/u8-is-lowercase'.
25319         * modules/unicase/u8-is-lowercase-tests: New file.
25320         * tests/unicase/test-u8-is-lowercase.c: New file.
25321         * tests/unicase/test-is-lowercase.h: New file.
25322
25323         New module 'unicase/u32-is-lowercase'.
25324         * lib/unicase/u32-is-lowercase.c: New file.
25325         * modules/unicase/u32-is-lowercase: New file.
25326
25327         New module 'unicase/u16-is-lowercase'.
25328         * lib/unicase/u16-is-lowercase.c: New file.
25329         * modules/unicase/u16-is-lowercase: New file.
25330
25331         New module 'unicase/u8-is-lowercase'.
25332         * lib/unicase/u8-is-lowercase.c: New file.
25333         * modules/unicase/u8-is-lowercase: New file.
25334
25335         Tests for module 'unicase/u32-is-uppercase'.
25336         * modules/unicase/u32-is-uppercase-tests: New file.
25337         * tests/unicase/test-u32-is-uppercase.c: New file.
25338
25339         Tests for module 'unicase/u16-is-uppercase'.
25340         * modules/unicase/u16-is-uppercase-tests: New file.
25341         * tests/unicase/test-u16-is-uppercase.c: New file.
25342
25343         Tests for module 'unicase/u8-is-uppercase'.
25344         * modules/unicase/u8-is-uppercase-tests: New file.
25345         * tests/unicase/test-u8-is-uppercase.c: New file.
25346         * tests/unicase/test-is-uppercase.h: New file.
25347
25348         New module 'unicase/u32-is-uppercase'.
25349         * lib/unicase/u32-is-uppercase.c: New file.
25350         * modules/unicase/u32-is-uppercase: New file.
25351
25352         New module 'unicase/u16-is-uppercase'.
25353         * lib/unicase/u16-is-uppercase.c: New file.
25354         * modules/unicase/u16-is-uppercase: New file.
25355
25356         New module 'unicase/u8-is-uppercase'.
25357         * lib/unicase/u8-is-uppercase.c: New file.
25358         * modules/unicase/u8-is-uppercase: New file.
25359
25360         New module 'unicase/u32-is-invariant'.
25361         * lib/unicase/u32-is-invariant.c: New file.
25362         * modules/unicase/u32-is-invariant: New file.
25363
25364         New module 'unicase/u16-is-invariant'.
25365         * lib/unicase/u16-is-invariant.c: New file.
25366         * modules/unicase/u16-is-invariant: New file.
25367
25368         New module 'unicase/u8-is-invariant'.
25369         * lib/unicase/u8-is-invariant.c: New file.
25370         * lib/unicase/invariant.h: New file.
25371         * lib/unicase/u-is-invariant.h: New file.
25372         * modules/unicase/u8-is-invariant: New file.
25373
25374         Tests for module 'unicase/u32-casecoll'.
25375         * modules/unicase/u32-casecoll-tests: New file.
25376         * tests/unicase/test-u32-casecoll.c: New file.
25377
25378         Tests for module 'unicase/u16-casecoll'.
25379         * modules/unicase/u16-casecoll-tests: New file.
25380         * tests/unicase/test-u16-casecoll.c: New file.
25381
25382         Tests for module 'unicase/u8-casecoll'.
25383         * modules/unicase/u8-casecoll-tests: New file.
25384         * tests/unicase/test-u8-casecoll.c: New file.
25385
25386         New module 'unicase/u32-casecoll'.
25387         * lib/unicase/u32-casecoll.c: New file.
25388         * modules/unicase/u32-casecoll: New file.
25389
25390         New module 'unicase/u16-casecoll'.
25391         * lib/unicase/u16-casecoll.c: New file.
25392         * modules/unicase/u16-casecoll: New file.
25393
25394         New module 'unicase/u8-casecoll'.
25395         * lib/unicase/u8-casecoll.c: New file.
25396         * lib/unicase/u-casecoll.h: New file.
25397         * modules/unicase/u8-casecoll: New file.
25398
25399         New module 'unicase/u32-casexfrm'.
25400         * lib/unicase/u32-casexfrm.c: New file.
25401         * modules/unicase/u32-casexfrm: New file.
25402
25403         New module 'unicase/u16-casexfrm'.
25404         * lib/unicase/u16-casexfrm.c: New file.
25405         * modules/unicase/u16-casexfrm: New file.
25406
25407         New module 'unicase/u8-casexfrm'.
25408         * lib/unicase/u8-casexfrm.c: New file.
25409         * lib/unicase/u-casexfrm.h: New file.
25410         * modules/unicase/u8-casexfrm: New file.
25411
25412         Tests for module 'unicase/u32-casecmp'.
25413         * modules/unicase/u32-casecmp-tests: New file.
25414         * tests/unicase/test-u32-casecmp.c: New file.
25415
25416         Tests for module 'unicase/u16-casecmp'.
25417         * modules/unicase/u16-casecmp-tests: New file.
25418         * tests/unicase/test-u16-casecmp.c: New file.
25419
25420         Tests for module 'unicase/u8-casecmp'.
25421         * modules/unicase/u8-casecmp-tests: New file.
25422         * tests/unicase/test-u8-casecmp.c: New file.
25423         * tests/unicase/test-casecmp.h: New file.
25424
25425         New module 'unicase/u32-casecmp'.
25426         * lib/unicase/u32-casecmp.c: New file.
25427         * modules/unicase/u32-casecmp: New file.
25428
25429         New module 'unicase/u16-casecmp'.
25430         * lib/unicase/u16-casecmp.c: New file.
25431         * modules/unicase/u16-casecmp: New file.
25432
25433         New module 'unicase/u8-casecmp'.
25434         * lib/unicase/u8-casecmp.c: New file.
25435         * lib/unicase/u-casecmp.h: New file.
25436         * modules/unicase/u8-casecmp: New file.
25437
25438         Tests for module 'unicase/u32-casefold'.
25439         * modules/unicase/u32-casefold-tests: New file.
25440         * tests/unicase/test-u32-casefold.c: New file.
25441
25442         Tests for module 'unicase/u16-casefold'.
25443         * modules/unicase/u16-casefold-tests: New file.
25444         * tests/unicase/test-u16-casefold.c: New file.
25445
25446         Tests for module 'unicase/u8-casefold'.
25447         * modules/unicase/u8-casefold-tests: New file.
25448         * tests/unicase/test-u8-casefold.c: New file.
25449
25450         New module 'unicase/u32-casefold'.
25451         * lib/unicase/u32-casefold.c: New file.
25452         * modules/unicase/u32-casefold: New file.
25453
25454         New module 'unicase/u16-casefold'.
25455         * lib/unicase/u16-casefold.c: New file.
25456         * modules/unicase/u16-casefold: New file.
25457
25458         New module 'unicase/u8-casefold'.
25459         * lib/unicase/u8-casefold.c: New file.
25460         * lib/unicase/u-casefold.h: New file.
25461         * modules/unicase/u8-casefold: New file.
25462
25463         New module 'unicase/tocasefold'.
25464         * lib/unicase/casefold.h: New file.
25465         * lib/unicase/tocasefold.c: New file.
25466         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25467         * modules/unicase/tocasefold: New file.
25468
25469         Tests for module 'unicase/u32-totitle'.
25470         * modules/unicase/u32-totitle-tests: New file.
25471         * tests/unicase/test-u32-totitle.c: New file.
25472
25473         Tests for module 'unicase/u16-totitle'.
25474         * modules/unicase/u16-totitle-tests: New file.
25475         * tests/unicase/test-u16-totitle.c: New file.
25476
25477         Tests for module 'unicase/u8-totitle'.
25478         * modules/unicase/u8-totitle-tests: New file.
25479         * tests/unicase/test-u8-totitle.c: New file.
25480
25481         New module 'unicase/u32-totitle'.
25482         * lib/unicase/u32-totitle.c: New file.
25483         * modules/unicase/u32-totitle: New file.
25484
25485         New module 'unicase/u16-totitle'.
25486         * lib/unicase/u16-totitle.c: New file.
25487         * modules/unicase/u16-totitle: New file.
25488
25489         New module 'unicase/u8-totitle'.
25490         * lib/unicase/u8-totitle.c: New file.
25491         * lib/unicase/u-totitle.h: New file.
25492         * modules/unicase/u8-totitle: New file.
25493
25494         Tests for module 'unicase/u32-tolower'.
25495         * modules/unicase/u32-tolower-tests: New file.
25496         * tests/unicase/test-u32-tolower.c: New file.
25497
25498         Tests for module 'unicase/u16-tolower'.
25499         * modules/unicase/u16-tolower-tests: New file.
25500         * tests/unicase/test-u16-tolower.c: New file.
25501
25502         Tests for module 'unicase/u8-tolower'.
25503         * modules/unicase/u8-tolower-tests: New file.
25504         * tests/unicase/test-u8-tolower.c: New file.
25505
25506         New module 'unicase/u32-tolower'.
25507         * lib/unicase/u32-tolower.c: New file.
25508         * modules/unicase/u32-tolower: New file.
25509
25510         New module 'unicase/u16-tolower'.
25511         * lib/unicase/u16-tolower.c: New file.
25512         * modules/unicase/u16-tolower: New file.
25513
25514         New module 'unicase/u8-tolower'.
25515         * lib/unicase/u8-tolower.c: New file.
25516         * modules/unicase/u8-tolower: New file.
25517
25518         Tests for module 'unicase/u32-toupper'.
25519         * modules/unicase/u32-toupper-tests: New file.
25520         * tests/unicase/test-u32-toupper.c: New file.
25521
25522         Tests for module 'unicase/u16-toupper'.
25523         * modules/unicase/u16-toupper-tests: New file.
25524         * tests/unicase/test-u16-toupper.c: New file.
25525
25526         Tests for module 'unicase/u8-toupper'.
25527         * modules/unicase/u8-toupper-tests: New file.
25528         * tests/unicase/test-u8-toupper.c: New file.
25529
25530         New module 'unicase/u32-toupper'.
25531         * lib/unicase/u32-toupper.c: New file.
25532         * modules/unicase/u32-toupper: New file.
25533
25534         New module 'unicase/u16-toupper'.
25535         * lib/unicase/u16-toupper.c: New file.
25536         * modules/unicase/u16-toupper: New file.
25537
25538         New module 'unicase/u8-toupper'.
25539         * lib/unicase/u8-toupper.c: New file.
25540         * modules/unicase/u8-toupper: New file.
25541
25542         New module 'unicase/u32-casemap'.
25543         * lib/unicase/u32-casemap.c: New file.
25544         * modules/unicase/u32-casemap: New file.
25545
25546         New module 'unicase/u16-casemap'.
25547         * lib/unicase/u16-casemap.c: New file.
25548         * modules/unicase/u16-casemap: New file.
25549
25550         New module 'unicase/u8-casemap'.
25551         * lib/unicase/unicasemap.h: New file.
25552         * lib/unicase/u8-casemap.c: New file.
25553         * lib/unicase/u-casemap.h: New file.
25554         * modules/unicase/u8-casemap: New file.
25555
25556         New module 'unicase/special-casing'.
25557         * lib/unicase/special-casing.h: New file.
25558         * lib/unicase/special-casing.c: New file.
25559         * lib/unicase/special-casing-table.gperf: New file, generated by
25560         gen-uni-tables.c.
25561         * modules/unicase/special-casing: New file.
25562
25563         Tests for module 'unicase/locale-language'.
25564         * modules/unicase/locale-language-tests: New file.
25565         * tests/unicase/test-locale-language.sh: New file.
25566         * tests/unicase/test-locale-language.c: New file.
25567
25568         New module 'unicase/locale-language'.
25569         * lib/unicase/locale-language.c: New file.
25570         * lib/unicase/locale-languages.gperf: New file.
25571         * modules/unicase/locale-language: New file.
25572
25573         Generate more tables for case conversion and case folding.
25574         * lib/gen-uni-tables.c (SCC_*): New enum items.
25575         (struct special_casing_rule): New type.
25576         (casing_rules, num_casing_rules, allocated_casing_rules): New
25577         variables.
25578         (add_casing_rule, fill_casing_rules): New functions.
25579         (struct casefold_rule): New type.
25580         (casefolding_rules, num_casefolding_rules,
25581         allocated_casefolding_rules): New variables.
25582         (fill_casefolding_rules): New function.
25583         (unicode_casefold): New variable.
25584         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25585         sort_casing_rules, output_casing_rules): New functions.
25586         (main): Accept to more arguments: SpecialCasing.txt and
25587         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25588         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25589         Output mapping for casefolding.
25590
25591         * lib/unicase.h: Include stdbool.h, uninorm.h.
25592         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25593         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25594         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25595         arguments.
25596         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25597         resultp arguments.
25598         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25599         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25600         resultp arguments.
25601         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25602         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25603         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25604         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25605         declarations.
25606         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25607
25608 2009-03-08  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25611         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25612         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25613         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25614
25615 2009-03-07  Bruno Haible  <bruno@clisp.org>
25616
25617         Adjust u*_normcmp, u*_normcoll API.
25618         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25619         u16_normcoll, u32_normcoll): Change failure conventions.
25620         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25621         errno and return -1.
25622         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25623
25624 2009-03-07  Bruno Haible  <bruno@clisp.org>
25625
25626         Tests for module 'uninorm/u32-normcoll'.
25627         * modules/uninorm/u32-normcoll-tests: New file.
25628         * tests/uninorm/test-u32-normcoll.c: New file.
25629
25630         Tests for module 'uninorm/u16-normcoll'.
25631         * modules/uninorm/u16-normcoll-tests: New file.
25632         * tests/uninorm/test-u16-normcoll.c: New file.
25633
25634         Tests for module 'uninorm/u8-normcoll'.
25635         * modules/uninorm/u8-normcoll-tests: New file.
25636         * tests/uninorm/test-u8-normcoll.c: New file.
25637
25638 2009-03-07  Bruno Haible  <bruno@clisp.org>
25639
25640         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25641         tests/uninorm/test-u32-normcmp.c.
25642         * tests/uninorm/test-u32-normcmp.c: Include it.
25643         (test_nonascii): New function, extracted from main. Add some more
25644         tests.
25645         (main): Invoke test_ascii and test_nonascii.
25646         * modules/uninorm/u32-normcmp-tests (Files): Add
25647         tests/uninorm/test-u32-normcmp.h.
25648         (Depends-on): Remove uninorm/u32-normcmp.
25649
25650         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25651         tests/uninorm/test-u16-normcmp.c.
25652         * tests/uninorm/test-u16-normcmp.c: Include it.
25653         (test_nonascii): New function, extracted from main. Add some more
25654         tests.
25655         (main): Invoke test_ascii and test_nonascii.
25656         * modules/uninorm/u16-normcmp-tests (Files): Add
25657         tests/uninorm/test-u16-normcmp.h.
25658         (Depends-on): Remove uninorm/u16-normcmp.
25659
25660         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25661         tests/uninorm/test-u8-normcmp.c.
25662         * tests/uninorm/test-u8-normcmp.c: Include it.
25663         (test_nonascii): New function, extracted from main. Add some more
25664         tests.
25665         (main): Invoke test_ascii and test_nonascii.
25666         * modules/uninorm/u8-normcmp-tests (Files): Add
25667         tests/uninorm/test-u8-normcmp.h.
25668         (Depends-on): Remove uninorm/u8-normcmp.
25669
25670 2009-03-07  Bruno Haible  <bruno@clisp.org>
25671
25672         New module 'uninorm/u32-normcoll'.
25673         * lib/uninorm/u32-normcoll.c: New file.
25674         * modules/uninorm/u32-normcoll: New file.
25675
25676         New module 'uninorm/u16-normcoll'.
25677         * lib/uninorm/u16-normcoll.c: New file.
25678         * modules/uninorm/u16-normcoll: New file.
25679
25680         New module 'uninorm/u8-normcoll'.
25681         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25682         declarations.
25683         * lib/uninorm/u8-normcoll.c: New file.
25684         * lib/uninorm/u-normcoll.h: New file.
25685         * modules/uninorm/u8-normcoll: New file.
25686
25687         New module 'uninorm/u32-normxfrm'.
25688         * lib/uninorm/u32-normxfrm.c: New file.
25689         * modules/uninorm/u32-normxfrm: New file.
25690
25691         New module 'uninorm/u16-normxfrm'.
25692         * lib/uninorm/u16-normxfrm.c: New file.
25693         * modules/uninorm/u16-normxfrm: New file.
25694
25695         New module 'uninorm/u8-normxfrm'.
25696         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25697         declarations.
25698         * lib/uninorm/u8-normxfrm.c: New file.
25699         * lib/uninorm/u-normxfrm.h: New file.
25700         * modules/uninorm/u8-normxfrm: New file.
25701
25702 2009-03-07  Bruno Haible  <bruno@clisp.org>
25703
25704         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25705         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25706         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25707
25708 2009-03-07  Bruno Haible  <bruno@clisp.org>
25709
25710         New module 'memxfrm'.
25711         * lib/memxfrm.h: New file.
25712         * lib/memxfrm.c: New file.
25713         * modules/memxfrm: New file.
25714
25715 2009-03-07  Bruno Haible  <bruno@clisp.org>
25716
25717         New module 'memcmp2'.
25718         * lib/memcmp2.h: New file.
25719         * lib/memcmp2.c: New file.
25720         * modules/memcmp2: New file.
25721
25722 2009-03-07  Bruno Haible  <bruno@clisp.org>
25723
25724         Tests for module 'uninorm/decomposing-form'.
25725         * modules/uninorm/decomposing-form-tests: New file.
25726         * tests/uninorm/test-decomposing-form.c: New file.
25727
25728         New module 'uninorm/decomposing-form'.
25729         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25730         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25731         Add 'decomposing_variant' field.
25732         * lib/uninorm/decomposing-form.c: New file.
25733         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25734         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25735         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25736         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25737         * modules/uninorm/decomposing-form: New file.
25738         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25739         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25740
25741 2009-03-07  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25744         strings.
25745
25746 2009-03-06  Bruno Haible  <bruno@clisp.org>
25747
25748         Tests for module 'uninorm/u32-normcmp'.
25749         * tests/uninorm/test-u32-normcmp.c: New file.
25750         * modules/uninorm/u32-normcmp-tests: New file.
25751
25752         Tests for module 'uninorm/u16-normcmp'.
25753         * tests/uninorm/test-u16-normcmp.c: New file.
25754         * modules/uninorm/u16-normcmp-tests: New file.
25755
25756         Tests for module 'uninorm/u8-normcmp'.
25757         * tests/uninorm/test-u8-normcmp.c: New file.
25758         * modules/uninorm/u8-normcmp-tests: New file.
25759
25760         New module 'uninorm/u32-normcmp'.
25761         * lib/uninorm/u32-normcmp.c: New file.
25762         * modules/uninorm/u32-normcmp: New file.
25763
25764         New module 'uninorm/u16-normcmp'.
25765         * lib/uninorm/u16-normcmp.c: New file.
25766         * modules/uninorm/u16-normcmp: New file.
25767
25768         New module 'uninorm/u8-normcmp'.
25769         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25770         declarations.
25771         * lib/uninorm/u8-normcmp.c: New file.
25772         * lib/uninorm/u-normcmp.h: New file.
25773         * modules/uninorm/u8-normcmp: New file.
25774
25775 2009-03-06  Bruno Haible  <bruno@clisp.org>
25776
25777         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25778         Reported by Eric Blake.
25779
25780 2009-03-06  Eric Blake  <ebb9@byu.net>
25781             Bruno Haible  <bruno@clisp.org>
25782
25783         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25784         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25785         condition.
25786         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25787         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25788         condition.
25789         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25790
25791 2009-03-06  Eric Blake  <ebb9@byu.net>
25792
25793         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25794         to avoid compiler warnings.
25795         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25796
25797 2009-03-05  Bruno Haible  <bruno@clisp.org>
25798
25799         * tests/test-ftell.c (main): Disable test beyond end of file on
25800         FreeMiNT.
25801         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25802
25803 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25804
25805         * lib/filevercmp.c: Move hidden files up in ordering.
25806         * tests/test-filevercmp.c: Add tests for hidden files.
25807
25808 2009-03-04  Bruno Haible  <bruno@clisp.org>
25809
25810         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25811         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25812         AM_CFLAGS.
25813         Reported by Simon Josefsson.
25814
25815 2009-03-03  Bruno Haible  <bruno@clisp.org>
25816
25817         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25818         Reported by Simon Josefsson.
25819
25820         * doc/ld-version-script.texi: Update node reference.
25821
25822 2009-03-03  Bruno Haible  <bruno@clisp.org>
25823
25824         * modules/visibility (License): Change to 'unlimited'.
25825         Suggested by Simon Josefsson.
25826
25827 2009-03-03  Jim Meyering  <meyering@redhat.com>
25828
25829         unlinkdir: cannot_unlink_dir may modify process state
25830         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25831         it's neither thread-safe nor appropriate for use in a library.
25832
25833 2009-03-03  Eric Blake  <ebb9@byu.net>
25834
25835         test-closein: silence test under Darwin
25836         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25837         care if it dies from EPIPE or EBADF.
25838
25839 2009-03-03  Bruno Haible  <bruno@clisp.org>
25840
25841         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25842         earlier.
25843         * doc/visibility.texi: Fix @node and @section.
25844
25845 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25846
25847         * doc/gnulib.texi: Link to sections for ld version script and
25848         visibility.
25849         * doc/visibility.texi: Add @node and @section.
25850         * modules/ld-version-script: New module.
25851         * m4/ld-version-script.m4: New file.
25852         * doc/ld-version-script.texi: New file.
25853
25854 2009-03-02  David Lutterkort  <lutter@redhat.com>
25855
25856         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25858
25859 2009-03-02  Bruno Haible  <bruno@clisp.org>
25860
25861         * doc/visibility.texi: Mention libtool's -export-symbols option.
25862
25863 2009-03-02  Jim Meyering  <meyering@redhat.com>
25864
25865         announce-gen: new option: --no-print-checksums
25866         * build-aux/announce-gen (usage): Describe it.
25867         (print_checksums): Print a newline here, not in the [*] footnote.
25868         (main): Honor it.
25869
25870 2009-03-01  Bruno Haible  <bruno@clisp.org>
25871
25872         Use socklen_t in the native Windows replacements prototypes.
25873         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25874         instead of 'int'.
25875         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25876         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25877         * modules/getsockopt (Depends-on): Add socklen.
25878         * modules/setsockopt (Depends-on): Add socklen.
25879
25880 2009-03-01  Bruno Haible  <bruno@clisp.org>
25881
25882         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25883         least 4.2.
25884
25885 2009-03-01  Eric Blake  <ebb9@byu.net>
25886             Bruno Haible  <bruno@clisp.org>
25887
25888         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25889         error messages.
25890         * lib/wait-process.c (wait_subprocess): Omit error message about
25891         deadly signal sent to the child of termsigp != NULL.
25892
25893 2009-03-01  Eric Blake  <ebb9@byu.net>
25894
25895         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25896
25897 2009-03-01  Bruno Haible  <bruno@clisp.org>
25898
25899         Avoid a gcc warning.
25900         * tests/test-sched.c (b): Make global.
25901         Reported by Eric Blake.
25902
25903 2009-01-19  Martin Lambers  <marlam@marlam.de>
25904
25905         Provide POSIX semantics for socket timeout options on W32.
25906         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25907         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25908         * modules/setsockopt: Depend on sys_time module for struct timeval.
25909         * modules/getsockopt: Depend on sys_time module for struct timeval.
25910
25911 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25912
25913         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25914         __USE_GNU, for consistency with netdb.in.h.
25915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25916
25917 2009-03-01  Bruno Haible  <bruno@clisp.org>
25918
25919         More support for FreeMiNT.
25920         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25921         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25922
25923 2009-03-01  Bruno Haible  <bruno@clisp.org>
25924
25925         More support for FreeMiNT.
25926         * lib/fpurge.c (fpurge): Correct last commit.
25927         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25928
25929 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25930
25931         Fix unportable awk script in vc-list-files.
25932         * build-aux/vc-list-files: In the replacement awk script, use
25933         substr with a second argument of 1, not zero.
25934         Report by Simon Josefsson.
25935
25936 2009-02-28  Bruno Haible  <bruno@clisp.org>
25937
25938         More support for FreeMiNT.
25939         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25940         to FreeMiNT today.
25941         * lib/fwriting.c (fwriting): Likewise.
25942         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25943
25944 2009-02-28  Bruno Haible  <bruno@clisp.org>
25945
25946         * tests/test-freadseek.c (main): Disable test beyond end of file on
25947         FreeMiNT.
25948         * tests/test-ftello.c (main): Likewise.
25949         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25950
25951 2009-02-28  Bruno Haible  <bruno@clisp.org>
25952
25953         Add tentative support for FreeMiNT.
25954         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25955         * lib/fpurge.c (fpurge): Likewise.
25956         * lib/freadable.c (freadable): Likewise.
25957         * lib/freading.c (freading): Likewise.
25958         * lib/freadptr.c (freadptr): Likewise.
25959         * lib/freadseek.c (freadptrinc): Likewise.
25960         * lib/fseeko.c (rpl_fseeko): Likewise.
25961         * lib/fseterr.c (fseterr): Likewise.
25962         * lib/fwritable.c (fwritable): Likewise.
25963         * lib/fwriting.c (fwriting): Likewise.
25964         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25965         Hourihane.
25966         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25967
25968 2009-02-28  Bruno Haible  <bruno@clisp.org>
25969
25970         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25971         SIGCHLD.
25972         Reported by Jim Meyering.
25973
25974 2009-02-28  Bruno Haible  <bruno@clisp.org>
25975
25976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25977         Mention the results of these tests on various platforms.
25978         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25979         order.
25980         * doc/posix-functions/printf.texi: Likewise.
25981         * doc/posix-functions/snprintf.texi: Likewise.
25982         * doc/posix-functions/sprintf.texi: Likewise.
25983         * doc/posix-functions/vfprintf.texi: Likewise.
25984         * doc/posix-functions/vprintf.texi: Likewise.
25985         * doc/posix-functions/vsnprintf.texi: Likewise.
25986         * doc/posix-functions/vsprintf.texi: Likewise.
25987         * doc/glibc-functions/obstack_printf.texi: Likewise.
25988         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25989
25990 2009-02-28  Bruno Haible  <bruno@clisp.org>
25991
25992         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25993         Reported by Loïc Minier <lool@dooz.org>.
25994
25995 2009-02-27  Bruno Haible  <bruno@clisp.org>
25996
25997         * gnulib-tool (func_import): Make the sed expression used to create the
25998         sed script for updating the .gitignore file POSIX compliant.
25999         Reported by Eric Blake.
26000
26001 2009-02-27  Bruno Haible  <bruno@clisp.org>
26002
26003         * gnulib-tool (sed): Don't alias as "sed --posix".
26004         Reported by Eric Blake.
26005
26006 2009-02-27  Bruno Haible  <bruno@clisp.org>
26007
26008         Avoid test link errors.
26009         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26010         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26011         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26012         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26014
26015 2009-02-27  Bruno Haible  <bruno@clisp.org>
26016
26017         Avoid spurious "(cached)" in configure output.
26018         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26019         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26020         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26021         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26022         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26025         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26026         Reported by Eric Blake.
26027
26028 2009-02-27  Eric Blake  <ebb9@byu.net>
26029
26030         printf: fix regression in previous patch
26031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26032
26033 2009-02-27  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26036         value.
26037         * lib/stdint.in.h: Likewise.
26038         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26039
26040 2009-02-27  Eric Blake  <ebb9@byu.net>
26041
26042         doc: mention more functions added in cygwin 1.7.0
26043         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26044         addition.
26045         * doc/posix-functions/open_wmemstream.texi: Likewise.
26046         * doc/posix-functions/wcsnlen.texi: Likewise.
26047         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26048         * doc/posix-functions/wcstod.texi: Likewise.
26049         * doc/posix-functions/wcstof.texi: Likewise.
26050         * doc/posix-functions/wcstoimax.texi: Likewise.
26051         * doc/posix-functions/wcstok.texi: Likewise.
26052         * doc/posix-functions/wcstoumax.texi: Likewise.
26053
26054         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26056         * doc/posix-functions/fprintf.texi: Update.
26057         * doc/posix-functions/printf.texi: Update.
26058         * doc/posix-functions/snprintf.texi: Update.
26059         * doc/posix-functions/sprintf.texi: Update.
26060         * doc/posix-functions/vfprintf.texi: Update.
26061         * doc/posix-functions/vprintf.texi: Update.
26062         * doc/posix-functions/vsnprintf.texi: Update.
26063         * doc/posix-functions/vsprintf.texi: Update.
26064         * doc/glibc-functions/obstack_printf.texi: Update.
26065         * doc/glibc-functions/obstack_vprintf.texi: Update.
26066
26067 2009-02-26  Eric Blake  <ebb9@byu.net>
26068
26069         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26070         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26071         compilation bug by using runtime conversion.
26072         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26073         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26074         * modules/ceill-tests (Files): Use nan.h.
26075         * modules/floorl-tests (Files): Likewise.
26076         * modules/frexpl-tests (Files): Likewise.
26077         * modules/isnanl-tests (Files): Likewise.
26078         * modules/ldexpl-tests (Files): Likewise.
26079         * modules/roundl-tests (Files): Likewise.
26080         * modules/truncl-tests (Files): Likewise.
26081         * tests/test-ceill.c (main): Use a working NaN.
26082         * tests/test-floorl.c (main): Likewise.
26083         * tests/test-frexpl.c (main): Likewise.
26084         * tests/test-isnan.c (test_long_double): Likewise.
26085         * tests/test-isnanl.h (main): Likewise.
26086         * tests/test-ldexpl.h (main): Likewise.
26087         * tests/test-roundl.h (main): Likewise.
26088         * tests/test-truncl.h (main): Likewise.
26089         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26090
26091 2009-02-26  Eric Blake  <ebb9@byu.net>
26092             Bruno Haible  <bruno@clisp.org>
26093
26094         Work around a *printf bug with %ls on Solaris.
26095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26096         precision is specified, sprintf stops converting the wide string
26097         argument when the number of bytes that have been produced by this
26098         conversion equals or exceeds the precision.
26099         * doc/posix-functions/fprintf.texi: Update.
26100         * doc/posix-functions/printf.texi: Update.
26101         * doc/posix-functions/snprintf.texi: Update.
26102         * doc/posix-functions/sprintf.texi: Update.
26103         * doc/posix-functions/vfprintf.texi: Update.
26104         * doc/posix-functions/vprintf.texi: Update.
26105         * doc/posix-functions/vsnprintf.texi: Update.
26106         * doc/posix-functions/vsprintf.texi: Update.
26107         * doc/glibc-functions/obstack_printf.texi: Update.
26108         * doc/glibc-functions/obstack_vprintf.texi: Update.
26109
26110 2009-02-26  Eric Blake  <ebb9@byu.net>
26111
26112         stdlib: favor compiler check of random.h
26113         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26114         to avoid an ObjC random.h installed by Swarm.
26115
26116 2009-02-26  Bruno Haible  <bruno@clisp.org>
26117
26118         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26119         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26120         Reported by Gary V. Vaughan <gary@gnu.org>.
26121
26122 2009-02-26  Bruno Haible  <bruno@clisp.org>
26123
26124         Fix *printf behaviour regarding the %ls directive.
26125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26126         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26127         NEED_PRINTF_DIRECTIVE_LS.
26128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26129         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26131         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26132         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26133         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26134         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26139         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26143         * doc/posix-functions/fprintf.texi: Update.
26144         * doc/posix-functions/printf.texi: Update.
26145         * doc/posix-functions/snprintf.texi: Update.
26146         * doc/posix-functions/sprintf.texi: Update.
26147         * doc/posix-functions/vfprintf.texi: Update.
26148         * doc/posix-functions/vprintf.texi: Update.
26149         * doc/posix-functions/vsnprintf.texi: Update.
26150         * doc/posix-functions/vsprintf.texi: Update.
26151         * doc/glibc-functions/obstack_printf.texi: Update.
26152         * doc/glibc-functions/obstack_vprintf.texi: Update.
26153         Reported by Eric Blake.
26154
26155 2009-02-25  Bruno Haible  <bruno@clisp.org>
26156
26157         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26158         with known value.
26159         Reported by Gary V. Vaughan <gary@gnu.org>.
26160
26161 2009-02-25  Bruno Haible  <bruno@clisp.org>
26162
26163         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26164         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26165         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26166         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26167         Reported by Gary V. Vaughan <gary@gnu.org>.
26168
26169 2009-02-25  Bruno Haible  <bruno@clisp.org>
26170
26171         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26172         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26173         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26174         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26175         Reported by Gary V. Vaughan <gary@gnu.org>.
26176
26177 2009-02-25  Eric Blake  <ebb9@byu.net>
26178
26179         tests: skip fseek/ftell tests if ungetc is broken
26180         * m4/ungetc.m4: New file.
26181         * modules/fseek-tests: Split test, so ungetc dependency is
26182         separate from rest of test.
26183         * modules/fseeko-tests: Likewise.
26184         * modules/ftell-tests: Likewise.
26185         * modules/ftello-tests: Likewise.
26186         * tests/test-fseek.c (main): Isolate ungetc dependency.
26187         * tests/test-fseeko.c (main): Likewise.
26188         * tests/test-ftell.c (main): Likewise.
26189         * tests/test-ftello.c (main): Likewise.
26190         * tests/test-fseek2.sh: New file.
26191         * tests/test-fseeko2.sh: Likewise.
26192         * tests/test-ftell2.sh: Likewise.
26193         * tests/test-ftello2.sh: Likewise.
26194
26195 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26196
26197         test-getaddrinfo: fix usage of skip return code 77
26198         * tests/test-gettaddrinfo.c: Return skip code 77 only
26199         for first occurance of skip (4x77 is not 77)
26200
26201 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26202
26203         strtod: avoid C99 decl-after-statement
26204         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26205
26206 2009-02-24  Eric Blake  <ebb9@byu.net>
26207
26208         strtod: detect HP-UX 11.31 bug
26209         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26210         Reported by Gary V. Vaughan.
26211
26212 2009-02-23  Bruno Haible  <bruno@clisp.org>
26213
26214         Fix invalid read past end of memory block.
26215         * lib/vasnprintf.c (DCHAR_SET): Define.
26216         (local_wcslen): Define only when needed.
26217         (local_strnlen, local_wcsnlen): New functions.
26218         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26219         directives that involve a conversion ourselves.
26220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26221         wcsnlen, mbrtowc, wcrtomb.
26222         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26223         * tests/test-vasprintf-posix.c (test_function): Likewise.
26224         * tests/test-snprintf-posix.h (test_function): Likewise.
26225         * tests/test-sprintf-posix.h (test_function): Likewise.
26226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26227
26228 2009-02-22  Bruno Haible  <bruno@clisp.org>
26229
26230         Implement new clarified decomposition of Hangul syllables.
26231         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26232         of type LTV, return only a pairwise decomposition.
26233         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26234         Likewise.
26235         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26236         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26237         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26238
26239 2009-02-22  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26242         zero-length results and shrink excess allocated memory.
26243         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26244         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26245         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26246         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26247         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26248         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26249         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26250         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26251         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26252         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26253         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26254         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26255
26256 2009-02-21  Bruno Haible  <bruno@clisp.org>
26257
26258         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26259         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26260         spaces after a period. Put a space between a macro name and its
26261         argument list. Trivial rewordings.
26262         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26263         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26264         (main): Return 0 explicitly.
26265
26266 2009-02-21  Bruno Haible  <bruno@clisp.org>
26267
26268         Tests for module 'uninorm/filter'.
26269         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26270         * modules/uninorm/filter-tests: New file.
26271
26272         New module 'uninorm/filter'.
26273         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26274         uninorm_filter_flush, uninorm_filter_free): New declarations.
26275         * lib/uninorm/uninorm-filter.c: New file.
26276         * modules/uninorm/filter: New file.
26277
26278 2009-02-21  Bruno Haible  <bruno@clisp.org>
26279
26280         Tests for module 'uninorm/nfkc'.
26281         * tests/uninorm/test-nfkc.c: New file.
26282         * tests/uninorm/test-u8-nfkc.c: New file.
26283         * tests/uninorm/test-u16-nfkc.c: New file.
26284         * tests/uninorm/test-u32-nfkc.c: New file.
26285         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26286         * tests/uninorm/test-u32-nfkc-big.c: New file.
26287         * modules/uninorm/nfkc-tests: New file.
26288
26289         New module 'uninorm/nfkc'.
26290         * lib/uninorm/nfkc.c: New file.
26291         * modules/uninorm/nfkc: New file.
26292
26293         Tests for module 'uninorm/nfkd'.
26294         * tests/uninorm/test-nfkd.c: New file.
26295         * tests/uninorm/test-u8-nfkd.c: New file.
26296         * tests/uninorm/test-u16-nfkd.c: New file.
26297         * tests/uninorm/test-u32-nfkd.c: New file.
26298         * tests/uninorm/test-u32-nfkd-big.sh: New file.
26299         * tests/uninorm/test-u32-nfkd-big.c: New file.
26300         * modules/uninorm/nfkd-tests: New file.
26301
26302         New module 'uninorm/nfkd'.
26303         * lib/uninorm/nfkd.c: New file.
26304         * modules/uninorm/nfkd: New file.
26305
26306         Tests for module 'uninorm/nfc'.
26307         * tests/uninorm/test-nfc.c: New file.
26308         * tests/uninorm/test-u8-nfc.c: New file.
26309         * tests/uninorm/test-u16-nfc.c: New file.
26310         * tests/uninorm/test-u32-nfc.c: New file.
26311         * tests/uninorm/test-u32-nfc-big.sh: New file.
26312         * tests/uninorm/test-u32-nfc-big.c: New file.
26313         * modules/uninorm/nfc-tests: New file.
26314
26315         New module 'uninorm/nfc'.
26316         * lib/uninorm/nfc.c: New file.
26317         * modules/uninorm/nfc: New file.
26318
26319         Tests for module 'uninorm/nfd'.
26320         * tests/uninorm/test-nfd.c: New file.
26321         * tests/uninorm/test-u8-nfd.c: New file.
26322         * tests/uninorm/test-u16-nfd.c: New file.
26323         * tests/uninorm/test-u32-nfd.c: New file.
26324         * tests/uninorm/test-u32-nfd-big.sh: New file.
26325         * tests/uninorm/test-u32-nfd-big.c: New file.
26326         * tests/uninorm/test-u32-normalize-big.h: New file.
26327         * tests/uninorm/test-u32-normalize-big.c: New file.
26328         * tests/uninorm/NormalizationTest.txt: New file, created from
26329         Unicode 5.1.0 NormalizationTest.txt.
26330         * modules/uninorm/nfd-tests: New file.
26331
26332         New module 'uninorm/nfd'.
26333         * lib/uninorm/nfd.c: New file.
26334         * modules/uninorm/nfd: New file.
26335
26336         New module 'uninorm/u32-normalize'.
26337         * lib/uninorm/u32-normalize.c: New file.
26338         * modules/uninorm/u32-normalize: New file.
26339
26340         New module 'uninorm/u16-normalize'.
26341         * lib/uninorm/u16-normalize.c: New file.
26342         * modules/uninorm/u16-normalize: New file.
26343
26344         New module 'uninorm/u8-normalize'.
26345         * lib/uninorm/u8-normalize.c: New file.
26346         * lib/uninorm/normalize-internal.h: New file.
26347         * lib/uninorm/u-normalize-internal.h: New file.
26348         * modules/uninorm/u8-normalize: New file.
26349
26350         New module 'uninorm/decompose-internal'.
26351         * lib/uninorm/decompose-internal.c: New file.
26352         * modules/uninorm/decompose-internal: New file.
26353
26354         Tests for module 'uninorm/composition'.
26355         * tests/uninorm/test-composition.c: New file.
26356         * modules/uninorm/composition-tests: New file.
26357
26358         New module 'uninorm/composition'.
26359         * lib/uninorm/composition.c: New file.
26360         * lib/uninorm/composition-table.gperf: New file, generated by
26361         gen-uni-tables.
26362         * modules/uninorm/composition: New file.
26363
26364         Tests for module 'uninorm/compat-decomposition'.
26365         * tests/uninorm/test-compat-decomposition.c: New file.
26366         * modules/uninorm/compat-decomposition-tests: New file.
26367
26368         New module 'uninorm/compat-decomposition'.
26369         * lib/uninorm/decompose-internal.h: New file.
26370         * lib/uninorm/compat-decomposition.c: New file.
26371         * modules/uninorm/compat-decomposition: New file.
26372
26373         Tests for module 'uninorm/canonical-decomposition'.
26374         * tests/uninorm/test-canonical-decomposition.c: New file.
26375         * modules/uninorm/canonical-decomposition-tests: New file.
26376
26377         New module 'uninorm/canonical-decomposition'.
26378         * lib/uninorm/canonical-decomposition.c: New file.
26379         * modules/uninorm/canonical-decomposition: New file.
26380
26381         Tests for module 'uninorm/decomposition'.
26382         * tests/uninorm/test-decomposition.c: New file.
26383         * modules/uninorm/decomposition-tests: New file.
26384
26385         New module 'uninorm/decomposition'.
26386         * lib/uninorm/decomposition.c: New file.
26387         * modules/uninorm/decomposition: New file.
26388
26389         New module 'uninorm/decomposition-table'.
26390         * lib/uninorm/decomposition-table.h: New file.
26391         * lib/uninorm/decomposition-table.c: New file.
26392         * lib/uninorm/decomposition-table1.h: New file, generated by
26393         gen-uni-tables.
26394         * lib/uninorm/decomposition-table2.h: New file, generated by
26395         gen-uni-tables.
26396         * modules/uninorm/decomposition-table: New file.
26397
26398         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26399         (UC_DECOMP_*): New enumeration items.
26400         (get_decomposition): New function.
26401         (struct decomp_table): New type.
26402         (output_decomposition, output_decomposition_tables): New functions.
26403         (unicode_composition_exclusions): New variable.
26404         (fill_composition_exclusions, debug_output_composition_tables): New
26405         functions.
26406         (main): Accept one more argument. Invoke fill_composition_exclusions.
26407         Output decomposition and composition tables.
26408
26409         New module 'uninorm/base'.
26410         * lib/uninorm.h: New file.
26411         * lib/unictype.h: Update comment.
26412         * modules/uninorm/base: New file.
26413
26414 2009-02-21  David Lutterkort  <lutter@redhat.com>
26415
26416         Tests for module 'safe-alloc'.
26417         * tests/test-safe-alloc.c: New file.
26418         * modules/safe-alloc-tests: New file.
26419
26420         New module 'safe-alloc'.
26421         * lib/safe-alloc.h: New file.
26422         * lib/safe-alloc.c: New file.
26423         * m4/safe-alloc.m4: New file.
26424         * modules/safe-alloc: New file.
26425         * doc/safe-alloc.texi: New file.
26426         * doc/gnulib.texi: Include it.
26427         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26428         safe-alloc.
26429
26430 2009-02-18  Bruno Haible  <bruno@clisp.org>
26431
26432         Fix link error on non-glibc systems.
26433         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26434         variable.
26435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26436
26437 2009-02-18  Jim Meyering  <meyering@redhat.com>
26438
26439         fts: avoid used-uninitialized error due to recent change
26440         * lib/fts.c (fts_read): Guard uses of the new member,
26441         parent->fts_n_dirs_remaining, since it's not relevant for
26442         the parent of a directory specified on the command-line.
26443
26444 2009-02-17  James Youngman  <jay@gnu.org>
26445             Bruno Haible  <bruno@clisp.org>
26446
26447         * m4/include_next.m4: Reformulate comment.
26448
26449 2009-02-16  Jim Meyering  <meyering@redhat.com>
26450
26451         fts: add #if guards so that the fts_lgpl module still builds
26452         * lib/fts.c: Guard just-added hash-table-using parts with
26453         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26454         Reported by Simon Josefsson.
26455
26456 2009-02-15  Bruno Haible  <bruno@clisp.org>
26457
26458         * modules/array-mergesort-tests: New file.
26459         * tests/test-array-mergesort.c: New file.
26460
26461         New module 'array-mergesort'.
26462         * modules/array-mergesort: New file.
26463         * lib/array-mergesort.h: New file.
26464
26465 2009-02-15  Bruno Haible  <bruno@clisp.org>
26466
26467         Fix 2009-02-07 commit.
26468         * lib/gen-uni-tables.c (output_predicate, output_category,
26469         output_combclass, output_bidi_category, output_decimal_digit,
26470         output_digit, output_numeric, output_mirror, output_scripts,
26471         output_ident_category, output_simple_mapping): Fix format directives.
26472         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26473
26474 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26475
26476         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26477         fixes are available from IBM.
26478
26479 2009-02-13  Jim Meyering  <meyering@redhat.com>
26480
26481         fts: arrange not to stat non-directories in more cases
26482         This makes GNU find (when it doesn't need to stat each file)
26483         *much* more efficient at traversing reiserfs file systems.
26484         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26485         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26486         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26487         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26488         (leaf_optimization_applies): New function.
26489         (LCO_hash, LCO_compare): New helper functions.
26490         (link_count_optimize_ok): New function.
26491         (fts_stat): Initialize new member (if dir).
26492         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26493         we've just stat'ed a directory.  Skip the stat call when possible.
26494         ---
26495         Note this AFS-related exchange:
26496         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26497         and note find's pioctl call in find/fstype.c.
26498         But that is necessary only if you want to enable the
26499         optimization for AFS, and for now, I don't.
26500
26501         fts: move a function definition "up" (no semantic change)
26502         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26503         "up" to precede upcoming use of a related function.
26504
26505 2009-02-11  Jim Meyering  <meyering@redhat.com>
26506
26507         fts: correct internal computation of nlinks (optimization-related)
26508         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26509         whether the current entry is a directory, so don't test it.
26510
26511 2009-02-10  Bruno Haible  <bruno@clisp.org>
26512
26513         Tests for module 'uniwbrk/ulc-wordbreaks'.
26514         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26515         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26516         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26517
26518         Tests for module 'uniwbrk/u32-wordbreaks'.
26519         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26520         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26521
26522         Tests for module 'uniwbrk/u16-wordbreaks'.
26523         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26524         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26525
26526         Tests for module 'uniwbrk/u8-wordbreaks'.
26527         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26528         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26529
26530 2009-02-10  Bruno Haible  <bruno@clisp.org>
26531
26532         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26533         property.
26534         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26535         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26536         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26537
26538 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26539
26540         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26541         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26542
26543 2009-02-10  Bruno Haible  <bruno@clisp.org>
26544
26545         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26546         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26547         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26548         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26549         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26550         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26551
26552 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26553
26554         * lib/sockets.h (gl_fd_to_handle): New function.
26555
26556         * tests/test-sockets.c: Call gl_fd_to_handle.
26557
26558 2009-02-09  Bruno Haible  <bruno@clisp.org>
26559
26560         * doc/havelib.texi: Document the conventions on bi-arch systems.
26561
26562 2009-02-08  Bruno Haible  <bruno@clisp.org>
26563
26564         Document the AC_LIB_LINKFLAGS macro.
26565         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26566         * doc/gnulib.texi: Include it.
26567
26568 2009-02-08  Bruno Haible  <bruno@clisp.org>
26569
26570         Fix wrong order of sections, compared to TOC.
26571         * doc/gnulib.texi: Include relocatable-maint.texi after the
26572         "Regular expressions" node, not before.
26573
26574 2009-02-08  Bruno Haible  <bruno@clisp.org>
26575
26576         Tests for module 'unicase/totitle'.
26577         * modules/unicase/totitle-tests: New file.
26578
26579         Tests for module 'unicase/tolower'.
26580         * modules/unicase/tolower-tests: New file.
26581
26582         Tests for module 'unicase/toupper'.
26583         * modules/unicase/toupper-tests: New file.
26584         * tests/unicase/test-mapping-part1.h: New file.
26585         * tests/unicase/test-mapping-part2.h: New file.
26586
26587         New module 'unicase/totitle'.
26588         * modules/unicase/totitle: New file.
26589         * lib/unicase/totitle.c: New file.
26590
26591         New module 'unicase/tolower'.
26592         * modules/unicase/tolower: New file.
26593         * lib/unicase/tolower.c: New file.
26594
26595         New module 'unicase/toupper'.
26596         * modules/unicase/toupper: New file.
26597         * lib/unicase/toupper.c: New file.
26598         * lib/unicase/simple-mapping.h: New file.
26599
26600         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26601         (mapping_table): New structure.
26602         (output_simple_mapping): New function.
26603         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26604         * modules/gen-uni-tables (Description): Update.
26605         * lib/unicase/toupper.h: New file, automatically generated by
26606         gen-uni-tables.
26607         * lib/unicase/tolower.h: New file, automatically generated by
26608         gen-uni-tables.
26609         * lib/unicase/totitle.h: New file, automatically generated by
26610         gen-uni-tables.
26611         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26612         gen-uni-tables.
26613         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26614         gen-uni-tables.
26615         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26616         gen-uni-tables.
26617
26618         New module 'unicase/base'.
26619         * modules/unicase/base: New file.
26620         * lib/unicase.h: New file.
26621
26622 2009-02-08  Bruno Haible  <bruno@clisp.org>
26623
26624         New module 'uniwbrk/ulc-wordbreaks'.
26625         * modules/uniwbrk/ulc-wordbreaks: New file.
26626         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26627
26628         New module 'uniwbrk/u32-wordbreaks'.
26629         * modules/uniwbrk/u32-wordbreaks: New file.
26630         * lib/uniwbrk/u32-wordbreaks.c: New file.
26631
26632         New module 'uniwbrk/u16-wordbreaks'.
26633         * modules/uniwbrk/u16-wordbreaks: New file.
26634         * lib/uniwbrk/u16-wordbreaks.c: New file.
26635
26636         New module 'uniwbrk/u8-wordbreaks'.
26637         * modules/uniwbrk/u8-wordbreaks: New file.
26638         * lib/uniwbrk/u8-wordbreaks.c: New file.
26639         * lib/uniwbrk/u-wordbreaks.h: New file.
26640
26641         New module 'uniwbrk/table'.
26642         * modules/uniwbrk/table: New file.
26643         * lib/uniwbrk/wbrktable.h: New file.
26644         * lib/uniwbrk/wbrktable.c: New file.
26645
26646         New module 'uniwbrk/wordbreak-property'.
26647         * modules/uniwbrk/wordbreak-property: New file.
26648         * lib/uniwbrk/wordbreak-property.c: New file.
26649
26650         * lib/gen-uni-tables.c (WBP_*): New enum items.
26651         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26652         (unicode_org_wbp): New variable.
26653         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26654         New functions.
26655         (wbp_table): New structure.
26656         (output_wbp, output_wbrk_tables): New functions.
26657         (main): Accept additional argument. Invoke fill_org_wbp,
26658         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26659         output_wbrk_tables.
26660         * modules/gen-uni-tables (Description): Update.
26661         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26662         gen-uni-tables.
26663
26664         New module 'uniwbrk/base'.
26665         * modules/uniwbrk/base: New file.
26666         * lib/uniwbrk.h: New file.
26667
26668 2009-02-08  Bruno Haible  <bruno@clisp.org>
26669
26670         Update to Unicode 5.1.0.
26671         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26672         U+2185..U+2188.
26673         (is_property_default_ignorable_code_point): Don't include characters
26674         of category Cc or Cs and not-a-characters.
26675         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26676         U+0D79, U+109E, U+109F, U+A60C.
26677         * lib/unictype/bidi_of.h: Regenerated.
26678         * lib/unictype/blocks.h: Regenerated.
26679         * lib/unictype/categ_C.h: Regenerated.
26680         * lib/unictype/categ_Cf.h: Regenerated.
26681         * lib/unictype/categ_Cn.h: Regenerated.
26682         * lib/unictype/categ_L.h: Regenerated.
26683         * lib/unictype/categ_Ll.h: Regenerated.
26684         * lib/unictype/categ_Lm.h: Regenerated.
26685         * lib/unictype/categ_Lo.h: Regenerated.
26686         * lib/unictype/categ_Lu.h: Regenerated.
26687         * lib/unictype/categ_M.h: Regenerated.
26688         * lib/unictype/categ_Mc.h: Regenerated.
26689         * lib/unictype/categ_Me.h: Regenerated.
26690         * lib/unictype/categ_Mn.h: Regenerated.
26691         * lib/unictype/categ_N.h: Regenerated.
26692         * lib/unictype/categ_Nd.h: Regenerated.
26693         * lib/unictype/categ_Nl.h: Regenerated.
26694         * lib/unictype/categ_No.h: Regenerated.
26695         * lib/unictype/categ_P.h: Regenerated.
26696         * lib/unictype/categ_Pd.h: Regenerated.
26697         * lib/unictype/categ_Pe.h: Regenerated.
26698         * lib/unictype/categ_Pf.h: Regenerated.
26699         * lib/unictype/categ_Pi.h: Regenerated.
26700         * lib/unictype/categ_Po.h: Regenerated.
26701         * lib/unictype/categ_Ps.h: Regenerated.
26702         * lib/unictype/categ_S.h: Regenerated.
26703         * lib/unictype/categ_Sk.h: Regenerated.
26704         * lib/unictype/categ_Sm.h: Regenerated.
26705         * lib/unictype/categ_So.h: Regenerated.
26706         * lib/unictype/categ_of.h: Regenerated.
26707         * lib/unictype/combining.h: Regenerated.
26708         * lib/unictype/ctype_alnum.h: Regenerated.
26709         * lib/unictype/ctype_alpha.h: Regenerated.
26710         * lib/unictype/ctype_graph.h: Regenerated.
26711         * lib/unictype/ctype_lower.h: Regenerated.
26712         * lib/unictype/ctype_print.h: Regenerated.
26713         * lib/unictype/ctype_punct.h: Regenerated.
26714         * lib/unictype/ctype_upper.h: Regenerated.
26715         * lib/unictype/decdigit.h: Regenerated.
26716         * lib/unictype/digit.h: Regenerated.
26717         * lib/unictype/mirror.h: Regenerated.
26718         * lib/unictype/numeric.h: Regenerated.
26719         * lib/unictype/pr_alphabetic.h: Regenerated.
26720         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26721         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26722         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26723         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26724         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26725         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26726         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26727         * lib/unictype/pr_combining.h: Regenerated.
26728         * lib/unictype/pr_dash.h: Regenerated.
26729         * lib/unictype/pr_decimal_digit.h: Regenerated.
26730         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26731         * lib/unictype/pr_deprecated.h: Regenerated.
26732         * lib/unictype/pr_diacritic.h: Regenerated.
26733         * lib/unictype/pr_extender.h: Regenerated.
26734         * lib/unictype/pr_format_control.h: Regenerated.
26735         * lib/unictype/pr_grapheme_base.h: Regenerated.
26736         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26737         * lib/unictype/pr_grapheme_link.h: Regenerated.
26738         * lib/unictype/pr_id_continue.h: Regenerated.
26739         * lib/unictype/pr_id_start.h: Regenerated.
26740         * lib/unictype/pr_ideographic.h: Regenerated.
26741         * lib/unictype/pr_ignorable_control.h: Regenerated.
26742         * lib/unictype/pr_lowercase.h: Regenerated.
26743         * lib/unictype/pr_math.h: Regenerated.
26744         * lib/unictype/pr_numeric.h: Regenerated.
26745         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26746         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26747         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26748         * lib/unictype/pr_other_id_continue.h: Regenerated.
26749         * lib/unictype/pr_other_lowercase.h: Regenerated.
26750         * lib/unictype/pr_other_math.h: Regenerated.
26751         * lib/unictype/pr_punctuation.h: Regenerated.
26752         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26753         * lib/unictype/pr_soft_dotted.h: Regenerated.
26754         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26755         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26756         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26757         * lib/unictype/pr_uppercase.h: Regenerated.
26758         * lib/unictype/pr_xid_continue.h: Regenerated.
26759         * lib/unictype/pr_xid_start.h: Regenerated.
26760         * lib/unictype/pr_zero_width.h: Regenerated.
26761         * lib/unictype/scripts.h: Regenerated.
26762         * lib/unictype/scripts_byname.gperf: Regenerated.
26763         * lib/unictype/sy_java_ident.h: Regenerated.
26764         * lib/unilbrk/lbrkprop1.h: Regenerated.
26765         * lib/unilbrk/lbrkprop2.h: Regenerated.
26766         * tests/unictype/test-categ_C.c: Regenerated.
26767         * tests/unictype/test-categ_Cf.c: Regenerated.
26768         * tests/unictype/test-categ_Cn.c: Regenerated.
26769         * tests/unictype/test-categ_L.c: Regenerated.
26770         * tests/unictype/test-categ_Ll.c: Regenerated.
26771         * tests/unictype/test-categ_Lm.c: Regenerated.
26772         * tests/unictype/test-categ_Lo.c: Regenerated.
26773         * tests/unictype/test-categ_Lu.c: Regenerated.
26774         * tests/unictype/test-categ_M.c: Regenerated.
26775         * tests/unictype/test-categ_Mc.c: Regenerated.
26776         * tests/unictype/test-categ_Me.c: Regenerated.
26777         * tests/unictype/test-categ_Mn.c: Regenerated.
26778         * tests/unictype/test-categ_N.c: Regenerated.
26779         * tests/unictype/test-categ_Nd.c: Regenerated.
26780         * tests/unictype/test-categ_Nl.c: Regenerated.
26781         * tests/unictype/test-categ_No.c: Regenerated.
26782         * tests/unictype/test-categ_P.c: Regenerated.
26783         * tests/unictype/test-categ_Pd.c: Regenerated.
26784         * tests/unictype/test-categ_Pe.c: Regenerated.
26785         * tests/unictype/test-categ_Pf.c: Regenerated.
26786         * tests/unictype/test-categ_Pi.c: Regenerated.
26787         * tests/unictype/test-categ_Po.c: Regenerated.
26788         * tests/unictype/test-categ_Ps.c: Regenerated.
26789         * tests/unictype/test-categ_S.c: Regenerated.
26790         * tests/unictype/test-categ_Sk.c: Regenerated.
26791         * tests/unictype/test-categ_Sm.c: Regenerated.
26792         * tests/unictype/test-categ_So.c: Regenerated.
26793         * tests/unictype/test-ctype_alnum.c: Regenerated.
26794         * tests/unictype/test-ctype_alpha.c: Regenerated.
26795         * tests/unictype/test-ctype_graph.c: Regenerated.
26796         * tests/unictype/test-ctype_lower.c: Regenerated.
26797         * tests/unictype/test-ctype_print.c: Regenerated.
26798         * tests/unictype/test-ctype_punct.c: Regenerated.
26799         * tests/unictype/test-ctype_upper.c: Regenerated.
26800         * tests/unictype/test-decdigit.h: Regenerated.
26801         * tests/unictype/test-digit.h: Regenerated.
26802         * tests/unictype/test-numeric.h: Regenerated.
26803         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26804         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26805         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26806         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26807         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26808         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26809         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26810         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26811         * tests/unictype/test-pr_combining.c: Regenerated.
26812         * tests/unictype/test-pr_dash.c: Regenerated.
26813         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26814         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26815         * tests/unictype/test-pr_deprecated.c: Regenerated.
26816         * tests/unictype/test-pr_diacritic.c: Regenerated.
26817         * tests/unictype/test-pr_extender.c: Regenerated.
26818         * tests/unictype/test-pr_format_control.c: Regenerated.
26819         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26820         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26821         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26822         * tests/unictype/test-pr_id_continue.c: Regenerated.
26823         * tests/unictype/test-pr_id_start.c: Regenerated.
26824         * tests/unictype/test-pr_ideographic.c: Regenerated.
26825         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26826         * tests/unictype/test-pr_lowercase.c: Regenerated.
26827         * tests/unictype/test-pr_math.c: Regenerated.
26828         * tests/unictype/test-pr_numeric.c: Regenerated.
26829         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26830         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26831         Regenerated.
26832         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26833         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26834         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26835         * tests/unictype/test-pr_other_math.c: Regenerated.
26836         * tests/unictype/test-pr_punctuation.c: Regenerated.
26837         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26838         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26839         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26840         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26841         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26842         * tests/unictype/test-pr_uppercase.c: Regenerated.
26843         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26844         * tests/unictype/test-pr_xid_start.c: Regenerated.
26845         * tests/unictype/test-pr_zero_width.c: Regenerated.
26846
26847         Update to Unicode 5.1.0.
26848         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26849         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26850         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26851         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26852         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26853         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26854         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26855         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26856         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26857         (nonspacing_table_ind): Update.
26858         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26859
26860         Update to Unicode 5.1.0.
26861         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26862         code transform.
26863         * lib/uniname/uniname.c (unicode_character_name,
26864         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26865         * lib/uniname/uninames.h: Regenerated.
26866         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26867
26868 2009-02-07  Bruno Haible  <bruno@clisp.org>
26869
26870         Merge gen-ctype and gen-lbrk into a single program.
26871         * lib/gen-uni-tables.c: New file, incorporating
26872         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26873         Add directory prefixes to the names of the generated files.
26874         * lib/unictype/gen-ctype.c: Remove file.
26875         * lib/unilbrk/gen-lbrk.c: Remove file.
26876         * modules/gen-uni-tables: New file.
26877         * modules/unictype/gen-ctype: Remove file.
26878         * modules/unilbrk/gen-lbrk: Remove file.
26879
26880 2009-02-07  Bruno Haible  <bruno@clisp.org>
26881
26882         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26883
26884         New module 'unistr/u32-strcoll'.
26885         * modules/unistr/u32-strcoll: New file.
26886         * lib/unistr/u32-strcoll.c: New file.
26887
26888         New module 'unistr/u16-strcoll'.
26889         * modules/unistr/u16-strcoll: New file.
26890         * lib/unistr/u16-strcoll.c: New file.
26891
26892         New module 'unistr/u8-strcoll'.
26893         * modules/unistr/u8-strcoll: New file.
26894         * lib/unistr/u8-strcoll.c: New file.
26895         * lib/unistr/u-strcoll.h: New file.
26896
26897 2009-02-07  Bruno Haible  <bruno@clisp.org>
26898
26899         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26900         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26901         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26902         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26903         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26904         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26905
26906 2009-02-07  Bruno Haible  <bruno@clisp.org>
26907
26908         Make 64-bit clean.
26909         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26910         output_combclass, output_bidi_category, output_decimal_digit,
26911         output_digit, output_numeric, output_mirror, output_scripts,
26912         output_ident_category): Use proper width specifier in format strings.
26913
26914 2009-02-07  Bruno Haible  <bruno@clisp.org>
26915
26916         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26917         failure behaviour.
26918
26919 2009-02-07  Jim Meyering  <meyering@redhat.com>
26920
26921         regex: avoid compilation failure with upcoming gcc-4.4
26922         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26923         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26924         "... error: integer overflow in preprocessor expression".
26925
26926 2009-02-05  Ben Pfaff  <blp@gnu.org>
26927
26928         Fix link errors on Windows when close module is used.
26929         * modules/close: Add $(LIB_CLOSE) to Link section.
26930         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26931         $(LIB_CLOSE) on Windows.
26932
26933 2009-02-05  Jim Meyering  <meyering@redhat.com>
26934
26935         still avoid unused-parameter warnings, but do it cleanly
26936         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26937         (get_fs_usage): Cast to void instead.
26938         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26939         (dev_from_mount_options, read_file_system_list): Cast to void.
26940         Prompted by Bruno Haible.
26941
26942 2009-02-04  Jim Meyering  <meyering@redhat.com>
26943
26944         fsusage.c: correct copyright year
26945         * lib/fsusage.c: Reflect year in which the change is pushed into
26946
26947         avoid misc. warnings
26948         * lib/fsusage.c (UNUSED_PARAM): Define.
26949         (get_fs_usage): Mark parameter "disk" as unused.
26950         * lib/getugroups.c (getgrent): Use "void" in prototype.
26951         * lib/mountlist.c: Mark unused parameters.
26952         (read_file_system_list): Declare a local with "const".
26953         * lib/nanosleep.c (getnow): Declare static.
26954         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26955
26956         dirfd: set errno upon failure
26957         * lib/dirfd.c: Include <errno.h>.
26958         Set errno to ENOTSUP when returning -1.
26959         * modules/dirfd (Depends-on): Add errno.
26960         Suggested by John Kodis <kodis@comcast.net>.
26961
26962 2009-02-01  Bruno Haible  <bruno@clisp.org>
26963
26964         Don't assume sizeof (long) >= sizeof (void *).
26965         * lib/memcmp.c: Include stdint.h.
26966         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26967         srcp2 to 'const byte *'.
26968         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26969         types to uintptr_t.
26970         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26971         * modules/memcmp (Depends-on): Add stdint.
26972         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26973
26974 2009-01-30  Eric Blake  <ebb9@byu.net>
26975
26976         fix more require-before-expand issues
26977         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26978         expand, AC_PROG_AWK.
26979         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26980
26981 2009-01-28  Eric Blake  <ebb9@byu.net>
26982
26983         version-etc: use consistent URL formatting
26984         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26985         Improve formatting.  Use fputs for string without %.
26986
26987 2009-01-28  Jim Meyering  <meyering@redhat.com>
26988
26989         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26990         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26991         "underquoted definition of NAME" from autoconf-2.59.
26992
26993 2009-01-28  Bruno Haible  <bruno@clisp.org>
26994
26995         * doc/gnulib.texi: Add "Obsolete modules" to index.
26996
26997 2009-01-28  Jim Meyering  <meyering@redhat.com>
26998
26999         useless-if-before-free: recognize more variants
27000         * build-aux/useless-if-before-free: Also recognize e.g.,
27001         if (NULL != p) free (p);
27002
27003 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27004
27005         test-getaddrinfo: skip (don't fail) this test when there's no network
27006         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27007         on the presumption that it means you lack network access.
27008
27009 2009-01-26  Jim Meyering  <meyering@redhat.com>
27010
27011         fflush: avoid warnings on modern systems
27012         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27013         pos and result, into scopes where they're used.
27014
27015 2009-01-26  Eric Blake  <ebb9@byu.net>
27016
27017         Silence warning reintroduced by recent extensions patch.
27018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27019         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27020         autoconf.
27021
27022         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27023         * m4/00gnulib.m4: New file.
27024         * gnulib-tool (func_get_filelist): Always use it.
27025         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27026         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27027
27028 2009-01-25  Bruno Haible  <bruno@clisp.org>
27029
27030         Make test-quotearg work on MacOS X and AIX.
27031         * tests/test-quotearg.sh: New file.
27032         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27033         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27034         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27035         include <libintl.h>.
27036         (fake_locale): Remove variable.
27037         (gettext, dgettext, dcgettext): Remove functions.
27038         (main): Instead of setting a fake locale, set a real locale. Call
27039         textdomain and bindtextdomain.
27040         * modules/quotearg-tests (Files): Add the new files.
27041         (Depends-on): Add gettext, setenv, unsetenv.
27042         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27043         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27044         Augment TESTS_ENVIRONMENT.
27045
27046 2009-01-25  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27049         fr_FR.ISO8859-1 locale on MacOS X.
27050         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27051         ja_JP.eucJP locale on MacOS X.
27052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27053         zh_CN.GB18030 locale on MacOS X.
27054
27055 2009-01-25  Bruno Haible  <bruno@clisp.org>
27056
27057         Avoid link errors on MacOS X 10.3.
27058         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27059         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27060
27061 2009-01-25  Bruno Haible  <bruno@clisp.org>
27062
27063         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27064         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27065         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27066         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27067         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27068         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27069         posix_spawnattr_init, posix_spawnattr_setsigmask,
27070         posix_spawnattr_setflags, posix_spawnattr_destroy.
27071
27072         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27073         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27074         * modules/execute (Files): Remove m4/posix_spawn.m4.
27075         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27076         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27077         posix_spawnattr_init, posix_spawnattr_setsigmask,
27078         posix_spawnattr_setflags, posix_spawnattr_destroy.
27079
27080 2009-01-25  Bruno Haible  <bruno@clisp.org>
27081
27082         * lib/glthread/threadlib.c: Include <stdlib.h>.
27083
27084 2009-01-25  Bruno Haible  <bruno@clisp.org>
27085
27086         * lib/glthread/threadlib.c (dummy): New declaration.
27087
27088 2009-01-25  Bruno Haible  <bruno@clisp.org>
27089
27090         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27091         multibyte characters also for the GB18030 encoding. Don't crash when
27092         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27093
27094 2009-01-25  Bruno Haible  <bruno@clisp.org>
27095
27096         Avoid redefining 'struct random_data' on OSF/1 5.1.
27097         * lib/stdlib.in.h: Include <random.h> if it exists.
27098         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27099         HAVE_RANDOM_H. Include <random.h> when testing whether
27100         'struct random_data' exists.
27101         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27102
27103 2009-01-25  Bruno Haible  <bruno@clisp.org>
27104
27105         Don't install charset.alias on MacOS X >= 10.3.
27106         * lib/localcharset.c (DARWIN7): New macro.
27107         (get_charset_aliases): Hardcode the result for Darwin7.
27108         * modules/localcharset (install-exec-local): Don't install
27109         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27110
27111 2009-01-25  Bruno Haible  <bruno@clisp.org>
27112
27113         Don't install charset.alias on mingw and Cygwin.
27114         * modules/localcharset (install-exec-local): Don't install
27115         charset.alias on mingw and Cygwin, if the file does not yet exist.
27116         The result for these platforms is hardcoded in localcharset.c.
27117
27118 2009-01-25  Bruno Haible  <bruno@clisp.org>
27119
27120         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27122         before requiring AC_USE_SYSTEM_EXTENSIONS.
27123
27124 2009-01-25  Jim Meyering  <meyering@redhat.com>
27125
27126         c-strtod: avoid warnings
27127         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27128         "assignment discards qualifiers from pointer target type" warnings.
27129
27130 2009-01-24  Bruno Haible  <bruno@clisp.org>
27131
27132         Add support for non-UTF-8 locales on MacOS X.
27133         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27134         canonical encodings. For Darwin 7 and newer, don't map traditional
27135         encodings to UTF-8.
27136         Reported by Vincent Lefevre <vincent@vinc17.org>
27137         at <http://savannah.gnu.org/bugs/?25235>.
27138
27139 2009-01-24  Bruno Haible  <bruno@clisp.org>
27140
27141         * doc/gnulib.texi (Obsolete modules): New section.
27142         Reported by Mike Frysinger <vapier@gentoo.org>.
27143
27144 2009-01-24  Bruno Haible  <bruno@clisp.org>
27145
27146         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27147         (%.dvi): New rule.
27148
27149 2009-01-24  Bruno Haible  <bruno@clisp.org>
27150
27151         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27152         Reported by Eric Blake.
27153
27154 2009-01-24  Bruno Haible  <bruno@clisp.org>
27155
27156         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27157         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27158         Reported by Gary V. Vaughan <gary@gnu.org>.
27159
27160 2009-01-24  Bruno Haible  <bruno@clisp.org>
27161
27162         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27163
27164 2009-01-23  Bruno Haible  <bruno@clisp.org>
27165
27166         Make c-strtod, c-strtold usable in libraries.
27167         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27168         (C_STRTOD): Call strdup instead of xstrdup.
27169         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27170         * modules/c-strtold (Depends-on): Likewise.
27171         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27172         * NEWS: Mention the change.
27173         Reported by Michael Gold <mgold@ncf.ca>.
27174
27175 2009-01-23  Jim Meyering  <meyering@redhat.com>
27176
27177         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27178         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27179         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27180
27181 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27182
27183         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27184         GNU CoreUtils.
27185         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27186         * modules/version-etc (Description): Update.
27187
27188 2009-01-22  Bruno Haible  <bruno@clisp.org>
27189
27190         Cache the C locale object.
27191         * lib/c-strtod.c (c_locale_cache): New variable.
27192         (c_locale): New function.
27193         (C_STRTOD): Use it, and don't call freelocale.
27194         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27195         Suggested by Paolo Bonzini.
27196
27197 2009-01-21  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27200         conditions other than overflow.
27201
27202 2009-01-21  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/c-strtod.c: Include errno.h.
27205         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27206         value from STRTOD_L and STRTOD.
27207
27208 2009-01-21  Bruno Haible  <bruno@clisp.org>
27209         and Jim Meyering  <meyering@redhat.com>
27210
27211         nanosleep: skip configure test (fail it) for apple universal builds
27212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27213         universal builds, assume that nanosleep does not work.
27214         * modules/nanosleep (Depends-on): Add multiarch.
27215
27216         mktime: skip configure test (fail it) for apple universal builds
27217         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27218         universal builds, assume that mktime does not work.
27219         * modules/mktime (Depends-on): Add multiarch.
27220
27221 2009-01-21  Eric Blake  <ebb9@byu.net>
27222
27223         multiarch: avoid expand-before-require warning
27224         * modules/multiarch (configure.ac): Require, rather than expand,
27225         gl_MULTIARCH.
27226         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27227         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27228         enforce that all clients require it.  Partial reversion of
27229         2008-12-29 patch.
27230
27231         error: avoid expand-before-require warning
27232         * modules/errno (configure.ac): Require, rather than expand,
27233         gl_HEADER_ERRNO_H.
27234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27235         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27236         enforce that all clients require it.
27237
27238         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27239         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27240         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27241         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27242
27243 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27244
27245         Revert:
27246         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27247
27248         regex: do not depend on obsolete modules.
27249         * modules/regex: Remove memcmp and memmove.
27250
27251 2009-01-20  Bruno Haible  <bruno@clisp.org>
27252
27253         Make the 'link' module link on Windows NT 4.
27254         * lib/link.c (_WIN32_WINNT): Don't define.
27255         (CreateHardLinkFuncType): New type.
27256         (CreateHardLinkFunc, initialized): New variables.
27257         (initialize): New function.
27258         (link): Invoke CreateHardLink indirectly through the function pointer.
27259
27260 2009-01-20  Bruno Haible  <bruno@clisp.org>
27261
27262         Fix compilation failure on mingw.
27263         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27264
27265 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27266
27267         * doc/c-strtod.texi: Mention a couple of restrictions.
27268
27269 2009-01-20  Jim Meyering  <meyering@redhat.com>
27270
27271         gettimeofday: move more declarations out of functions
27272         * lib/gettimeofday.c: Move extern declarations of tzset and
27273         gmtime out of containing functions.  Prompted by Bruno Haible.
27274
27275 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27276
27277         regex: do not depend on obsolete modules.
27278         * modules/regex: Remove memcmp and memmove.
27279
27280 2009-01-19  Bruno Haible  <bruno@clisp.org>
27281
27282         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27283         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27284         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27285         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27286         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27287
27288 2009-01-19  Bruno Haible  <bruno@clisp.org>
27289
27290         * tests/test-link.c: Include <errno.h>.
27291         (main): Exit with code 77 when a hard link cannot be created due to
27292         the file system.
27293         * tests/test-link.sh: Skip test when a hard link cannot be created due
27294         to the file system.
27295         Suggested by Eric Blake.
27296
27297 2009-01-19  Martin Lambers  <marlam@marlam.de>
27298
27299         * modules/link-tests: New file.
27300         * tests/test-link.sh: New file.
27301         * tests/test-link.c: New file.
27302
27303 2009-01-19  Eric Blake  <ebb9@byu.net>
27304
27305         doc: mention another function added in cygwin 1.7.0
27306         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
27307         Another new function in cygwin 1.7.
27308
27309 2009-01-19  Bruno Haible  <bruno@clisp.org>
27310
27311         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27312         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
27313         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
27314         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27315         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27316         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27318         * m4/md4.m4 (gl_MD4): Likewise.
27319         * m4/md5.m4 (gl_MD5): Likewise.
27320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
27321         * m4/sha1.m4 (gl_SHA1): Likewise.
27322         * m4/sha256.m4 (gl_SHA256): Likewise.
27323         * m4/sha512.m4 (gl_SHA512): Likewise.
27324
27325 2009-01-19  Bruno Haible  <bruno@clisp.org>
27326
27327         * modules/uniname/uniname-tests (Depends-on): Add progname.
27328         * tests/uniname/test-uninames.c: Include progname.h.
27329         (main): Call set_program_name.
27330
27331         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
27332         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
27333         (main): Call set_program_name.
27334
27335         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27336         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27337         (main): Call set_program_name.
27338
27339         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27340         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27341         (main): Call set_program_name.
27342
27343         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27344         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27345         (main): Call set_program_name.
27346
27347         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27348         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27349         (main): Call set_program_name.
27350
27351         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27352         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27353         (main): Call set_program_name.
27354
27355         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27356         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27357         (main): Call set_program_name.
27358
27359         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27360         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27361         (main): Call set_program_name.
27362
27363 2009-01-19  Eric Blake  <ebb9@byu.net>
27364
27365         test-unistd: test previous patch
27366         * tests/test-unistd.c: Test *_FILENO macros.
27367
27368         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27369         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27370         Guarantee a definition.
27371         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27372         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27373         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27374         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27375         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27376         Likewise.
27377         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27378         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27379         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27380         Likewise.
27381         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27382         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27383         (STDERR_FILENO): Likewise.
27384         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27385         (STDERR_FILENO): Likewise.
27386         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27387         (STDERR_FILENO): Likewise.
27388         Reported by Elbert Pol.
27389
27390 2009-01-19  Eric Blake  <ebb9@byu.net>
27391
27392         doc: mention more functions added in cygwin 1.7.0
27393         * doc/posix-functions/abort.texi (abort): Update wording related
27394         to cygwin.
27395         * doc/posix-functions/daylight.texi (daylight): Likewise.
27396         * doc/posix-functions/optarg.texi (optarg): Likewise.
27397         * doc/posix-functions/optarg.texi (opterr): Likewise.
27398         * doc/posix-functions/optarg.texi (optind): Likewise.
27399         * doc/posix-functions/optarg.texi (optopt): Likewise.
27400         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27401         worked in 1.5.x, and was withdrawn in 1.7.
27402         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27403         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27404         cygwin versions.
27405         * doc/posix-functions/perror.texi (perror): Likewise.
27406         * doc/posix-functions/printf.texi (printf): Likewise.
27407         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27408         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27409         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27410         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27411         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27412         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27413         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27414         Likewise.
27415         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27416         Likewise.
27417         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27418         this function.
27419         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27420         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27421         Likewise.
27422         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27423         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27424         * doc/posix-functions/confstr.texi (confstr): Likewise.
27425         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27426         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27427         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27428         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27429         * doc/posix-functions/fputws.texi (fputws): Likewise.
27430         * doc/posix-functions/fwide.texi (fwide): Likewise.
27431         * doc/posix-functions/getwc.texi (getwc): Likewise.
27432         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27433         * doc/posix-functions/putwc.texi (putwc): Likewise.
27434         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27435         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27436         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27437         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27438         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27439         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27440         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27441         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27442         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27443         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27444         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27445
27446 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27447
27448         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27449         * lib/ioctl.c: Include <sys/ioctl.h>.
27450
27451 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27452
27453         * modules/getdate-tests (Depends-on): Add progname.
27454         * tests/test-getdate.c: Use progname module, to avoid link errors
27455         on non-glibc systems.
27456
27457 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27458
27459         * modules/filenamecat-tests (Depends-on): Add progname.
27460         * modules/fstrcmp-tests (Depends-on): Likewise.
27461
27462         * tests/test-filenamecat.c: Use progname module, to avoid link
27463         errors on non-glibc systems.
27464         * tests/test-fstrcmp.c: Likewise.
27465
27466 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27467
27468         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27469         * lib/gettimeofday.c: Move extern declaration out of function.
27470
27471 2009-01-18  Bruno Haible  <bruno@clisp.org>
27472
27473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27474         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27475         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27476
27477 2009-01-18  Bruno Haible  <bruno@clisp.org>
27478
27479         * lib/strftime.c (MEMPCPY): Remove unused macro.
27480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27481
27482 2009-01-18  Martin Lambers  <marlam@marlam.de>
27483
27484         New module 'link'.
27485         * lib/unistd.in.h (link): New declaration.
27486         * lib/link.c: New file.
27487         * m4/link.m4: New file.
27488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27489         HAVE_LINK.
27490         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27491         * modules/link: New file.
27492         * doc/posix-functions/link.texi: Mention the new module.
27493
27494 2009-01-18  Bruno Haible  <bruno@clisp.org>
27495
27496         * tests/test-avltree_list.c (main): Call set_program_name.
27497         * tests/test-avltree_oset.c (main): Likewise.
27498         * tests/test-obstack-printf.c: Include progname.h.
27499         (main): Call set_program_name.
27500         * tests/test-quotearg.c: Include progname.h.
27501         (main): Call set_program_name.
27502         * tests/test-xmemdup0.c: Include progname.h.
27503         (main): Call set_program_name.
27504
27505 2009-01-18  Bruno Haible  <bruno@clisp.org>
27506
27507         New module 'alphasort'.
27508         * lib/dirent.in.h (alphasort): New declaration.
27509         * lib/alphasort.c: New file, from glibc with modifications.
27510         * m4/alphasort.m4: New file.
27511         * modules/alphasort: New file.
27512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27513         HAVE_ALPHASORT.
27514         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27515         HAVE_ALPHASORT.
27516         * doc/posix-functions/alphasort.texi: Mention the new module and the
27517         portability problems.
27518
27519 2009-01-18  Bruno Haible  <bruno@clisp.org>
27520
27521         New module 'scandir'.
27522         * lib/dirent.in.h (scandir): New declaration.
27523         * lib/scandir.c: New file, from glibc with modifications.
27524         * m4/scandir.m4: New file.
27525         * modules/scandir: New file.
27526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27527         HAVE_SCANDIR.
27528         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27529         HAVE_SCANDIR.
27530         * doc/posix-functions/scandir.texi: Mention the new module and the
27531         portability problems.
27532
27533 2009-01-17  Bruno Haible  <bruno@clisp.org>
27534
27535         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27536         Update documentation.
27537         (func_remove_suffix): Escape all dots in the suffix. Update
27538         documentation.
27539         (func_filter_filelist): Update documentation.
27540         Reported by Ralf Wildenhues.
27541
27542 2009-01-17  Bruno Haible  <bruno@clisp.org>
27543
27544         * modules/dprintf-posix-tests: New file.
27545         * tests/test-dprintf-posix.sh: New file.
27546         * tests/test-dprintf-posix.c: New file.
27547
27548         New modules 'dprintf', 'dprintf-posix'.
27549         * lib/stdio.in.h (dprintf): New declaration.
27550         * lib/dprintf.c: New file.
27551         * m4/dprintf.m4: New file.
27552         * m4/dprintf-posix.m4: New file.
27553         * modules/dprintf: New file.
27554         * modules/dprintf-posix: New file.
27555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27556         HAVE_DPRINTF, REPLACE_DPRINTF.
27557         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27558         HAVE_DPRINTF, REPLACE_DPRINTF.
27559         * doc/posix-functions/dprintf.texi: Mention the new modules.
27560
27561 2009-01-17  Bruno Haible  <bruno@clisp.org>
27562
27563         * modules/vdprintf-posix-tests: New file.
27564         * tests/test-vdprintf-posix.sh: New file.
27565         * tests/test-vdprintf-posix.c: New file.
27566
27567         New modules 'vdprintf', 'vdprintf-posix'.
27568         * lib/stdio.in.h (vdprintf): New declaration.
27569         * lib/vdprintf.c: New file.
27570         * m4/vdprintf.m4: New file.
27571         * m4/vdprintf-posix.m4: New file.
27572         * modules/vdprintf: New file.
27573         * modules/vdprintf-posix: New file.
27574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27575         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27576         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27577         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27578         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27579
27580 2009-01-17  Bruno Haible  <bruno@clisp.org>
27581
27582         Fix replacement of fopen on mingw.
27583         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27584         mingw.
27585
27586 2009-01-17  Bruno Haible  <bruno@clisp.org>
27587
27588         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27589         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27590
27591 2009-01-17  Bruno Haible  <bruno@clisp.org>
27592
27593         Avoid test-fflush2.sh failure on mingw.
27594         * tests/test-fflush2.c: Include binary-io.h.
27595         (main): Put standard input into binary mode.
27596         * modules/fflush-tests (Depends-on): Add binary-io.
27597
27598 2009-01-17  Bruno Haible  <bruno@clisp.org>
27599
27600         * lib/wchar.in.h: In another particular situation, include only the
27601         system's <wchar.h> file.
27602         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27603         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27604         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27605
27606 2009-01-17  Bruno Haible  <bruno@clisp.org>
27607
27608         Support for stripping executables in --enable-relocatable.
27609         * build-aux/install-reloc: Expect one more argument, or an environment
27610         variable RELOC_STRIP_PROG. If set, strip the destination program and
27611         its wrapper.
27612         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27613         RELOC_STRIP_PROG.
27614         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27615         to set RELOCATABLE_STRIP.
27616         * NEWS: Mention the new Makefile requirement.
27617
27618 2009-01-17  Bruno Haible  <bruno@clisp.org>
27619
27620         * build-aux/install-reloc: Remove debugging information left over by
27621         C compiler on MacOS X.
27622
27623 2009-01-17  Bruno Haible  <bruno@clisp.org>
27624
27625         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27626         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27627         _NSGetExecutablePath.
27628
27629 2009-01-16  Jim Meyering  <meyering@redhat.com>
27630
27631         strerror: avoid warnings about discarding "const"
27632         * lib/strerror.c (rpl_strerror): Instead of returning a const
27633         string from each and every "case", use a variable, and add a single
27634         cast after the switch.
27635
27636 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27637
27638         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27639
27640 2009-01-16  Bruno Haible  <bruno@clisp.org>
27641
27642         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27643         array initializer syntax that also works in C++ mode.
27644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27645
27646 2009-01-16  Jim Meyering  <meyering@redhat.com>
27647
27648         poll: suppress a warning
27649         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27650         to ignore "...unsigned expression < 0 is always false" warnings.
27651
27652 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27653
27654         poll: remove declarations of unused variables
27655         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27656         sockbuf and optlen.
27657
27658 2009-01-15  Bruno Haible  <bruno@clisp.org>
27659
27660         Make fflush-after-ungetc POSIX compliant on BSD systems.
27661         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27662         (clear_ungetc_buffer): Implement also for other systems.
27663         (rpl_fflush): On glibc systems, invoke
27664         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27665         clear_ungetc_buffer after fetching the stream's position, not before.
27666
27667 2009-01-15  Bruno Haible  <bruno@clisp.org>
27668
27669         Make fflush-after-ungetc POSIX compliant on glibc systems.
27670         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27671         after ungetc.
27672         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27673         (rpl_fflush): On glibc systems, simply call the system's fflush
27674         function after clearing the ungetc buffer.
27675         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27676         Instead, lseek only to the end of file, then use the system's fseeko
27677         for the rest. On glibc systems, reset the EOF indicator bit.
27678
27679 2009-01-15  Jim Meyering  <meyering@redhat.com>
27680
27681         openmp.m4: revert quote-adding change, for portability to older autoconf
27682         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27683         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27684         Simon Josefsson noticed the problem when using autoconf-2.61.
27685
27686 2009-01-15  Bruno Haible  <bruno@clisp.org>
27687
27688         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27689         * tests/test-fflush2.c (ASSERT): Always fail.
27690         (main): Add two tests for fflush() after ungetc(), taking into account
27691         the Austin Group's clarification.
27692         Suggested by Eric Blake.
27693
27694 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27695
27696         mktime.m4: remove K&R-style function prototypes
27697         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27698         for the Sun C++ compiler.
27699
27700 2009-01-14  Bruno Haible  <bruno@clisp.org>
27701
27702         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27703         while including <wchar.h>.
27704         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27705         the system's <wchar.h> file.
27706         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27707
27708 2009-01-14  Bruno Haible  <bruno@clisp.org>
27709
27710         * m4/csharp.m4: Don't mention gettext on the serial number line.
27711         * m4/csharpexec.m4: Likewise.
27712         * m4/eaccess.m4: Likewise.
27713         * m4/javaexec.m4: Likewise.
27714         * m4/sig_atomic_t.m4: Likewise.
27715         * m4/tmpdir.m4: Likewise.
27716         * m4/intldir.m4: Bump gettext version.
27717         * m4/lib-ld.m4: Likewise.
27718
27719 2009-01-14  Bruno Haible  <bruno@clisp.org>
27720
27721         * lib/progname.c (set_program_name): Add more comments.
27722         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27723
27724 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27725
27726         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27727         were sys/stat.h does not define it.
27728
27729 2009-01-14  Jim Meyering  <meyering@redhat.com>
27730
27731         many *.m4 files: improve m4 quoting
27732         99% of this change was performed by running the following commands:
27733         git ls-files | grep '\.m4$' | xargs perl -pi \
27734           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27735           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27736           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27737           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27738         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27739         The remainder were to add Copyright dates, increment serial numbers,
27740         undo some changes in comments, exclude m4/intl.m4, and add quotes
27741         around the "1" in ",1" where the unusual spacing prohibited the
27742         above regexps from doing the job.  For more details, see
27743         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27744         * m4/acl.m4: Modified.
27745         * m4/afs.m4: Likewise.
27746         * m4/alloca.m4: Likewise.
27747         * m4/argp.m4: Likewise.
27748         * m4/argz.m4: Likewise.
27749         * m4/atexit.m4: Likewise.
27750         * m4/bison-i18n.m4: Likewise.
27751         * m4/bison.m4: Likewise.
27752         * m4/byteswap.m4: Likewise.
27753         * m4/c-stack.m4: Likewise.
27754         * m4/c-strtod.m4: Likewise.
27755         * m4/calloc.m4: Likewise.
27756         * m4/canonicalize-lgpl.m4: Likewise.
27757         * m4/chown.m4: Likewise.
27758         * m4/clock_time.m4: Likewise.
27759         * m4/codeset.m4: Likewise.
27760         * m4/copy-file.m4: Likewise.
27761         * m4/csharp.m4: Likewise.
27762         * m4/csharpcomp.m4: Likewise.
27763         * m4/csharpexec.m4: Likewise.
27764         * m4/d-ino.m4: Likewise.
27765         * m4/d-type.m4: Likewise.
27766         * m4/dirfd.m4: Likewise.
27767         * m4/double-slash-root.m4: Likewise.
27768         * m4/eaccess.m4: Likewise.
27769         * m4/eealloc.m4: Likewise.
27770         * m4/environ.m4: Likewise.
27771         * m4/errno_h.m4: Likewise.
27772         * m4/euidaccess.m4: Likewise.
27773         * m4/execute.m4: Likewise.
27774         * m4/fatal-signal.m4: Likewise.
27775         * m4/fchdir.m4: Likewise.
27776         * m4/fcntl_h.m4: Likewise.
27777         * m4/fileblocks.m4: Likewise.
27778         * m4/filenamecat.m4: Likewise.
27779         * m4/findprog.m4: Likewise.
27780         * m4/flexmember.m4: Likewise.
27781         * m4/fnmatch.m4: Likewise.
27782         * m4/fopen.m4: Likewise.
27783         * m4/fpending.m4: Likewise.
27784         * m4/fprintf-posix.m4: Likewise.
27785         * m4/free.m4: Likewise.
27786         * m4/frexp.m4: Likewise.
27787         * m4/frexpl.m4: Likewise.
27788         * m4/fsusage.m4: Likewise.
27789         * m4/ftruncate.m4: Likewise.
27790         * m4/gc-camellia.m4: Likewise.
27791         * m4/gc-random.m4: Likewise.
27792         * m4/gc.m4: Likewise.
27793         * m4/getaddrinfo.m4: Likewise.
27794         * m4/getcwd-abort-bug.m4: Likewise.
27795         * m4/getcwd-path-max.m4: Likewise.
27796         * m4/getdate.m4: Likewise.
27797         * m4/getdomainname.m4: Likewise.
27798         * m4/getgroups.m4: Likewise.
27799         * m4/gethostname.m4: Likewise.
27800         * m4/gethrxtime.m4: Likewise.
27801         * m4/getline.m4: Likewise.
27802         * m4/getloadavg.m4: Likewise.
27803         * m4/getndelim2.m4: Likewise.
27804         * m4/getpass.m4: Likewise.
27805         * m4/gettext.m4: Likewise.
27806         * m4/gettime.m4: Likewise.
27807         * m4/gettimeofday.m4: Likewise.
27808         * m4/gnulib-common.m4: Likewise.
27809         * m4/group-member.m4: Likewise.
27810         * m4/host-os.m4: Likewise.
27811         * m4/iconv.m4: Likewise.
27812         * m4/iconv_open.m4: Likewise.
27813         * m4/inet_ntop.m4: Likewise.
27814         * m4/inet_pton.m4: Likewise.
27815         * m4/inline.m4: Likewise.
27816         * m4/intldir.m4: Likewise.
27817         * m4/intlmacosx.m4: Likewise.
27818         * m4/intmax.m4: Likewise.
27819         * m4/intmax_t.m4: Likewise.
27820         * m4/inttypes.m4: Likewise.
27821         * m4/inttypes_h.m4: Likewise.
27822         * m4/inttypes-pri.m4: Likewise.
27823         * m4/isapipe.m4: Likewise.
27824         * m4/isnand.m4: Likewise.
27825         * m4/isnanf.m4: Likewise.
27826         * m4/isnanl.m4: Likewise.
27827         * m4/javacomp.m4: Likewise.
27828         * m4/javaexec.m4: Likewise.
27829         * m4/jm-winsz1.m4: Likewise.
27830         * m4/jm-winsz2.m4: Likewise.
27831         * m4/lchown.m4: Likewise.
27832         * m4/lcmessage.m4: Likewise.
27833         * m4/ldexpl.m4: Likewise.
27834         * m4/lib-ld.m4: Likewise.
27835         * m4/lib-link.m4: Likewise.
27836         * m4/libsigsegv.m4: Likewise.
27837         * m4/link-follow.m4: Likewise.
27838         * m4/localcharset.m4: Likewise.
27839         * m4/locale-fr.m4: Likewise.
27840         * m4/locale-ja.m4: Likewise.
27841         * m4/locale-tr.m4: Likewise.
27842         * m4/locale-zh.m4: Likewise.
27843         * m4/lock.m4: Likewise.
27844         * m4/longlong.m4: Likewise.
27845         * m4/ls-mntd-fs.m4: Likewise.
27846         * m4/lstat.m4: Likewise.
27847         * m4/malloc.m4: Likewise.
27848         * m4/mathl.m4: Likewise.
27849         * m4/mbrtowc.m4: Likewise.
27850         * m4/mbstate_t.m4: Likewise.
27851         * m4/mbswidth.m4: Likewise.
27852         * m4/memchr.m4: Likewise.
27853         * m4/memcmp.m4: Likewise.
27854         * m4/memcpy.m4: Likewise.
27855         * m4/memmem.m4: Likewise.
27856         * m4/memmove.m4: Likewise.
27857         * m4/mempcpy.m4: Likewise.
27858         * m4/memrchr.m4: Likewise.
27859         * m4/memset.m4: Likewise.
27860         * m4/minmax.m4: Likewise.
27861         * m4/mkdir-slash.m4: Likewise.
27862         * m4/mkdtemp.m4: Likewise.
27863         * m4/mktime.m4: Likewise.
27864         * m4/mmap-anon.m4: Likewise.
27865         * m4/mountlist.m4: Likewise.
27866         * m4/nanosleep.m4: Likewise.
27867         * m4/nls.m4: Likewise.
27868         * m4/nocrash.m4: Likewise.
27869         * m4/open.m4: Likewise.
27870         * m4/openat.m4: Likewise.
27871         * m4/openmp.m4: Likewise.
27872         * m4/pathmax.m4: Likewise.
27873         * m4/perl.m4: Likewise.
27874         * m4/physmem.m4: Likewise.
27875         * m4/pipe.m4: Likewise.
27876         * m4/po.m4: Likewise.
27877         * m4/poll.m4: Likewise.
27878         * m4/posixtm.m4: Likewise.
27879         * m4/posixver.m4: Likewise.
27880         * m4/printf-frexp.m4: Likewise.
27881         * m4/printf-frexpl.m4: Likewise.
27882         * m4/printf-posix.m4: Likewise.
27883         * m4/printf-posix-rpl.m4: Likewise.
27884         * m4/printf.m4: Likewise.
27885         * m4/progtest.m4: Likewise.
27886         * m4/putenv.m4: Likewise.
27887         * m4/readline.m4: Likewise.
27888         * m4/readlink.m4: Likewise.
27889         * m4/readutmp.m4: Likewise.
27890         * m4/realloc.m4: Likewise.
27891         * m4/regex.m4: Likewise.
27892         * m4/relocatable.m4: Likewise.
27893         * m4/relocatable-lib.m4: Likewise.
27894         * m4/rename-dest-slash.m4: Likewise.
27895         * m4/rename.m4: Likewise.
27896         * m4/rmdir-errno.m4: Likewise.
27897         * m4/rmdir.m4: Likewise.
27898         * m4/roundf.m4: Likewise.
27899         * m4/roundl.m4: Likewise.
27900         * m4/rpmatch.m4: Likewise.
27901         * m4/save-cwd.m4: Likewise.
27902         * m4/selinux-selinux-h.m4: Likewise.
27903         * m4/setenv.m4: Likewise.
27904         * m4/settime.m4: Likewise.
27905         * m4/sig2str.m4: Likewise.
27906         * m4/sig_atomic_t.m4: Likewise.
27907         * m4/signalblocking.m4: Likewise.
27908         * m4/signbit.m4: Likewise.
27909         * m4/sigpipe.m4: Likewise.
27910         * m4/sockets.m4: Likewise.
27911         * m4/sockpfaf.m4: Likewise.
27912         * m4/st_dm_mode.m4: Likewise.
27913         * m4/stat-time.m4: Likewise.
27914         * m4/stdbool.m4: Likewise.
27915         * m4/stdint.m4: Likewise.
27916         * m4/stdint_h.m4: Likewise.
27917         * m4/stpcpy.m4: Likewise.
27918         * m4/stpncpy.m4: Likewise.
27919         * m4/strcase.m4: Likewise.
27920         * m4/strchrnul.m4: Likewise.
27921         * m4/strcspn.m4: Likewise.
27922         * m4/strdup.m4: Likewise.
27923         * m4/strftime.m4: Likewise.
27924         * m4/strndup.m4: Likewise.
27925         * m4/strnlen.m4: Likewise.
27926         * m4/strpbrk.m4: Likewise.
27927         * m4/strptime.m4: Likewise.
27928         * m4/strsep.m4: Likewise.
27929         * m4/strtod.m4: Likewise.
27930         * m4/strtoimax.m4: Likewise.
27931         * m4/strtok_r.m4: Likewise.
27932         * m4/strtol.m4: Likewise.
27933         * m4/strtoll.m4: Likewise.
27934         * m4/strtoul.m4: Likewise.
27935         * m4/strtoull.m4: Likewise.
27936         * m4/strtoumax.m4: Likewise.
27937         * m4/strverscmp.m4: Likewise.
27938         * m4/threadlib.m4: Likewise.
27939         * m4/timegm.m4: Likewise.
27940         * m4/tm_gmtoff.m4: Likewise.
27941         * m4/tmpdir.m4: Likewise.
27942         * m4/tmpfile.m4: Likewise.
27943         * m4/tzset.m4: Likewise.
27944         * m4/uintmax_t.m4: Likewise.
27945         * m4/unlinkdir.m4: Likewise.
27946         * m4/unlocked-io.m4: Likewise.
27947         * m4/uptime.m4: Likewise.
27948         * m4/userspec.m4: Likewise.
27949         * m4/utimbuf.m4: Likewise.
27950         * m4/utime.m4: Likewise.
27951         * m4/utimes-null.m4: Likewise.
27952         * m4/utimes.m4: Likewise.
27953         * m4/vararrays.m4: Likewise.
27954         * m4/vasnprintf.m4: Likewise.
27955         * m4/vfprintf-posix.m4: Likewise.
27956         * m4/vprintf-posix.m4: Likewise.
27957         * m4/wait-process.m4: Likewise.
27958         * m4/wchar_t.m4: Likewise.
27959         * m4/wint_t.m4: Likewise.
27960         * m4/write-any-file.m4: Likewise.
27961         * m4/yield.m4: Likewise.
27962
27963 2009-01-13  Bruno Haible  <bruno@clisp.org>
27964
27965         Avoid test-copy-file.sh failures when ACL support insufficient.
27966         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27967         TESTS_ENVIRONMENT.
27968         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27969         Reported by Jim Meyering.
27970
27971 2009-01-13  Bruno Haible  <bruno@clisp.org>
27972
27973         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27974         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27975         * modules/unistdio/u8-printf-parse (Files): Likewise.
27976         * modules/unistdio/u32-printf-parse (Files): Likewise.
27977         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27978
27979 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27980
27981         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27982         and m4/inttypes_h.m4 too.
27983
27984 2009-01-12  Eric Blake  <ebb9@byu.net>
27985
27986         tests: IRIX 6.2 cc can't compile -0.0 into .data
27987         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27988         rather than at compile-time.
27989         * tests/test-floorl.c (minus_zero): Likewise.
27990         * tests/test-frexpl.c (minus_zero): Likewise.
27991         * tests/test-isnan.c (minus_zerol): Likewise.
27992         * tests/test-isnanl.h (minus_zero): Likewise.
27993         * tests/test-ldexpl.c (minus_zero): Likewise.
27994         * tests/test-roundl.c (minus_zero): Likewise.
27995         * tests/test-signbit.c (minus_zerol): Likewise.
27996         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27997         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27998         * tests/test-truncl.c (minus_zero): Likewise.
27999         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28000         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28001         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28002
28003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28004
28005         regex: fix glibc bug 9697
28006         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28007         handling.
28008
28009 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28010
28011         regex: fix glibc bug 697
28012         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28013         being NULL also if there are no backreferences.
28014
28015 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28016
28017         regex: merge glibc changes
28018         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28019         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28020         re_string_skip_chars, re_string_reconstruct): Likewise.
28021         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28022
28023 2009-01-07  Jim Meyering  <meyering@redhat.com>
28024
28025         poll: filter through cppi
28026         * lib/poll.c: Indent cpp directives to reflect nesting.
28027
28028 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28029
28030         poll: don't return uninitialized
28031         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28032
28033 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28034
28035         avoid compile failure on AIX 6.1
28036         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28037         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28038
28039 2009-01-04  Jim Meyering  <meyering@redhat.com>
28040
28041         remove duplicate inclusion of <stdio.h>
28042         * tests/test-fprintf-posix.c: Likewise.
28043         * tests/test-printf-posix.c: Likewise.
28044         * tests/test-snprintf-posix.c: Likewise.
28045         * tests/test-sprintf-posix.c: Likewise.
28046         * tests/test-vasprintf-posix.c: Likewise.
28047         * tests/test-vfprintf-posix.c: Likewise.
28048         * tests/test-vprintf-posix.c: Likewise.
28049         * tests/test-vsnprintf-posix.c: Likewise.
28050         * tests/test-vsprintf-posix.c: Likewise.
28051
28052 2009-01-03  Jim Meyering  <meyering@redhat.com>
28053
28054         gnulib-tool: fix sed-based filtering
28055         * gnulib-tool (func_filter_filelist): Remove extra backslash
28056         in sed_fff_filter definition.
28057
28058 2009-01-02  Jim Meyering  <meyering@redhat.com>
28059
28060         strftime: avoid compilation failure on Solaris 2.6
28061         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28062         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28063         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28064         be available.  Reported by Tom G. Christensen.  Details in
28065         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28066
28067 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28068             Bruno Haible  <bruno@clisp.org>
28069
28070         Speed up gnulib-tool by doing more string processing through shell
28071         built-ins.
28072         * gnulib-tool (fast_func_append): New variable.
28073         (func_remove_prefix, func_remove_suffix): New functions.
28074         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28075         (func_filter_filelist): New function.
28076         (func_get_dependencies): Use func_remove_suffix instead of sed.
28077         (func_get_automake_snippet): Use func_filter_filelist instead of a
28078         subshell and sed invocation.
28079
28080 2009-01-01  Bruno Haible  <bruno@clisp.org>
28081
28082         Fix a security bug.
28083         * gnulib-tool (func_import, import, update): Don't allow the characters
28084         '"', '$', '`', '\' in macro arguments that become part of commands that
28085         are evaluated.
28086
28087 2009-01-01  Bruno Haible  <bruno@clisp.org>
28088
28089         * gnulib-tool (func_reset_sigpipe): Add more comments.
28090
28091 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28092
28093         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28094         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28095         already know the answer.
28096
28097 2009-01-01  Jim Meyering  <meyering@redhat.com>
28098
28099         * lib/version-etc.c (version_etc_va): Update copyright year.
28100
28101 2008-12-30  Bruno Haible  <bruno@clisp.org>
28102
28103         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28104         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28105         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28106
28107 2008-12-29  Eric Blake  <ebb9@byu.net>
28108
28109         multiarch: avoid autoconf AC_REQUIRE bug
28110         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28111         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28112         2.63 and older.
28113         Reported by Bruno Haible, and analyzed in
28114         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28115
28116 2008-12-29  Bruno Haible  <bruno@clisp.org>
28117
28118         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28119         files in subdirectories correctly.
28120         Reported by Ralf Wildenhues.
28121
28122 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28123
28124         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28125         rather than 'join FILE -', for Solaris join.
28126
28127 2008-12-29  Bruno Haible  <bruno@clisp.org>
28128
28129         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28130         quoting.
28131         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28132         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28133         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28134         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28135         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28136         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28137         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28138         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28139         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28140         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28141         * m4/nls.m4 (AM_NLS): Likewise.
28142         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28143         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28144         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28145         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28146         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28147         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28148         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28149         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28150         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28151         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28152         * m4/xsize.m4 (gl_XSIZE): Likewise.
28153         Suggested by Jim Meyering.
28154
28155 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28156
28157         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28158         * lib/parse-duration.c: use a switch instead of cascading if's.
28159
28160 2008-12-29  Eric Blake  <ebb9@byu.net>
28161
28162         wchar.h: supply WEOF on Irix 5.3
28163         * lib/wchar.in.h (wint_t): Also supply WEOF.
28164         * lib/wctype.in.h (wint_t): Likewise.
28165         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28166         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28167         Reported by Tom G. Christensen.
28168
28169 2008-12-26  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28172         i486, i586, i686.
28173
28174 2008-12-26  Bruno Haible  <bruno@clisp.org>
28175
28176         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28177
28178 2008-12-26  Bruno Haible  <bruno@clisp.org>
28179
28180         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28181         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28182         not __STDC_CONSTANT_MACROS.
28183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28184
28185 2008-12-25  Bruno Haible  <bruno@clisp.org>
28186
28187         Add support for universal builds to vasnprintf.
28188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28189         universal builds, guess no.
28190         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28191         * modules/vasprintf-posix (Depends-on): Likewise.
28192         * modules/fprintf-posix (Depends-on): Likewise.
28193         * modules/vfprintf-posix (Depends-on): Likewise.
28194         * modules/snprintf-posix (Depends-on): Likewise.
28195         * modules/vsnprintf-posix (Depends-on): Likewise.
28196         * modules/sprintf-posix (Depends-on): Likewise.
28197         * modules/vsprintf-posix (Depends-on): Likewise.
28198         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28199         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28200         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28201         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28202         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28204         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28205
28206         Add support for universal builds to <inttypes.h>.
28207         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28208         _SCNu64_PREFIX): In Apple
28209         universal builds, define directly, using _LP64.
28210         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28211         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28212         * modules/inttypes (Depends-on): Add multiarch.
28213         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28214
28215         Add support for universal builds to <stdint.h>.
28216         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28217         universal builds, define directly, using _LP64.
28218         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28219         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28220         and size_t.
28221         * modules/stdint (Depends-on): Add multiarch.
28222         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28223
28224         New module 'multiarch'.
28225         * modules/multiarch: New file.
28226         * m4/multiarch.m4: New file.
28227
28228 2008-12-25  Bruno Haible  <bruno@clisp.org>
28229
28230         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28231
28232 2008-12-25  Bruno Haible  <bruno@clisp.org>
28233
28234         * modules/btowc (License): Relicense under LGPLv2+.
28235         * modules/mbsinit (License): Likewise.
28236         * modules/mbrtowc (License): Likewise.
28237         * modules/wcrtomb (License): Likewise.
28238         * modules/streq (License): Likewise.
28239         Reported by David Lutterkort <lutter@redhat.com>.
28240
28241 2008-12-23  Bruno Haible  <bruno@clisp.org>
28242
28243         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28244
28245 2008-12-23  Bruno Haible  <bruno@clisp.org>
28246
28247         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28249         GETADDRINFO_LIB, not in LIBS.
28250         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28251         * modules/canon-host (Link): Likewise.
28252         * NEWS: Mention the change.
28253         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28254         GETADDRINFO_LIB.
28255
28256 2008-12-22  Bruno Haible  <bruno@clisp.org>
28257
28258         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28259         * doc/posix-functions/iswalpha_l.texi: Likewise.
28260         * doc/posix-functions/iswblank_l.texi: Likewise.
28261         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28262         * doc/posix-functions/iswctype_l.texi: Likewise.
28263         * doc/posix-functions/iswdigit_l.texi: Likewise.
28264         * doc/posix-functions/iswgraph_l.texi: Likewise.
28265         * doc/posix-functions/iswlower_l.texi: Likewise.
28266         * doc/posix-functions/iswprint_l.texi: Likewise.
28267         * doc/posix-functions/iswpunct_l.texi: Likewise.
28268         * doc/posix-functions/iswspace_l.texi: Likewise.
28269         * doc/posix-functions/iswupper_l.texi: Likewise.
28270         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28271         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28272         * doc/posix-functions/open_wmemstream.texi: Likewise.
28273         * doc/posix-functions/swscanf.texi: Likewise.
28274         * doc/posix-functions/towctrans_l.texi: Likewise.
28275         * doc/posix-functions/towlower.texi: Likewise.
28276         * doc/posix-functions/towlower_l.texi: Likewise.
28277         * doc/posix-functions/towupper.texi: Likewise.
28278         * doc/posix-functions/towupper_l.texi: Likewise.
28279         * doc/posix-functions/vfwprintf.texi: Likewise.
28280         * doc/posix-functions/vfwscanf.texi: Likewise.
28281         * doc/posix-functions/vswscanf.texi: Likewise.
28282         * doc/posix-functions/vwprintf.texi: Likewise.
28283         * doc/posix-functions/vwscanf.texi: Likewise.
28284         * doc/posix-functions/wcpcpy.texi: Likewise.
28285         * doc/posix-functions/wcpncpy.texi: Likewise.
28286         * doc/posix-functions/wcscasecmp.texi: Likewise.
28287         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28288         * doc/posix-functions/wcscoll_l.texi: Likewise.
28289         * doc/posix-functions/wcsdup.texi: Likewise.
28290         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28291         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
28292         * doc/posix-functions/wcsnlen.texi: Likewise.
28293         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28294         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28295         * doc/posix-functions/wctrans_l.texi: Likewise.
28296         * doc/posix-functions/wctype_l.texi: Likewise.
28297         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
28298         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
28299         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
28300         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
28301         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
28302         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
28303         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
28304         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
28305         * doc/glibc-functions/wcschrnul.texi: Likewise.
28306         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28307         * doc/glibc-functions/wcstod_l.texi: Likewise.
28308         * doc/glibc-functions/wcstof_l.texi: Likewise.
28309         * doc/glibc-functions/wcstol_l.texi: Likewise.
28310         * doc/glibc-functions/wcstold_l.texi: Likewise.
28311         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28312         * doc/glibc-functions/wcstoq.texi: Likewise.
28313         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28314         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28315         * doc/glibc-functions/wcstouq.texi: Likewise.
28316         * doc/glibc-functions/wmempcpy.texi: Likewise.
28317
28318 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
28319             Eric Blake  <ebb9@byu.net>
28320             Paolo Bonzini  <bonzini@gnu.org>
28321             Bruno Haible  <bruno@clisp.org>
28322
28323         Make c-stack work on Haiku.
28324         * lib/c-stack.c (SA_ONSTACK): Define fallback.
28325         (c_stack_action): Use SA_ONSTACK flag.
28326
28327 2008-12-22  Bruno Haible  <bruno@clisp.org>
28328
28329         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
28330
28331 2008-12-22  Bruno Haible  <bruno@clisp.org>
28332
28333         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
28334         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28335         being overridden.
28336         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28337         New macros.
28338         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28340         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28341         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28342
28343 2008-12-22  Bruno Haible  <bruno@clisp.org>
28344
28345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28346         from test code.
28347
28348 2008-12-22  Eric Blake  <ebb9@byu.net>
28349
28350         Avoid gcc warnings on cygwin.
28351         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28352         Avoid unused variable.
28353         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28354         Likewise.
28355
28356 2008-12-22  Bruno Haible  <bruno@clisp.org>
28357
28358         Remove HAVE_MBRTOWC conditionals.
28359         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28360         (mbscasecmp): Assume mbrtowc function.
28361         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28362         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28363         * lib/mbschr.c: Include mbuiter.h unconditionally.
28364         (mbschr): Assume mbrtowc function.
28365         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28366         (mbscspn): Assume mbrtowc function.
28367         * lib/mbslen.c: Include mbuiter.h unconditionally.
28368         (mbslen): Assume mbrtowc function.
28369         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28370         (mbsncasecmp): Assume mbrtowc function.
28371         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28372         (mbsnlen): Assume mbrtowc function.
28373         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28374         (mbspbrk): Assume mbrtowc function.
28375         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28376         (mbspcasecmp): Assume mbrtowc function.
28377         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28378         (mbsrchr): Assume mbrtowc function.
28379         * lib/mbssep.c: Include mbuiter.h unconditionally.
28380         (mbssep): Assume mbrtowc function.
28381         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28382         (mbsspn): Assume mbrtowc function.
28383         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28384         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28385         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28386         (mbstok_r): Assume mbrtowc function.
28387         * lib/propername.c: Include mbuiter.h unconditionally.
28388         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28389         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28390         (trim2): Assume mbrtowc function.
28391         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28392         (mbsnwidth): Assume mbrtowc function.
28393         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28394         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28395         fallback definitions.
28396         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28397
28398 2008-12-22  Bruno Haible  <bruno@clisp.org>
28399
28400         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28401
28402 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28403
28404         * modules/regex: Request emulations for the mb*/wc* functions we need.
28405         * m4/regex.m4: Don't look for those functions here.
28406         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28407
28408 2008-12-22  Bruno Haible  <bruno@clisp.org>
28409
28410         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28411
28412 2008-12-21  Bruno Haible  <bruno@clisp.org>
28413
28414         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28415         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28416         (Include): Remove conditionalization.
28417         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28418         (Include): Remove conditionalization.
28419         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28420         (Include): Remove conditionalization.
28421         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28422         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28423         * NEWS: Mention the change.
28424         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28425         via Sergey Poznyakoff <gray@gnu.org.ua>.
28426
28427 2008-12-21  Bruno Haible  <bruno@clisp.org>
28428
28429         * MODULES.html.sh (Extended multibyte and wide character utilities
28430         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28431         wcrtomb, wcsrtombs.
28432         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28433         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28434         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28435         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28436
28437 2008-12-21  Bruno Haible  <bruno@clisp.org>
28438
28439         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28440
28441 2008-12-21  Bruno Haible  <bruno@clisp.org>
28442
28443         * modules/wcsnrtombs-tests: New file.
28444         * tests/test-wcsnrtombs1.sh: New file.
28445         * tests/test-wcsnrtombs2.sh: New file.
28446         * tests/test-wcsnrtombs3.sh: New file.
28447         * tests/test-wcsnrtombs4.sh: New file.
28448         * tests/test-wcsnrtombs.c: New file.
28449
28450         New module 'wcsnrtombs'.
28451         * lib/wchar.in.h (wcsnrtombs): New declaration.
28452         * lib/wcsnrtombs.c: New file.
28453         * lib/wcsrtombs-state.c: New file.
28454         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28455         (internal_state): Remove variable.
28456         * m4/wcsnrtombs.m4: New file.
28457         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28458         compilation units.
28459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28460         HAVE_WCSNRTOMBS.
28461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28462         HAVE_WCSNRTOMBS.
28463         * modules/wcsnrtombs: New file.
28464         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28465         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28466
28467 2008-12-21  Bruno Haible  <bruno@clisp.org>
28468
28469         * modules/wcsrtombs-tests: New file.
28470         * tests/test-wcsrtombs1.sh: New file.
28471         * tests/test-wcsrtombs2.sh: New file.
28472         * tests/test-wcsrtombs3.sh: New file.
28473         * tests/test-wcsrtombs4.sh: New file.
28474         * tests/test-wcsrtombs.c: New file.
28475
28476         New module 'wcsrtombs'.
28477         * lib/wchar.in.h (wcsrtombs): New declaration.
28478         * lib/wcsrtombs.c: New file.
28479         * m4/wcsrtombs.m4: New file.
28480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28481         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28483         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28484         * modules/wcsrtombs: New file.
28485         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28486         bugs.
28487
28488 2008-12-21  Bruno Haible  <bruno@clisp.org>
28489
28490         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28491         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28492         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28493         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28494         if not correct.
28495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28496         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28497         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28498         m4/locale-zh.m4, m4/codeset.m4.
28499         * doc/posix-functions/wcrtomb.texi: Document the bug.
28500
28501 2008-12-21  Bruno Haible  <bruno@clisp.org>
28502
28503         Work around a btowc() bug on IRIX 6.5.
28504         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28505         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28506         REPLACE_WTOBC if not.
28507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28508         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28509         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28510
28511 2008-12-21  Bruno Haible  <bruno@clisp.org>
28512
28513         * modules/wcrtomb-tests: New file.
28514         * tests/test-wcrtomb.sh: New file.
28515         * tests/test-wcrtomb.c: New file.
28516
28517         New module 'wcrtomb'.
28518         * lib/wchar.in.h (wcrtomb): New declaration.
28519         * lib/wcrtomb.c: New file.
28520         * m4/wcrtomb.m4: New file.
28521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28522         HAVE_WCRTOMB.
28523         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28524         HAVE_WCRTOMB.
28525         * modules/wcrtomb: New file.
28526         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28527
28528 2008-12-21  Bruno Haible  <bruno@clisp.org>
28529
28530         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28531         * modules/mbsrtowcs (Files): Likewise.
28532         * modules/wctob (Files): Likewise.
28533         * modules/c-strcase-tests (Files): Likewise.
28534         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28535         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28536         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28537         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28538         * modules/vasnprintf-posix-tests (Files): Likewise.
28539
28540 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28541
28542         gitlog-to-changelog: pass all command-line arguments to git-log
28543         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28544         it is sometimes convenient to filter the commits in various ways.
28545         gitlog-to-changelog only allows --since to specify a start date,
28546         but git-log itself supports many other filtering mechanisms.
28547         At the moment, I want to filter by branch name.  Rather than
28548         adding a --branch option to gitlog-to-changelog, it seems more
28549         flexible to simply pass all options directly to git-log and let
28550         git do the work.  Notice that this effectively makes --since a
28551         redundant option for gitlog-to-changelog, but removing it would
28552         require current usage to change since calls would then require
28553         an additional '--'.
28554
28555 2008-12-21  Bruno Haible  <bruno@clisp.org>
28556
28557         * modules/mbsnrtowcs-tests: New file.
28558         * tests/test-mbsnrtowcs1.sh: New file.
28559         * tests/test-mbsnrtowcs2.sh: New file.
28560         * tests/test-mbsnrtowcs3.sh: New file.
28561         * tests/test-mbsnrtowcs4.sh: New file.
28562         * tests/test-mbsnrtowcs.c: New file.
28563
28564         New module 'mbsnrtowcs'.
28565         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28566         * lib/mbsnrtowcs.c: New file.
28567         * lib/mbsrtowcs-state.c: New file.
28568         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28569         (internal_state): Remove variable.
28570         * m4/mbsnrtowcs.m4: New file.
28571         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28572         compilation units.
28573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28574         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28575         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28576         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28577         * modules/mbsnrtowcs: New file.
28578         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28579         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28580         portability problem.
28581
28582 2008-12-21  Bruno Haible  <bruno@clisp.org>
28583
28584         Work around mbsrtowcs bug.
28585         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28586         (gl_FUNC_MBSRTOWCS): Invoke it.
28587         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28588         m4/locale-zh.m4.
28589         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28590
28591 2008-12-21  Bruno Haible  <bruno@clisp.org>
28592
28593         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28594
28595 2008-12-21  Bruno Haible  <bruno@clisp.org>
28596
28597         Update doc for AIX.
28598         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28599         16-bit wchar_t type.
28600         * doc/posix-functions/btowc.texi: Likewise.
28601         * doc/posix-functions/fgetwc.texi: Likewise.
28602         * doc/posix-functions/fgetws.texi: Likewise.
28603         * doc/posix-functions/fputwc.texi: Likewise.
28604         * doc/posix-functions/fputws.texi: Likewise.
28605         * doc/posix-functions/fwide.texi: Likewise.
28606         * doc/posix-functions/fwprintf.texi: Likewise.
28607         * doc/posix-functions/fwscanf.texi: Likewise.
28608         * doc/posix-functions/getwchar.texi: Likewise.
28609         * doc/posix-functions/getwc.texi: Likewise.
28610         * doc/posix-functions/iswalnum.texi: Likewise.
28611         * doc/posix-functions/iswalpha.texi: Likewise.
28612         * doc/posix-functions/iswblank.texi: Likewise.
28613         * doc/posix-functions/iswcntrl.texi: Likewise.
28614         * doc/posix-functions/iswctype.texi: Likewise.
28615         * doc/posix-functions/iswdigit.texi: Likewise.
28616         * doc/posix-functions/iswgraph.texi: Likewise.
28617         * doc/posix-functions/iswlower.texi: Likewise.
28618         * doc/posix-functions/iswprint.texi: Likewise.
28619         * doc/posix-functions/iswpunct.texi: Likewise.
28620         * doc/posix-functions/iswspace.texi: Likewise.
28621         * doc/posix-functions/iswupper.texi: Likewise.
28622         * doc/posix-functions/iswxdigit.texi: Likewise.
28623         * doc/posix-functions/mbrtowc.texi: Likewise.
28624         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28625         * doc/posix-functions/mbstowcs.texi: Likewise.
28626         * doc/posix-functions/mbtowc.texi: Likewise.
28627         * doc/posix-functions/putwchar.texi: Likewise.
28628         * doc/posix-functions/putwc.texi: Likewise.
28629         * doc/posix-functions/swprintf.texi: Likewise.
28630         * doc/posix-functions/tolower.texi: Likewise.
28631         * doc/posix-functions/toupper.texi: Likewise.
28632         * doc/posix-functions/towctrans.texi: Likewise.
28633         * doc/posix-functions/ungetwc.texi: Likewise.
28634         * doc/posix-functions/vswprintf.texi: Likewise.
28635         * doc/posix-functions/wcrtomb.texi: Likewise.
28636         * doc/posix-functions/wcscat.texi: Likewise.
28637         * doc/posix-functions/wcschr.texi: Likewise.
28638         * doc/posix-functions/wcscmp.texi: Likewise.
28639         * doc/posix-functions/wcscoll.texi: Likewise.
28640         * doc/posix-functions/wcscpy.texi: Likewise.
28641         * doc/posix-functions/wcscspn.texi: Likewise.
28642         * doc/posix-functions/wcsftime.texi: Likewise.
28643         * doc/posix-functions/wcslen.texi: Likewise.
28644         * doc/posix-functions/wcsncat.texi: Likewise.
28645         * doc/posix-functions/wcsncmp.texi: Likewise.
28646         * doc/posix-functions/wcsncpy.texi: Likewise.
28647         * doc/posix-functions/wcspbrk.texi: Likewise.
28648         * doc/posix-functions/wcsrchr.texi: Likewise.
28649         * doc/posix-functions/wcsrtombs.texi: Likewise.
28650         * doc/posix-functions/wcsspn.texi: Likewise.
28651         * doc/posix-functions/wcsstr.texi: Likewise.
28652         * doc/posix-functions/wcstod.texi: Likewise.
28653         * doc/posix-functions/wcstof.texi: Likewise.
28654         * doc/posix-functions/wcstoimax.texi: Likewise.
28655         * doc/posix-functions/wcstok.texi: Likewise.
28656         * doc/posix-functions/wcstold.texi: Likewise.
28657         * doc/posix-functions/wcstoll.texi: Likewise.
28658         * doc/posix-functions/wcstol.texi: Likewise.
28659         * doc/posix-functions/wcstombs.texi: Likewise.
28660         * doc/posix-functions/wcstoull.texi: Likewise.
28661         * doc/posix-functions/wcstoul.texi: Likewise.
28662         * doc/posix-functions/wcstoumax.texi: Likewise.
28663         * doc/posix-functions/wcswidth.texi: Likewise.
28664         * doc/posix-functions/wcsxfrm.texi: Likewise.
28665         * doc/posix-functions/wctob.texi: Likewise.
28666         * doc/posix-functions/wctomb.texi: Likewise.
28667         * doc/posix-functions/wctrans.texi: Likewise.
28668         * doc/posix-functions/wctype.texi: Likewise.
28669         * doc/posix-functions/wcwidth.texi: Likewise.
28670         * doc/posix-functions/wmemchr.texi: Likewise.
28671         * doc/posix-functions/wmemcmp.texi: Likewise.
28672         * doc/posix-functions/wmemcpy.texi: Likewise.
28673         * doc/posix-functions/wmemmove.texi: Likewise.
28674         * doc/posix-functions/wmemset.texi: Likewise.
28675         * doc/posix-functions/wprintf.texi: Likewise.
28676         * doc/posix-functions/wscanf.texi: Likewise.
28677
28678 2008-12-21  Bruno Haible  <bruno@clisp.org>
28679
28680         Update doc for HP-UX 11.11.
28681         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28682         in HP-UX version 11.00, not in all versions of HP-UX 11.
28683         * doc/posix-functions/fwide.texi: Likewise.
28684         * doc/posix-functions/fwprintf.texi: Likewise.
28685         * doc/posix-functions/fwscanf.texi: Likewise.
28686         * doc/posix-functions/inet_ntop.texi: Likewise.
28687         * doc/posix-functions/inet_pton.texi: Likewise.
28688         * doc/posix-functions/mbrlen.texi: Likewise.
28689         * doc/posix-functions/mbrtowc.texi: Likewise.
28690         * doc/posix-functions/mbsinit.texi: Likewise.
28691         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28692         * doc/posix-functions/swprintf.texi: Likewise.
28693         * doc/posix-functions/swscanf.texi: Likewise.
28694         * doc/posix-functions/towctrans.texi: Likewise.
28695         * doc/posix-functions/vfwprintf.texi: Likewise.
28696         * doc/posix-functions/vswprintf.texi: Likewise.
28697         * doc/posix-functions/vwprintf.texi: Likewise.
28698         * doc/posix-functions/wcrtomb.texi: Likewise.
28699         * doc/posix-functions/wcsrtombs.texi: Likewise.
28700         * doc/posix-functions/wcsstr.texi: Likewise.
28701         * doc/posix-functions/wctob.texi: Likewise.
28702         * doc/posix-functions/wctrans.texi: Likewise.
28703         * doc/posix-functions/wmemchr.texi: Likewise.
28704         * doc/posix-functions/wmemcmp.texi: Likewise.
28705         * doc/posix-functions/wmemcpy.texi: Likewise.
28706         * doc/posix-functions/wmemmove.texi: Likewise.
28707         * doc/posix-functions/wmemset.texi: Likewise.
28708         * doc/posix-functions/wprintf.texi: Likewise.
28709         * doc/posix-functions/wscanf.texi: Likewise.
28710
28711 2008-12-21  Bruno Haible  <bruno@clisp.org>
28712
28713         Work around a portability problem.
28714         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28715         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28716
28717 2008-12-20  Bruno Haible  <bruno@clisp.org>
28718
28719         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28721         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28723         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28724
28725         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28726         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28727         set.
28728         (GNULIB_defined_mbstate_t): New macro.
28729         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28730         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28731         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28732         reuses the system's mbrtowc function but works around the bugs.
28733         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28735         macros.
28736         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28737         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28738         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28740         REPLACE_MBSINIT if mbsinit needs to be overridden.
28741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28742         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28743         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28744         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28745         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28746         m4/locale-zh.m4.
28747         (Depends): Add mbsinit.
28748         * modules/mbsinit (Depends): Add mbrtowc.
28749         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28750
28751 2008-12-20  Bruno Haible  <bruno@clisp.org>
28752
28753         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28754         so that there are no conversion errors on AIX.
28755         * tests/test-mbsrtowcs.c (main): LIkewise.
28756
28757 2008-12-20  Bruno Haible  <bruno@clisp.org>
28758
28759         Work around wctob bug on Solaris <= 9.
28760         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28761         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28763         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28764         * modules/wctob (Files): Add m4/locale-fr.m4.
28765         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28766
28767 2008-12-20  Bruno Haible  <bruno@clisp.org>
28768
28769         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28770         /dev/null.
28771         * tests/test-select-in.sh: Likewise.
28772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28773
28774 2008-12-20  Bruno Haible  <bruno@clisp.org>
28775
28776         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28777         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28778         Cygwin 1.5.x.
28779
28780 2008-12-20  Bruno Haible  <bruno@clisp.org>
28781
28782         Ensure mbstate_t is defined on HP-UX 11.11.
28783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28784         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28785         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28786         AC_USE_SYSTEM_EXTENSIONS.
28787         * modules/fnmatch (Depends-on): Add extensions.
28788         * modules/mbrlen (Depends-on): Likewise.
28789         * modules/mbrtowc (Depends-on): Likewise.
28790         * modules/mbsinit (Depends-on): Likewise.
28791         * modules/mbsrtowcs (Depends-on): Likewise.
28792         * modules/mbswidth (Depends-on): Likewise.
28793         * modules/quotearg (Depends-on): Likewise.
28794         * modules/strftime (Depends-on): Likewise.
28795
28796 2008-12-20  Bruno Haible  <bruno@clisp.org>
28797
28798         Ensure wctob is declared on IRIX 6.5.
28799         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28800         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28801         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28803         of HAVE_WCTOB.
28804         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28805         HAVE_WCTOB.
28806         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28807
28808 2008-12-19  Bruno Haible  <bruno@clisp.org>
28809
28810         * modules/mbsrtowcs-tests: New file.
28811         * tests/test-mbsrtowcs1.sh: New file.
28812         * tests/test-mbsrtowcs2.sh: New file.
28813         * tests/test-mbsrtowcs3.sh: New file.
28814         * tests/test-mbsrtowcs4.sh: New file.
28815         * tests/test-mbsrtowcs.c: New file.
28816
28817         New module 'mbsrtowcs'.
28818         * lib/wchar.in.h (mbsrtowcs): New declaration.
28819         * lib/mbsrtowcs.c: New file.
28820         * m4/mbsrtowcs.m4: New file.
28821         * modules/mbsrtowcs: New file.
28822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28823         HAVE_MBSRTOWCS.
28824         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28825         HAVE_MBSRTOWCS.
28826         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28827
28828 2008-12-19  Bruno Haible  <bruno@clisp.org>
28829
28830         New module 'mbrlen'.
28831         * lib/wchar.in.h (mbrlen): New declaration.
28832         * lib/mbrlen.c: New file.
28833         * m4/mbrlen.m4: New file.
28834         * modules/mbrlen: New file.
28835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28836         HAVE_MBRLEN.
28837         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28838         HAVE_MBRLEN.
28839         * doc/posix-functions/mbrlen.texi: Document the new module.
28840
28841 2008-12-19  Bruno Haible  <bruno@clisp.org>
28842
28843         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28844         * modules/mbrtowc (Depends-on): Add verify.
28845         Suggested by Paul Eggert.
28846
28847 2008-12-18  Bruno Haible  <bruno@clisp.org>
28848
28849         * modules/mbsinit-tests: New file.
28850         * tests/test-mbsinit.sh: New file.
28851         * tests/test-mbsinit.c: New file.
28852
28853 2008-12-18  Bruno Haible  <bruno@clisp.org>
28854
28855         * modules/mbrtowc-tests: New file.
28856         * tests/test-mbrtowc1.sh: New file.
28857         * tests/test-mbrtowc2.sh: New file.
28858         * tests/test-mbrtowc3.sh: New file.
28859         * tests/test-mbrtowc4.sh: New file.
28860         * tests/test-mbrtowc.c: New file.
28861
28862         New module 'mbrtowc'.
28863         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28864         mbsinit and mbrtowc.
28865         (mbrtowc): New declaration.
28866         * lib/mbrtowc.c: New file.
28867         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28868         * modules/mbrtowc: New file.
28869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28870         HAVE_MBRTOWC.
28871         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28872         HAVE_MBRTOWC.
28873         * doc/posix-functions/mbrtowc.texi: Document the new module.
28874
28875 2008-12-18  Bruno Haible  <bruno@clisp.org>
28876
28877         New module 'wctob'.
28878         * lib/wchar.in.h (wctob): New declaration.
28879         * lib/wctob.c: New file.
28880         * m4/wctob.m4: New file.
28881         * modules/wctob: New file.
28882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28883         HAVE_WCTOB.
28884         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28885         * doc/posix-functions/wctob.texi: Document the new module.
28886
28887 2008-12-18  Bruno Haible  <bruno@clisp.org>
28888
28889         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28890         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28891
28892 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28893
28894         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28895         G. Christensen" <tgc@jupiterrise.com>.
28896
28897         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28898         G. Christensen" <tgc@jupiterrise.com>.
28899
28900         * lib/flock.c: Need to include string.h.  Reported by "Tom
28901         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28902         <ebb9@byu.net>.
28903
28904 2008-12-18  Bruno Haible  <bruno@clisp.org>
28905
28906         * m4/locale-ja.m4: New file, from GNU gettext.
28907
28908 2008-12-17  Bruno Haible  <bruno@clisp.org>
28909
28910         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28911         Suggested by Eric Blake.
28912
28913 2008-12-17  Bruno Haible  <bruno@clisp.org>
28914
28915         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28916
28917 2008-12-17  Bruno Haible  <bruno@clisp.org>
28918
28919         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28920         * modules/mbsinit (Depends-on): Add verify.
28921         Suggested by Paul Eggert.
28922
28923 2008-12-17  Bruno Haible  <bruno@clisp.org>
28924
28925         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28926         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28927         gl_FUNC_MBRTOWC.
28928         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28929         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28930         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28931         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28932         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28933         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28934         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28935         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28936         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28937         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28938         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28939         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28940         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28941         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28942         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28943         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28944         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28945         * modules/trim (configure.ac): Likewise.
28946
28947 2008-12-17  Bruno Haible  <bruno@clisp.org>
28948
28949         * modules/btowc-tests: New file.
28950         * tests/test-btowc1.sh: New file.
28951         * tests/test-btowc2.sh: New file.
28952         * tests/test-btowc.c: New file.
28953
28954         New module 'btowc'.
28955         * lib/wchar.in.h (btowc): New declaration.
28956         * lib/btowc.c: New file.
28957         * m4/btowc.m4: New file.
28958         * modules/btowc: New file.
28959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28960         HAVE_BTOWC.
28961         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28962         * doc/posix-functions/btowc.texi: Document the new module.
28963
28964 2008-12-17  Bruno Haible  <bruno@clisp.org>
28965
28966         New module 'mbsinit'.
28967         * lib/wchar.in.h (mbsinit): New declaration.
28968         * lib/mbsinit.c: New file.
28969         * m4/mbsinit.m4: New file.
28970         * modules/mbsinit: New file.
28971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28972         HAVE_MBSINIT.
28973         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28974         HAVE_MBSINIT.
28975         * doc/posix-functions/mbsinit.texi: Document the new module.
28976
28977 2008-12-16  Bruno Haible  <bruno@clisp.org>
28978
28979         * lib/unistd.in.h: Add comment.
28980         * tests/test-environ.c: Don't include <stdlib.h>.
28981
28982 2008-12-16  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/parse-duration.h (parse_duration): Document return value
28985         convention.
28986         * lib/parse-duration.c: Include specification header first. Add
28987         comments.
28988         (_): Remove macro.
28989         (parse_year_month_day, parse_hour_minute_second): Move side effects
28990         outside of strchr call.
28991         (parse_non_iso8601): Move side effects outside of isspace call.
28992         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28993         call.
28994
28995 2008-12-16  Bruno Haible  <bruno@clisp.org>
28996
28997         * tests/test-parse-duration.sh: Produce no output when the test
28998         succeeds.
28999
29000 2008-12-16  Bruno Haible  <bruno@clisp.org>
29001
29002         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29003         expressions.
29004
29005 2008-12-15  Bruno Haible  <bruno@clisp.org>
29006
29007         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29008         * doc/glibc-functions/flistxattr.texi: Likewise.
29009         * doc/glibc-functions/fopencookie.texi: Likewise.
29010         * doc/glibc-functions/fremovexattr.texi: Likewise.
29011         * doc/glibc-functions/fsetxattr.texi: Likewise.
29012         * doc/glibc-functions/getxattr.texi: Likewise.
29013         * doc/glibc-functions/lgetxattr.texi: Likewise.
29014         * doc/glibc-functions/listxattr.texi: Likewise.
29015         * doc/glibc-functions/llistxattr.texi: Likewise.
29016         * doc/glibc-functions/lremovexattr.texi: Likewise.
29017         * doc/glibc-functions/lsetxattr.texi: Likewise.
29018         * doc/glibc-functions/removexattr.texi: Likewise.
29019         * doc/glibc-functions/setxattr.texi: Likewise.
29020         * doc/posix-functions/open_memstream.texi: Likewise.
29021
29022 2008-12-15  Eric Blake  <ebb9@byu.net>
29023
29024         Update doc for cygwin 1.7.
29025         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29026         functions.
29027         * doc/posix-functions/fchmodat.texi: Likewise.
29028         * doc/posix-functions/fchownat.texi: Likewise.
29029         * doc/posix-functions/fdopendir.texi: Likewise.
29030         * doc/posix-functions/fmemopen.texi: Likewise.
29031         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29032         * doc/posix-functions/fstatat.texi: Likewise.
29033         * doc/posix-functions/futimens.texi: Likewise.
29034         * doc/posix-functions/gai_strerror.texi: Likewise.
29035         * doc/posix-functions/getaddrinfo.texi: Likewise.
29036         * doc/posix-functions/getnameinfo.texi: Likewise.
29037         * doc/posix-functions/if_freenameindex.texi: Likewise.
29038         * doc/posix-functions/if_indextoname.texi: Likewise.
29039         * doc/posix-functions/if_nameindex.texi: Likewise.
29040         * doc/posix-functions/if_nametoindex.texi: Likewise.
29041         * doc/posix-functions/insque.texi: Likewise.
29042         * doc/posix-functions/linkat.texi: Likewise.
29043         * doc/posix-functions/llrint.texi: Likewise.
29044         * doc/posix-functions/llrintf.texi: Likewise.
29045         * doc/posix-functions/llrintl.texi: Likewise.
29046         * doc/posix-functions/lockf.texi: Likewise.
29047         * doc/posix-functions/lrintl.texi: Likewise.
29048         * doc/posix-functions/mkdirat.texi: Likewise.
29049         * doc/posix-functions/mkfifoat.texi: Likewise.
29050         * doc/posix-functions/mknodat.texi: Likewise.
29051         * doc/posix-functions/mq_close.texi: Likewise.
29052         * doc/posix-functions/mq_getattr.texi: Likewise.
29053         * doc/posix-functions/mq_notify.texi: Likewise.
29054         * doc/posix-functions/mq_open.texi: Likewise.
29055         * doc/posix-functions/mq_receive.texi: Likewise.
29056         * doc/posix-functions/mq_send.texi: Likewise.
29057         * doc/posix-functions/mq_setattr.texi: Likewise.
29058         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29059         * doc/posix-functions/mq_timedsend.texi: Likewise.
29060         * doc/posix-functions/mq_unlink.texi: Likewise.
29061         * doc/posix-functions/open_memstream.texi: Likewise.
29062         * doc/posix-functions/openat.texi: Likewise.
29063         * doc/posix-functions/posix_fadvise.texi: Likewise.
29064         * doc/posix-functions/posix_fallocate.texi: Likewise.
29065         * doc/posix-functions/posix_madvise.texi: Likewise.
29066         * doc/posix-functions/posix_memalign.texi: Likewise.
29067         * doc/posix-functions/posix_openpt.texi: Likewise.
29068         * doc/posix-functions/readlinkat.texi: Likewise.
29069         * doc/posix-functions/remque.texi: Likewise.
29070         * doc/posix-functions/renameat.texi: Likewise.
29071         * doc/posix-functions/rintl.texi: Likewise.
29072         * doc/posix-functions/sem_unlink.texi: Likewise.
29073         * doc/posix-functions/shm_open.texi: Likewise.
29074         * doc/posix-functions/shm_unlink.texi: Likewise.
29075         * doc/posix-functions/signgam.texi: Likewise.
29076         * doc/posix-functions/sigset.texi: Likewise.
29077         * doc/posix-functions/stpcpy.texi: Likewise.
29078         * doc/posix-functions/stpncpy.texi: Likewise.
29079         * doc/posix-functions/strerror.texi: Likewise.
29080         * doc/posix-functions/strtod.texi: Likewise.
29081         * doc/posix-functions/symlinkat.texi: Likewise.
29082         * doc/posix-functions/unlinkat.texi: Likewise.
29083         * doc/posix-functions/utimensat.texi: Likewise.
29084         * doc/glibc-functions/bindresvport.texi: Likewise.
29085         * doc/glibc-functions/dn_expand.texi: Likewise.
29086         * doc/glibc-functions/exp10.texi: Likewise.
29087         * doc/glibc-functions/exp10f.texi: Likewise.
29088         * doc/glibc-functions/fgetxattr.texi: Likewise.
29089         * doc/glibc-functions/flistxattr.texi: Likewise.
29090         * doc/glibc-functions/fopencookie.texi: Likewise.
29091         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29092         * doc/glibc-functions/fremovexattr.texi: Likewise.
29093         * doc/glibc-functions/fsetxattr.texi: Likewise.
29094         * doc/glibc-functions/getifaddrs.texi: Likewise.
29095         * doc/glibc-functions/getxattr.texi: Likewise.
29096         * doc/glibc-functions/lgetxattr.texi: Likewise.
29097         * doc/glibc-functions/listxattr.texi: Likewise.
29098         * doc/glibc-functions/llistxattr.texi: Likewise.
29099         * doc/glibc-functions/lremovexattr.texi: Likewise.
29100         * doc/glibc-functions/lsetxattr.texi: Likewise.
29101         * doc/glibc-functions/pow10.texi: Likewise.
29102         * doc/glibc-functions/pow10f.texi: Likewise.
29103         * doc/glibc-functions/rcmd_af.texi: Likewise.
29104         * doc/glibc-functions/removexattr.texi: Likewise.
29105         * doc/glibc-functions/res_init.texi: Likewise.
29106         * doc/glibc-functions/res_mkquery.texi: Likewise.
29107         * doc/glibc-functions/res_query.texi: Likewise.
29108         * doc/glibc-functions/res_querydomain.texi: Likewise.
29109         * doc/glibc-functions/res_send.texi: Likewise.
29110         * doc/glibc-functions/rresvport_af.texi: Likewise.
29111         * doc/glibc-functions/setxattr.texi: Likewise.
29112         * doc/glibc-functions/strcasestr.texi: Likewise.
29113
29114 2008-12-15  Bruno Haible  <bruno@clisp.org>
29115
29116         Fix compilation error on OSF/1 4.0.
29117         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29118         <sys/time.h>, simply delegate to the system header.
29119         Reported by Daniel Richard G. <oss@teragram.com>.
29120
29121 2008-12-15  Bruno Haible  <bruno@clisp.org>
29122
29123         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29124         * doc/posix-functions/fchmodat.texi: Likewise.
29125         * doc/posix-functions/fchownat.texi: Likewise.
29126         * doc/posix-functions/fdopendir.texi: Likewise.
29127         * doc/posix-functions/fstatat.texi: Likewise.
29128         * doc/posix-functions/mkdirat.texi: Likewise.
29129         * doc/posix-functions/unlinkat.texi: Likewise.
29130
29131 2008-12-14  Bruno Haible  <bruno@clisp.org>
29132
29133         Update doc for POSIX:2008.
29134         * doc/posix-functions/faccessat.texi: New file.
29135         * doc/posix-functions/fchmodat.texi: New file.
29136         * doc/posix-functions/fchownat.texi: New file.
29137         * doc/posix-functions/fdopendir.texi: New file.
29138         * doc/posix-functions/fstatat.texi: New file.
29139         * doc/posix-functions/futimens.texi: New file.
29140         * doc/posix-functions/linkat.texi: New file.
29141         * doc/posix-functions/mkdirat.texi: New file.
29142         * doc/posix-functions/mkfifoat.texi: New file.
29143         * doc/posix-functions/mknodat.texi: New file.
29144         * doc/posix-functions/open_wmemstream.texi: New file.
29145         * doc/posix-functions/openat.texi: New file.
29146         * doc/posix-functions/psiginfo.texi: New file.
29147         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29148         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29149         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29150         * doc/posix-functions/readlinkat.texi: New file.
29151         * doc/posix-functions/renameat.texi: New file.
29152         * doc/posix-functions/strerror_l.texi: New file.
29153         * doc/posix-functions/symlinkat.texi: New file.
29154         * doc/posix-functions/unlinkat.texi: New file.
29155         * doc/posix-functions/utimensat.texi: New file.
29156         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29157
29158 2008-12-14  Bruno Haible  <bruno@clisp.org>
29159
29160         Update doc for POSIX:2008.
29161         * doc/posix-functions/alphasort.texi: Renamed from
29162         doc/glibc-functions/alphasort.texi.
29163         * doc/posix-functions/dirfd.texi: Renamed from
29164         doc/glibc-functions/dirfd.texi.
29165         * doc/posix-functions/dprintf.texi: Renamed from
29166         doc/glibc-functions/dprintf.texi.
29167         * doc/posix-functions/duplocale.texi: Renamed from
29168         doc/glibc-functions/duplocale.texi.
29169         * doc/posix-functions/fexecve.texi: Renamed from
29170         doc/glibc-functions/fexecve.texi.
29171         * doc/posix-functions/fmemopen.texi: Renamed from
29172         doc/glibc-functions/fmemopen.texi.
29173         * doc/posix-functions/freelocale.texi: Renamed from
29174         doc/glibc-functions/freelocale.texi.
29175         * doc/posix-functions/getdate_err.texi: Renamed from
29176         doc/glibc-functions/getdate_err.texi.
29177         * doc/posix-functions/isalnum_l.texi: Renamed from
29178         doc/glibc-functions/isalnum_l.texi.
29179         * doc/posix-functions/isalpha_l.texi: Renamed from
29180         doc/glibc-functions/isalpha_l.texi.
29181         * doc/posix-functions/isblank_l.texi: Renamed from
29182         doc/glibc-functions/isblank_l.texi.
29183         * doc/posix-functions/iscntrl_l.texi: Renamed from
29184         doc/glibc-functions/iscntrl_l.texi.
29185         * doc/posix-functions/isdigit_l.texi: Renamed from
29186         doc/glibc-functions/isdigit_l.texi.
29187         * doc/posix-functions/isgraph_l.texi: Renamed from
29188         doc/glibc-functions/isgraph_l.texi.
29189         * doc/posix-functions/islower_l.texi: Renamed from
29190         doc/glibc-functions/islower_l.texi.
29191         * doc/posix-functions/isprint_l.texi: Renamed from
29192         doc/glibc-functions/isprint_l.texi.
29193         * doc/posix-functions/ispunct_l.texi: Renamed from
29194         doc/glibc-functions/ispunct_l.texi.
29195         * doc/posix-functions/isspace_l.texi: Renamed from
29196         doc/glibc-functions/isspace_l.texi.
29197         * doc/posix-functions/isupper_l.texi: Renamed from
29198         doc/glibc-functions/isupper_l.texi.
29199         * doc/posix-functions/iswalnum_l.texi: Renamed from
29200         doc/glibc-functions/iswalnum_l.texi.
29201         * doc/posix-functions/iswalpha_l.texi: Renamed from
29202         doc/glibc-functions/iswalpha_l.texi.
29203         * doc/posix-functions/iswblank_l.texi: Renamed from
29204         doc/glibc-functions/iswblank_l.texi.
29205         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29206         doc/glibc-functions/iswcntrl_l.texi.
29207         * doc/posix-functions/iswctype_l.texi: Renamed from
29208         doc/glibc-functions/iswctype_l.texi.
29209         * doc/posix-functions/iswdigit_l.texi: Renamed from
29210         doc/glibc-functions/iswdigit_l.texi.
29211         * doc/posix-functions/iswgraph_l.texi: Renamed from
29212         doc/glibc-functions/iswgraph_l.texi.
29213         * doc/posix-functions/iswlower_l.texi: Renamed from
29214         doc/glibc-functions/iswlower_l.texi.
29215         * doc/posix-functions/iswprint_l.texi: Renamed from
29216         doc/glibc-functions/iswprint_l.texi.
29217         * doc/posix-functions/iswpunct_l.texi: Renamed from
29218         doc/glibc-functions/iswpunct_l.texi.
29219         * doc/posix-functions/iswspace_l.texi: Renamed from
29220         doc/glibc-functions/iswspace_l.texi.
29221         * doc/posix-functions/iswupper_l.texi: Renamed from
29222         doc/glibc-functions/iswupper_l.texi.
29223         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29224         doc/glibc-functions/iswxdigit_l.texi.
29225         * doc/posix-functions/isxdigit_l.texi: Renamed from
29226         doc/glibc-functions/isxdigit_l.texi.
29227         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29228         doc/glibc-functions/mbsnrtowcs.texi.
29229         * doc/posix-functions/mkdtemp.texi: Renamed from
29230         doc/glibc-functions/mkdtemp.texi.
29231         * doc/posix-functions/newlocale.texi: Renamed from
29232         doc/glibc-functions/newlocale.texi.
29233         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29234         doc/glibc-functions/nl_langinfo_l.texi.
29235         * doc/posix-functions/open_memstream.texi: Renamed from
29236         doc/glibc-functions/open_memstream.texi.
29237         * doc/posix-functions/opterr.texi: Renamed from
29238         doc/glibc-functions/opterr.texi.
29239         * doc/posix-functions/optind.texi: Renamed from
29240         doc/glibc-functions/optind.texi.
29241         * doc/posix-functions/optopt.texi: Renamed from
29242         doc/glibc-functions/optopt.texi.
29243         * doc/posix-functions/psignal.texi: Renamed from
29244         doc/glibc-functions/psignal.texi.
29245         * doc/posix-functions/scandir.texi: Renamed from
29246         doc/glibc-functions/scandir.texi.
29247         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29248         doc/glibc-functions/sched_get_priority_min.texi.
29249         * doc/posix-functions/signgam.texi: Renamed from
29250         doc/glibc-functions/signgam.texi.
29251         * doc/posix-functions/stpcpy.texi: Renamed from
29252         doc/glibc-functions/stpcpy.texi.
29253         * doc/posix-functions/stpncpy.texi: Renamed from
29254         doc/glibc-functions/stpncpy.texi.
29255         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29256         doc/glibc-functions/strcasecmp_l.texi.
29257         * doc/posix-functions/strcoll_l.texi: Renamed from
29258         doc/glibc-functions/strcoll_l.texi.
29259         * doc/posix-functions/strfmon_l.texi: Renamed from
29260         doc/glibc-functions/strfmon_l.texi.
29261         * doc/posix-functions/strftime_l.texi: Renamed from
29262         doc/glibc-functions/strftime_l.texi.
29263         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29264         doc/glibc-functions/strncasecmp_l.texi.
29265         * doc/posix-functions/strndup.texi: Renamed from
29266         doc/glibc-functions/strndup.texi.
29267         * doc/posix-functions/strnlen.texi: Renamed from
29268         doc/glibc-functions/strnlen.texi.
29269         * doc/posix-functions/strsignal.texi: Renamed from
29270         doc/glibc-functions/strsignal.texi.
29271         * doc/posix-functions/strxfrm_l.texi: Renamed from
29272         doc/glibc-functions/strxfrm_l.texi.
29273         * doc/posix-functions/timer_gettime.texi: Renamed from
29274         doc/glibc-functions/timer_gettime.texi.
29275         * doc/posix-functions/tolower_l.texi: Renamed from
29276         doc/glibc-functions/tolower_l.texi.
29277         * doc/posix-functions/toupper_l.texi: Renamed from
29278         doc/glibc-functions/toupper_l.texi.
29279         * doc/posix-functions/towctrans_l.texi: Renamed from
29280         doc/glibc-functions/towctrans_l.texi.
29281         * doc/posix-functions/towlower_l.texi: Renamed from
29282         doc/glibc-functions/towlower_l.texi.
29283         * doc/posix-functions/towupper_l.texi: Renamed from
29284         doc/glibc-functions/towupper_l.texi.
29285         * doc/posix-functions/uselocale.texi: Renamed from
29286         doc/glibc-functions/uselocale.texi.
29287         * doc/posix-functions/vdprintf.texi: Renamed from
29288         doc/glibc-functions/vdprintf.texi.
29289         * doc/posix-functions/wcpcpy.texi:
29290         Renamed from doc/glibc-functions/wcpcpy.texi.
29291         * doc/posix-functions/wcpncpy.texi: Renamed from
29292         doc/glibc-functions/wcpncpy.texi.
29293         * doc/posix-functions/wcscasecmp.texi: Renamed from
29294         doc/glibc-functions/wcscasecmp.texi.
29295         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
29296         doc/glibc-functions/wcscasecmp_l.texi.
29297         * doc/posix-functions/wcscoll_l.texi: Renamed from
29298         doc/glibc-functions/wcscoll_l.texi.
29299         * doc/posix-functions/wcsdup.texi: Renamed from
29300         doc/glibc-functions/wcsdup.texi.
29301         * doc/posix-functions/wcsncasecmp.texi: Renamed from
29302         doc/glibc-functions/wcsncasecmp.texi.
29303         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
29304         doc/glibc-functions/wcsncasecmp_l.texi.
29305         * doc/posix-functions/wcsnlen.texi: Renamed from
29306         doc/glibc-functions/wcsnlen.texi.
29307         * doc/posix-functions/wcsnrtombs.texi: Renamed from
29308         doc/glibc-functions/wcsnrtombs.texi.
29309         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
29310         doc/glibc-functions/wcsxfrm_l.texi.
29311         * doc/posix-functions/wctrans_l.texi: Renamed from
29312         doc/glibc-functions/wctrans_l.texi.
29313         * doc/posix-functions/wctype_l.texi: Renamed from
29314         doc/glibc-functions/wctype_l.texi.
29315         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29316         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
29317         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
29318         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
29319         these subsections.
29320         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
29321         Remove sections.
29322
29323 2008-12-14  Bruno Haible  <bruno@clisp.org>
29324
29325         Update doc for POSIX:2008.
29326         * doc/posix-functions/*.texi: Update URL of POSIX specification.
29327
29328 2008-12-14  Bruno Haible  <bruno@clisp.org>
29329
29330         Update doc for POSIX:2008.
29331         * doc/pastposix-functions/bcmp.texi: Renamed from
29332         doc/posix-functions/bcmp.texi.
29333         * doc/pastposix-functions/bcopy.texi: Renamed from
29334         doc/posix-functions/bcopy.texi.
29335         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29336         doc/posix-functions/bsd_signal.texi.
29337         * doc/pastposix-functions/bzero.texi: Renamed from
29338         doc/posix-functions/bzero.texi.
29339         * doc/pastposix-functions/ecvt.texi: Renamed from
29340         doc/posix-functions/ecvt.texi.
29341         * doc/pastposix-functions/fcvt.texi: Renamed from
29342         doc/posix-functions/fcvt.texi.
29343         * doc/pastposix-functions/ftime.texi: Renamed from
29344         doc/posix-functions/ftime.texi.
29345         * doc/pastposix-functions/gcvt.texi: Renamed from
29346         doc/posix-functions/gcvt.texi.
29347         * doc/pastposix-functions/getcontext.texi: Renamed from
29348         doc/posix-functions/getcontext.texi.
29349         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29350         doc/posix-functions/gethostbyaddr.texi.
29351         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29352         doc/posix-functions/gethostbyname.texi.
29353         * doc/pastposix-functions/getwd.texi: Renamed from
29354         doc/posix-functions/getwd.texi.
29355         * doc/pastposix-functions/h_errno.texi: Renamed from
29356         doc/posix-functions/h_errno.texi.
29357         * doc/pastposix-functions/index.texi: Renamed from
29358         doc/posix-functions/index.texi.
29359         * doc/pastposix-functions/makecontext.texi: Renamed from
29360         doc/posix-functions/makecontext.texi.
29361         * doc/pastposix-functions/mktemp.texi: Renamed from
29362         doc/posix-functions/mktemp.texi.
29363         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29364         doc/posix-functions/pthread_attr_getstackaddr.texi.
29365         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29366         doc/posix-functions/pthread_attr_setstackaddr.texi.
29367         * doc/pastposix-functions/rindex.texi: Renamed from
29368         doc/posix-functions/rindex.texi.
29369         * doc/pastposix-functions/scalb.texi: Renamed from
29370         doc/posix-functions/scalb.texi.
29371         * doc/pastposix-functions/setcontext.texi: Renamed from
29372         doc/posix-functions/setcontext.texi.
29373         * doc/pastposix-functions/swapcontext.texi: Renamed from
29374         doc/posix-functions/swapcontext.texi.
29375         * doc/pastposix-functions/ualarm.texi: Renamed from
29376         doc/posix-functions/ualarm.texi.
29377         * doc/pastposix-functions/usleep.texi: Renamed from
29378         doc/posix-functions/usleep.texi.
29379         * doc/pastposix-functions/vfork.texi: Renamed from
29380         doc/posix-functions/vfork.texi.
29381         * doc/pastposix-functions/wcswcs.texi: Renamed from
29382         doc/posix-functions/wcswcs.texi.
29383         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29384         (Function Substitutes): Update.
29385
29386 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29387
29388         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29389         m4/strerror.m4.
29390
29391 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29392             Bruno Haible  <bruno@clisp.org>
29393
29394         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29395
29396 2008-12-13  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/strtoull (Depends-on): Remove unistd.
29399
29400 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29401
29402         * modules/strtoull (Depends-on): Add stdlib.
29403
29404 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29405
29406         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29407
29408 2008-12-10  Jim Meyering  <meyering@redhat.com>
29409
29410         gl_ASSERT: don't say assertions are disabled when they're not
29411         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29412         "checking whether to enable assertions... no", when they are in
29413         fact enabled.  This is solely a bug in the output of configure.
29414         In spite of saying "no", NDEBUG was not defined in that case.
29415         Also, as noted by Eric Blake, leave assertions enabled upon
29416         --enable-assert=INVALID.
29417
29418 2008-12-10  Bruno Haible  <bruno@clisp.org>
29419
29420         Change MODULES.html to refer to POSIX:2008 where possible.
29421         * MODULES.html.sh (POSIX2008_URL): New variable.
29422         (posix_headers): Remove sys/timeb, ucontext.
29423         (posix2001_headers): New variable.
29424         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29425         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29426         index, makecontext, mktemp, pthread_attr_getstackaddr,
29427         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29428         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29429         (posix2001_functions): New variable.
29430         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29431         otherwise.
29432
29433 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29434
29435         add missing include to parse-duration.c
29436         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29437         * modules/parse-duration (Depends-on): Add xalloc.
29438
29439         fix sed script reading maint.mk
29440         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29441         (syntax-check-rules): Use it.
29442
29443 2008-12-09  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29446         MacOS X 10.4/PowerPC.
29447         Reported by Simon Josefsson.
29448
29449 2008-12-08  Jim Meyering  <meyering@redhat.com>
29450
29451         work around mingw's lack of some S_IF definitions
29452         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29453         Reported by Simon Josefsson.
29454
29455 2008-12-08  Bruno Haible  <bruno@clisp.org>
29456
29457         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29458         applied to variables. Needed on MacOS X 10.4/PowerPC.
29459         Reported by Simon Josefsson.
29460
29461 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29462         and Eric Blake  <ebb9@byu.net>
29463
29464         assert: honor --enable-assert
29465         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29466         order to honor --enable-assert, rather than treating it as a
29467         synonym for --disable-assert.
29468
29469 2008-12-08  Jim Meyering  <meyering@redhat.com>
29470
29471         * lib/posixtm.c: Remove now-useless declaration of mktime.
29472
29473         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29474
29475 2008-12-07  Bruno Haible  <bruno@clisp.org>
29476
29477         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29478         test_once): Mark functions as static.
29479         * tests/test-tls.c (test_tls): Likewise.
29480
29481 2008-12-07  Bruno Haible  <bruno@clisp.org>
29482
29483         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29484         iconv_register_autodetect.
29485
29486 2008-12-07  Jim Meyering  <meyering@redhat.com>
29487
29488         posixtm.c: avoid a warning
29489         * lib/posixtm.c (posixtime): Don't initialize tm0.
29490         It's no longer needed to placate gcc4's -Wuninitialized,
29491         and the attempt to placate would elicit a new warning.
29492
29493         unicodeio.c: mark unused parameters
29494         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29495         (fallback_failure_callback): Likewise.
29496
29497 2008-12-07  Bruno Haible  <bruno@clisp.org>
29498
29499         * gnulib-tool (func_create_testdir): When building the tests
29500         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29501         Reported by Simon Josefsson.
29502
29503 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29504
29505         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29506
29507 2008-12-06  Bruno Haible  <bruno@clisp.org>
29508
29509         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29510         Suggested by Eric Blake.
29511
29512 2008-12-06  Bruno Haible  <bruno@clisp.org>
29513
29514         Fix a c-stack test failure on MacOS X.
29515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29516         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29517         handler for SIGBUS as well.
29518         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29519         install a signal handler for SIGBUS as well.
29520         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29521
29522 2008-12-06  Bruno Haible  <bruno@clisp.org>
29523
29524         Advocacy documentation.
29525         * doc/gnulib-intro.texi (Benefits): New section.
29526         * doc/gnulib.texi: Update.
29527
29528 2008-12-06  Bruno Haible  <bruno@clisp.org>
29529
29530         Document the 'manywarnings' module.
29531         * doc/manywarnings.texi: New file.
29532         * doc/gnulib.texi: Include it.
29533
29534 2008-12-05  Eric Blake  <ebb9@byu.net>
29535
29536         tests: silence some gcc warnings
29537         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29538         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29539         type mismatches.
29540
29541 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29542             Bruno Haible  <bruno@clisp.org>
29543
29544         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29545
29546 2008-11-29  Jim Meyering  <meyering@redhat.com>
29547
29548         unicodeio.c: mark unused parameters
29549         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29550         (fallback_failure_callback): Likewise.
29551
29552         fts: fix a thinko
29553         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29554         (set_stat_type): Return S_IF*-valued "type" directly.
29555         Prompted by James Youngman's spotting a related bug.
29556         Confirmed by further testing through find.
29557
29558         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29559         * lib/fts.c (D_TYPE): Define.
29560         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29561         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29562         (s_ifmt_shift_bits): New function.
29563         (set_stat_type): New function.
29564         (fts_build): When not calling fts_stat, call set_stat_type
29565         to propagate dirent.d_type info to fts_read caller.
29566         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29567         fts_statp->st_mode type information may be valid.
29568
29569 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29570
29571         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29572         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29573         <sds@gnu.org>.
29574
29575 2008-11-20  Bruno Haible  <bruno@clisp.org>
29576
29577         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29578         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29579         INCLUDE_NEXT.
29580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29581         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29582         * modules/math (Makefile.am): Substitute
29583         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29585
29586 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29587             Bruno Haible  <bruno@clisp.org>
29588
29589         * lib/stdint.in.h: Define all type macros so that their expansion is
29590         a single typedef'ed token. Fixes a compilation failure in Boost which
29591         does "using ::int8_t;".
29592
29593 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29594
29595         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29596         gl_MANYWARN_ALL_GCC.
29597         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29598         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29599         * modules/manywarnings: New file.
29600         * MODULES.html.sh: Mention manywarnings module.
29601
29602 2008-11-18  Bruno Haible  <bruno@clisp.org>
29603
29604         * doc/gnulib-tool.texi (Unit tests): New section.
29605
29606 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29607
29608         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29609         paths like 'lib/po/foo.po'.
29610
29611 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29612
29613         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29614         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29615
29616 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29617
29618         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29619         parameter works.
29620
29621 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29622
29623         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29624
29625 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29626
29627         * modules/parse-duration-tests: New file.
29628         * tests/test-parse-duration.sh: New file.
29629         * tests/test-parse-duration.c: New file.
29630
29631         New module 'parse-duration'.
29632         * lib/parse-duration.h: New file.
29633         * lib/parse-duration.c: New file.
29634         * modules/parse-duration: New file.
29635
29636 2008-11-17  Bruno Haible  <bruno@clisp.org>
29637
29638         * tests/test-select-out.sh: Comment out the first pipe test.
29639         Reported by Simon Josefsson.
29640
29641 2008-11-17  Bruno Haible  <bruno@clisp.org>
29642
29643         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29645         gl_HOSTENT.
29646
29647 2008-11-17  Bruno Haible  <bruno@clisp.org>
29648
29649         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29650         -lnetwork and -lnet. Needed for Haiku and BeOS.
29651
29652 2008-11-16  Bruno Haible  <bruno@clisp.org>
29653
29654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29655
29656 2008-11-16  Bruno Haible  <bruno@clisp.org>
29657
29658         Avoid test failure on Haiku.
29659         * tests/test-fsync.c: Include <errno.h>.
29660         (main): Don't require that fsync (0) fails.
29661
29662 2008-11-15  Bruno Haible  <bruno@clisp.org>
29663
29664         New module 'hostent'.
29665         * modules/hostent: New file.
29666         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29667
29668 2008-11-15  Bruno Haible  <bruno@clisp.org>
29669
29670         New module 'servent'.
29671         * modules/servent: New file.
29672         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29673
29674 2008-11-15  Bruno Haible  <bruno@clisp.org>
29675
29676         Avoid generating same test program with two different rules.
29677         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29678         test-frexp to test-frexp-nolibm.
29679         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29680         test-frexpl to test-frexpl-nolibm.
29681
29682 2008-11-15  Bruno Haible  <bruno@clisp.org>
29683
29684         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29685         $(FREXPL_LIBM).
29686
29687 2008-11-15  Bruno Haible  <bruno@clisp.org>
29688
29689         * lib/netdb.in.h: Activate the definitions also when the system's
29690         <netdb.h> has 'struct addrinfo'.
29691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29692         EAI_OVERFLOW or AI_NUMERICSERV.
29693         * doc/posix-headers/netdb.texi: Document the problem.
29694
29695 2008-11-15  Bruno Haible  <bruno@clisp.org>
29696
29697         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29698
29699         Make the 'sched' module work on platforms where <sched.h> exists but
29700         is incomplete (such as Haiku).
29701         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29702         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29703         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29704         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29705         HAVE_STRUCT_SCHED_PARAM.
29706         * modules/sched (Depends-on): Add include_next.
29707         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29708         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29709         * doc/posix-headers/sched.texi: Document the issue.
29710
29711 2008-11-13  Jim Meyering  <meyering@redhat.com>
29712
29713         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29714         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29715         test would fail due to the difference in the Report bugs to ...
29716         line.  The expected address is empty, "<>", while the actual
29717         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29718
29719 2008-11-12  Bruno Haible  <bruno@clisp.org>
29720
29721         lstat: don't compile lstat.c on systems lacking lstat
29722         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29723         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29724         Reported by Daniel P. Berrange via Jim Meyering.
29725
29726 2008-11-12  Jim Meyering  <meyering@redhat.com>
29727
29728         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29729
29730 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29731
29732         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29733         instead.
29734
29735 2008-11-12  Bruno Haible  <bruno@clisp.org>
29736
29737         * lib/unicodeio.c: Include unistr.h.
29738         (utf8_wctomb): Remove function.
29739         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29740
29741 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29742
29743         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29744         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29745         <bruno@clisp.org>.
29746         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29747
29748 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29749
29750         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29751         * doc/gnulib.texi: Add section for warnings.
29752
29753 2008-11-11  Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/sockets.h: Add a comment.
29756
29757 2008-11-11  Karl Berry  <karl@gnu.org>
29758
29759         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29760
29761 2008-11-11  Eric Blake  <ebb9@byu.net>
29762
29763         fdl.texi: avoid git symlinks
29764         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29765
29766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29767
29768         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29769
29770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29771
29772         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29773         (gl_WARN_ADD): Substitute $2 if literal.
29774
29775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29776
29777         * m4/warning.m4: Remove.
29778
29779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29780
29781         * m4/warnings.m4: Almost complete rewrite. :-)
29782
29783 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29784
29785         * modules/warnings: New module.
29786         * m4/warnings.m4: New file.
29787         * MODULES.html.sh: Mention warnings module.
29788         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29789         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29790
29791 2008-11-10  Eric Blake  <ebb9@byu.net>
29792
29793         fdl.texi: make a symlink to the latest version
29794         * doc/standards.texi: Revert today's earlier change.
29795         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29796         * doc/fdl.texi: ...and replace this with a symlink to the newer
29797         fdl-1.3.texi.
29798
29799 2008-11-10  Bruno Haible  <bruno@clisp.org>
29800
29801         * tests/test-select-fd.c (main): Accept the result file name as fourth
29802         argument.
29803         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29804         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29805
29806 2008-11-10  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29809         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29810         as autoconf-substituted macros.
29811         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29813         gl_NETDB_H_DEFAULTS. Set these variables.
29814         * modules/netdb (Makefile.am): Substitute these variables.
29815
29816 2008-11-10  Eric Blake  <ebb9@byu.net>
29817
29818         standards.texi: include correct file for FDL 1.3
29819         * doc/standards.texi (GNU Free Documentation License): Change
29820         include file to pull in FDL 1.3, not 1.2.
29821
29822         fdl.texi: revert accidental change to license
29823         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29824
29825 2008-11-10  Bruno Haible  <bruno@clisp.org>
29826
29827         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29828         cross-compiling guesses also when the native compile gives no result.
29829
29830 2008-11-10  Bruno Haible  <bruno@clisp.org>
29831
29832         * lib/spawni.c (__spawni): Force variable into the stack.
29833
29834 2008-11-10  Bruno Haible  <bruno@clisp.org>
29835
29836         Add support for Haiku.
29837         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29838         glibc and BeOS, but also on Haiku.
29839         * lib/fpurge.c (fpurge): Likewise.
29840         * lib/freadable.c (freadable): Likewise.
29841         * lib/freadahead.c (freadahead): Likewise.
29842         * lib/freading.c (freading): Likewise.
29843         * lib/freadptr.c (freadptr): Likewise.
29844         * lib/freadseek.c (freadptrinc): Likewise.
29845         * lib/fseeko.c (rpl_fseeko): Likewise.
29846         * lib/fseterr.c (fseterr): Likewise.
29847         * lib/fwritable.c (fwritable): Likewise.
29848         * lib/fwriting.c (fwriting): Likewise.
29849         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29850
29851 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29852
29853         * lib/config.charset: Treat Haiku like BeOS.
29854
29855 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29856
29857         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29858         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29859
29860 2008-11-08  Bruno Haible  <bruno@clisp.org>
29861
29862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29863         AC_CACHE_CHECK.
29864
29865 2008-11-08  Bruno Haible  <bruno@clisp.org>
29866
29867         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29868
29869 2008-11-08  Bruno Haible  <bruno@clisp.org>
29870
29871         * tests/test-select-fd.c: New file.
29872         * tests/test-select-in.sh: New file.
29873         * tests/test-select-out.sh: New file.
29874         * tests/test-select-stdin.c: New file.
29875         * modules/select-tests (Files): Add the new files.
29876         (Depends-on): Add gettimeofday.
29877         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29878         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29879         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29880
29881 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29882             Bruno Haible  <bruno@clisp.org>
29883
29884         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29885
29886 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29887
29888         * build-aux/pmccabe2html: Added support for C++ source files.
29889
29890 2008-11-05  Ben Pfaff  <blp@gnu.org>
29891
29892         Fix lib/close.c build on Windows.
29893         * modules/close (Files): Add lib/w32sock.h.
29894
29895 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29896
29897         Accept Bison's NEWS format.
29898         * build-aux/announce-gen (print_news_deltas): Tweak
29899         $re_prefix.
29900
29901 2008-11-04  Bruno Haible  <bruno@clisp.org>
29902
29903         * modules/random_r (Maintainer): Add glibc.
29904
29905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29906
29907         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29908         by karl@freefriends.org (Karl Berry).
29909         * doc/alloca.texi: Likewise.
29910         * doc/c-ctype.texi: Likewise.
29911         * doc/c-strcase.texi: Likewise.
29912         * doc/c-strcaseeq.texi: Likewise.
29913         * doc/c-strcasestr.texi: Likewise.
29914         * doc/c-strstr.texi: Likewise.
29915         * doc/c-strtod.texi: Likewise.
29916         * doc/c-strtold.texi: Likewise.
29917         * doc/ctime.texi: Likewise.
29918         * doc/error.texi: Likewise.
29919         * doc/fdl.texi: Likewise.
29920         * doc/gcd.texi: Likewise.
29921         * doc/getdate.texi: Likewise.
29922         * doc/gnulib-intro.texi: Likewise.
29923         * doc/gnulib-tool.texi: Likewise.
29924         * doc/gnulib.texi: Likewise.
29925         * doc/inet_ntoa.texi: Likewise.
29926         * doc/maintain.texi: Likewise.
29927         * doc/make-stds.texi: Likewise.
29928         * doc/quote.texi: Likewise.
29929         * doc/regexprops-generic.texi: Likewise.
29930         * doc/standards.texi: Likewise.
29931         * doc/verify.texi: Likewise.
29932         * doc/visibility.texi: Likewise.
29933         * doc/gnulib.texi (GNU Free Documentation License): Include
29934         fdl-1.3.texi instead of fdl.texi.
29935
29936 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29937
29938         * doc/fdl-1.3.texi: New file, from
29939         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29940         * modules/fdl-1.3: Add.
29941         * MODULES.html.sh: Add fdl-1.3.
29942
29943 2008-11-03  Bruno Haible  <bruno@clisp.org>
29944
29945         Make determination of absolute name of header file work with AIX xlc.
29946         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29947         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29948         preprocessing.
29949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29950         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29951
29952 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29953
29954         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29955         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29956         <ludo@gnu.org>.
29957
29958 2008-11-02  Bruno Haible  <bruno@clisp.org>
29959
29960         Mark 'strpbrk' obsolete.
29961         * modules/strpbrk (Status, Notice): New sections.
29962         * modules/strtok_r (Depends-on): Add strpbrk.
29963
29964 2008-11-02  Bruno Haible  <bruno@clisp.org>
29965
29966         Mark 'strdup' obsolete.
29967         * modules/strdup (Status, Notice): New sections.
29968         * modules/findprog (Depends-on): Add strdup.
29969         * modules/getaddrinfo (Depends-on): Likewise.
29970         * modules/localename (Depends-on): Likewise.
29971         * modules/relocatable-lib (Depends-on): Likewise.
29972         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29973         * modules/relocatable-prog (Depends-on): Likewise.
29974         * modules/trim (Depends-on): Likewise.
29975         * modules/unictype/gen-ctype (Depends-on): Likewise.
29976         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29977
29978 2008-11-02  Bruno Haible  <bruno@clisp.org>
29979
29980         Mark 'strcspn' obsolete.
29981         * modules/strcspn (Status, Notice): New sections.
29982
29983 2008-11-02  Bruno Haible  <bruno@clisp.org>
29984
29985         Mark 'rmdir' obsolete.
29986         * modules/rmdir (Status, Notice): New sections.
29987         * modules/clean-temp (Depends-on): Add rmdir.
29988         * modules/openat (Depends-on): Likewise.
29989
29990 2008-11-02  Bruno Haible  <bruno@clisp.org>
29991
29992         Mark 'raise' obsolete.
29993         * modules/raise (Status, Notice): New sections.
29994         (Include): Specify <signal.h>.
29995         * modules/stdio (Depends-on): Add raise.
29996         * modules/write (Depends-on): Likewise.
29997
29998 2008-11-02  Bruno Haible  <bruno@clisp.org>
29999
30000         Mark 'memset' obsolete.
30001         * modules/memset (Status, Notice): New sections.
30002
30003 2008-11-02  Bruno Haible  <bruno@clisp.org>
30004
30005         Mark 'memmove' obsolete.
30006         * modules/memmove (Status, Notice): New sections.
30007         * modules/argp (Depends-on): Add memmove.
30008         * modules/argz (Depends-on): Likewise.
30009         * modules/canonicalize (Depends-on): Likewise.
30010         * modules/canonicalize-lgpl (Depends-on): Likewise.
30011         * modules/fts (Depends-on): Likewise.
30012         * modules/getcwd (Depends-on): Likewise.
30013         * modules/human (Depends-on): Likewise.
30014         * modules/regex (Depends-on): Likewise.
30015         * modules/striconveh (Depends-on): Likewise.
30016         * modules/trim (Depends-on): Likewise.
30017         * modules/unistr/u8-move (Depends-on): Likewise.
30018         * modules/unistr/u16-move (Depends-on): Likewise.
30019         * modules/unistr/u32-move (Depends-on): Likewise.
30020
30021 2008-11-02  Bruno Haible  <bruno@clisp.org>
30022
30023         Mark 'memcpy' obsolete.
30024         * modules/memcpy (Status, Notice): New sections.
30025
30026 2008-11-02  Bruno Haible  <bruno@clisp.org>
30027
30028         Mark 'memcmp' obsolete.
30029         * modules/memcmp (Status, Notice): New sections.
30030         * modules/argmatch (Depends-on): Add memchr.
30031         * modules/backupfile (Depends-on): Likewise.
30032         * modules/c-strcasestr (Depends-on): Likewise.
30033         * modules/crypto/des (Depends-on): Likewise.
30034         * modules/csharpcomp (Depends-on): Likewise.
30035         * modules/fnmatch (Depends-on): Likewise.
30036         * modules/git-merge-changelog (Depends-on): Likewise.
30037         * modules/isnand (Depends-on): Likewise.
30038         * modules/isnand-nolibm (Depends-on): Likewise.
30039         * modules/isnanf (Depends-on): Likewise.
30040         * modules/isnanf-nolibm (Depends-on): Likewise.
30041         * modules/isnanl (Depends-on): Likewise.
30042         * modules/isnanl-nolibm (Depends-on): Likewise.
30043         * modules/mbchar (Depends-on): Likewise.
30044         * modules/memcoll (Depends-on): Likewise.
30045         * modules/quotearg (Depends-on): Likewise.
30046         * modules/regex (Depends-on): Likewise.
30047         * modules/relocatable-prog (Depends-on): Likewise.
30048         * modules/same (Depends-on): Likewise.
30049         * modules/signbit (Depends-on): Likewise.
30050         * modules/strcasestr-simple (Depends-on): Likewise.
30051         * modules/unictype/gen-ctype (Depends-on): Likewise.
30052         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30053         * modules/uniname/uniname (Depends-on): Likewise.
30054         * modules/unistr/u8-cmp (Depends-on): Likewise.
30055
30056 2008-11-02  Bruno Haible  <bruno@clisp.org>
30057
30058         Mark 'memchr' obsolete.
30059         * modules/memchr (Status, Notice): New sections.
30060         * modules/argp (Depends-on): Add memchr.
30061         * modules/base64 (Depends-on): Likewise.
30062         * modules/c-strcasestr (Depends-on): Likewise.
30063         * modules/chdir-long (Depends-on): Likewise.
30064         * modules/fnmatch (Depends-on): Likewise.
30065         * modules/getsubopt (Depends-on): Likewise.
30066         * modules/git-merge-changelog (Depends-on): Likewise.
30067         * modules/glob (Depends-on): Likewise.
30068         * modules/strcasestr-simple (Depends-on): Likewise.
30069         * modules/strnlen (Depends-on): Likewise.
30070
30071 2008-11-02  Bruno Haible  <bruno@clisp.org>
30072
30073         Mark 'atexit' obsolete.
30074         * modules/atexit (Status, Notice): New sections.
30075         * modules/chdir-long (Depends-on): Add atexit.
30076         * modules/wait-process (Depends-on): Likewise.
30077
30078 2008-11-02  Bruno Haible  <bruno@clisp.org>
30079
30080         * gnulib-tool: New option --with-obsolete.
30081         (func_usage): Document it.
30082         (func_modules_transitive_closure): Drop obsolete dependencies if
30083         incobsolete is not true.
30084         (func_import): Read and save the incobsolete variable to the cache.
30085
30086 2008-11-02  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30089         * gnulib-tool: New option --extract-status.
30090         (func_usage): Document it.
30091         (sed_extract_prog): Recognize it.
30092         (func_get_status): New function.
30093
30094 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30095
30096         * modules/sockets (License): Change from LGPL to LGPLv2+.
30097
30098 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30099
30100         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30101
30102 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30103
30104         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30105         Mention times and sys_times.
30106         * modules/sys_times, modules/sys_times-tests: New modules.
30107         * modules/times, modules/times-tests: Likewise
30108         * m4/sys_times_h.m4: New file.
30109         * lib/sys_times.in.h: Likewise
30110         * lib/times.c: Likewise.
30111         * tests/test-sys_times.c: Likewise.
30112         * tests/test-times.c: Likewise.
30113         * doc/posix-headers/sys_times.texi: Update.
30114         * doc/posix-functions/times.texi: Update.
30115
30116 2008-10-28  Jim Meyering  <meyering@redhat.com>
30117
30118         * modules/tempname (Depends-on): Add lstat.
30119
30120         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30121
30122 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30123
30124         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30125         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30126         using idiom used elsewhere in gnulib.
30127
30128 2008-10-27  Jim Meyering  <meyering@redhat.com>
30129
30130         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30131
30132 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30133
30134         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30135         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30136         programs.
30137         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30138
30139 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30140
30141         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30142
30143 2008-10-27  Bruno Haible  <bruno@clisp.org>
30144
30145         * tests/test-lstat.c: Include <stdio.h>.
30146
30147 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30148
30149         * modules/lstat-tests: New module.
30150         * tests/test-lstat.c: New file.
30151
30152 2008-10-26  Jim Meyering  <meyering@redhat.com>
30153
30154         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30155
30156 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30157             Bruno Haible  <bruno@clisp.org>
30158
30159         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30160         * modules/configmake (Include): Add a note that the include must come
30161         after all system headers.
30162         * lib/javaversion.c: Include configmake.h after all other includes.
30163
30164 2008-10-26  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30167         HAVE_STRUCT_RANDOM_DATA to 1.
30168         (gl_STDLIB_H): Simplify.
30169
30170 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30171
30172         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30173         substitute HAVE_STRUCT_RANDOM_DATA.
30174         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30175         random_data.
30176         * modules/stdlib (Makefile.am): Substitute
30177         HAVE_STRUCT_RANDOM_DATA.
30178
30179 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30180
30181         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30182         * doc/gnulib-intro.texi (Copyright): Likewise.
30183
30184 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30185
30186         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30187         findings.
30188
30189 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30190             Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/unistd.in.h: Include <winsock2.h>.
30193         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30194         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30195         Provide dummy declarations.
30196         (gethostname): Override.
30197         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30198         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30199         gl_PREREQ_SYS_H_WINSOCK2.
30200         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30201         * doc/posix-functions/gethostname.texi: More details.
30202
30203 2008-10-25  Bruno Haible  <bruno@clisp.org>
30204
30205         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30206         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30207         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30208
30209         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30210         here ...
30211         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30212         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30213         gl_UNISTD_H_DEFAULTS.
30214
30215 2008-10-25  Eric Blake  <ebb9@byu.net>
30216
30217         signbit: avoid spurious compiler failure
30218         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30219         declarations inside function.
30220
30221 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30222             Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30225         * modules/random_r (Depends-on): Add stdint.
30226
30227 2008-10-24  Bruno Haible  <bruno@clisp.org>
30228
30229         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30230         Eggert.
30231         * modules/strerror (License): Likewise.
30232
30233 2008-10-24  Jim Meyering  <meyering@redhat.com>
30234
30235         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30236         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30237
30238 2008-10-24  Eric Blake  <ebb9@byu.net>
30239
30240         getgroups: fix compilation when getgroups is available
30241         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30242         but with <config.h> override of getgroups disabled.
30243
30244 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30245
30246         * doc/gnulib.texi (Header files): Add note about C++ problems.
30247         Explained by Bruno Haible <bruno@clisp.org>.
30248
30249 2008-10-23  Bruno Haible  <bruno@clisp.org>
30250
30251         Define a dummy SA_NODEFER macro on Interix.
30252         * lib/signal.in.h (SA_NODEFER): Define fallback.
30253         Reported by Aleksey Cheusov <cheusov@tut.by> via
30254         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30255
30256 2008-10-23  Bruno Haible  <bruno@clisp.org>
30257
30258         * modules/freadahead (License): Change to LGPLv2+.
30259         Suggested by Simon Josefsson.
30260
30261 2008-10-23  Jim Meyering  <meyering@redhat.com>
30262
30263         random_r: new module
30264         * modules/random_r: New file.
30265         * m4/random_r.m4: New file.
30266         * lib/random_r.c: New file, from glibc.
30267         * modules/random_r-tests: New file.
30268         * tests/test-random_r.c: New file.
30269         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30270          Declare.
30271         (RAND_MAX): Define.
30272         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30273         * modules/stdlib: Substitute them, too.
30274         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30275         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30276         * doc/glibc-functions/random_r.texi: Likewise.
30277         * doc/glibc-functions/setstate_r.texi: Likewise.
30278         * doc/glibc-functions/srandom_r.texi: Likewise.
30279         * config/srclist.txt: Mention it.
30280
30281 2008-10-23  David Lutterkort  <lutter@redhat.com>
30282
30283         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30284         link requirement
30285
30286 2008-10-23  Jim Meyering  <meyering@redhat.com>
30287
30288         selinux-h: mark parameters of stub functions as intentionally unused
30289         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30290         * lib/se-context.in.h: Likewise.
30291
30292 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30293
30294         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
30295
30296 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30297
30298         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
30299
30300 2008-10-22  Eric Blake  <ebb9@byu.net>
30301
30302         glthread/thread: avoid compiler warning
30303         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
30304         Add unreachable abort to silence compiler.
30305
30306 2008-10-22  Eric Blake  <ebb9@byu.net>
30307
30308         netdb: also supply struct addrinfo for cygwin 1.5.x
30309         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
30310         older cygwin.
30311         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
30312         cygwin.
30313         * doc/posix-headers/netdb.texi (netdb.h): Document this.
30314
30315 2008-10-22  Bruno Haible  <bruno@clisp.org>
30316
30317         * users.txt: Update entry about pspp.
30318
30319 2008-10-21  Bruno Haible  <bruno@clisp.org>
30320
30321         Simplification.
30322         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
30323         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
30324
30325         Simplification.
30326         * lib/ioctl.c (ioctl): Don't undefine.
30327         * lib/socket.c (socket): Don't undefine.
30328
30329         Remove unused module indicator macros.
30330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
30331         GNULIB_$1 as a C macro.
30332
30333         * doc/posix-functions/close.texi: Undo last change.
30334         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30335         Windows platforms.
30336
30337 2008-10-21  Bruno Haible  <bruno@clisp.org>
30338
30339         Add gethostname() declaration to <unistd.h>.
30340         * lib/unistd.in.h (gethostname): New declaration.
30341         * lib/gethostname.c: Include <unistd.h>.
30342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30343         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30345         and HAVE_GETHOSTNAME.
30346         * modules/gethostname (Depends-on): Add unistd.
30347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30348         (Include): Specify <unistd.h>.
30349         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30350         HAVE_GETHOSTNAME.
30351         * tests/test-gethostname.c: Include <unistd.h> first.
30352
30353 2008-10-21  Bruno Haible  <bruno@clisp.org>
30354
30355         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30356         * modules/select-tests (Depends-on): Likewise.
30357         Reported by Simon Josefsson.
30358
30359 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30360
30361         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30362         * lib/accept.c: New file, based on winsock.c.
30363         * lib/bind.c: New file, based on winsock.c.
30364         * lib/connect.c: New file, based on winsock.c.
30365         * lib/getpeername.c: New file, based on winsock.c.
30366         * lib/getsockname.c: New file, based on winsock.c.
30367         * lib/getsockopt.c: New file, based on winsock.c.
30368         * lib/ioctl.c: New file, based on winsock.c.
30369         * lib/listen.c: New file, based on winsock.c.
30370         * lib/recv.c: New file, based on winsock.c.
30371         * lib/recvfrom.c: New file, based on winsock.c.
30372         * lib/send.c: New file, based on winsock.c.
30373         * lib/sendto.c: New file, based on winsock.c.
30374         * lib/setsockopt.c: New file, based on winsock.c.
30375         * lib/shutdown.c: New file, based on winsock.c.
30376         * lib/socket.c: New file, based on winsock.c.
30377         * lib/w32sock.h: New file, based on winsock.c.
30378         * lib/winsock.c: Remove file.
30379         * modules/accept: Likewise.
30380         * modules/bind: Likewise.
30381         * modules/connect: Likewise.
30382         * modules/getpeername: Likewise.
30383         * modules/getsockname: Likewise.
30384         * modules/getsockopt: Likewise.
30385         * modules/ioctl: Likewise.
30386         * modules/listen: Likewise.
30387         * modules/recv: Likewise.
30388         * modules/recvfrom: Likewise.
30389         * modules/send: Likewise.
30390         * modules/sendto: Likewise.
30391         * modules/setsockopt: Likewise.
30392         * modules/shutdown: Likewise.
30393         * modules/socket: Use socket.c instead of winsock.c.
30394         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30395         * doc/posix-functions/accept.texi: Doc fix.
30396         * doc/posix-functions/bind.texi: Doc fix.
30397         * doc/posix-functions/close.texi: Doc fix.
30398         * doc/posix-functions/connect.texi: Doc fix.
30399         * doc/posix-functions/getpeername.texi: Doc fix.
30400         * doc/posix-functions/getsockname.texi: Doc fix.
30401         * doc/posix-functions/getsockopt.texi: Doc fix.
30402         * doc/posix-functions/ioctl.texi: Doc fix.
30403         * doc/posix-functions/listen.texi: Doc fix.
30404         * doc/posix-functions/recv.texi: Doc fix.
30405         * doc/posix-functions/recvfrom.texi: Doc fix.
30406         * doc/posix-functions/send.texi: Doc fix.
30407         * doc/posix-functions/sendto.texi: Doc fix.
30408         * doc/posix-functions/setsockopt.texi: Doc fix.
30409         * doc/posix-functions/shutdown.texi: Doc fix.
30410         * doc/posix-functions/socket.texi: Doc fix.
30411
30412 2008-10-20  Bruno Haible  <bruno@clisp.org>
30413
30414         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30415         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30416         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30417         as an alias for SIGABRT.
30418         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30419         (sigaction): Map it to SIGABRT.
30420         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30421
30422 2008-10-20  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/fts.c: Don't include lstat.h.
30425         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30426
30427         Move the lstat() declaration to <sys/stat.h>.
30428         * lib/lstat.h: Remove file.
30429         * lib/sys_stat.in.h: Add special invocation convention.
30430         (lstat): New declaration.
30431         * lib/lstat.c (orig_lstat): New function.
30432         (rpl_lstat): Use orig_lstat instead of lstat.
30433         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30434         AC_C_INLINE. Set REPLACE_LSTAT.
30435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30436         and REPLACE_LSTAT.
30437         * modules/lstat (Files): Remove lib/lstat.h.
30438         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30439         (Include): Specify <sys/stat.h> instead of lstat.h.
30440         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30441         REPLACE_LSTAT.
30442         * NEWS: Mention the change.
30443
30444 2008-10-20  Bruno Haible  <bruno@clisp.org>
30445
30446         * modules/posix_spawn-tests: New file.
30447         * tests/test-posix_spawn3.c: New file.
30448
30449 2008-10-20  Bruno Haible  <bruno@clisp.org>
30450
30451         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30452         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30453         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30454         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30455         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30456
30457 2008-10-20  Bruno Haible  <bruno@clisp.org>
30458
30459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30460         of posix_spawn on AIX 5.3.
30461
30462 2008-10-20  Bruno Haible  <bruno@clisp.org>
30463
30464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30465
30466 2008-10-20  Bruno Haible  <bruno@clisp.org>
30467
30468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30469         of AC_LANG_PROGRAM.
30470
30471 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30472
30473         * lib/netdb.in.h: Don't define GNU specific constants until they
30474         are supported or needed.  Reported by Bruno Haible
30475         <bruno@clisp.org>.
30476
30477 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30478
30479         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30480
30481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30482
30483         * lib/getaddrinfo.h: Remove file.
30484         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30485         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30486         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30487         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30488         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30489         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30490         * tests/test-getaddrinfo.c: Likewise.
30491         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30492         * NEWS: Mention change.
30493
30494 2008-10-19  Bruno Haible  <bruno@clisp.org>
30495
30496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30497
30498 2008-10-19  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/wait-process.c: Include simply <sys/wait.h>.
30501         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30502         WIFSTOPPED): Remove fallback definitions.
30503         * modules/wait-process (Depends-on): Add sys_wait.
30504
30505         New module 'sys_wait'.
30506         * modules/sys_wait: New file.
30507         * lib/sys_wait.in.h: New file, partially copied from
30508         lib/wait-process.c.
30509         * m4/sys_wait_h.m4: New file.
30510         * doc/posix-headers/sys_wait.texi: Mention the new module.
30511
30512 2008-10-19  Bruno Haible  <bruno@clisp.org>
30513
30514         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30515
30516 2008-10-19  Bruno Haible  <bruno@clisp.org>
30517
30518         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30519         * lib/wait-process.c (WAIT_T): Remove type.
30520         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30521         (wait_subprocess): Update.
30522
30523 2008-10-19  Bruno Haible  <bruno@clisp.org>
30524
30525         New module 'atoll'.
30526         * modules/atoll: New file.
30527         * lib/stdlib.in.h (atoll): New declaration.
30528         * lib/atoll.c: New file, from glibc with modifications.
30529         * m4/atoll.m4: New file.
30530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30531         HAVE_ATOLL.
30532         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30533         * doc/posix-functions/atoll.texi: Mention the new module.
30534
30535 2008-10-19  Bruno Haible  <bruno@clisp.org>
30536
30537         Add strtoull() declaration to <stdlib.h>.
30538         * lib/stdlib.in.h (strtoull): New declaration.
30539         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30540         Set HAVE_STRTOULL.
30541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30542         HAVE_STRTOULL.
30543         * modules/strtoull (Depends-on): Add stdlib.
30544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30545         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30546         HAVE_STRTOULL.
30547
30548 2008-10-19  Bruno Haible  <bruno@clisp.org>
30549
30550         Add strtoll() declaration to <stdlib.h>.
30551         * lib/stdlib.in.h (strtoll): New declaration.
30552         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30553         Set HAVE_STRTOLL.
30554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30555         HAVE_STRTOLL.
30556         * modules/strtoll (Depends-on): Add stdlib.
30557         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30558         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30559
30560 2008-10-19  Bruno Haible  <bruno@clisp.org>
30561
30562         * modules/bcopy (Depends-on): Add strings.
30563         (Include): Specify <strings.h>.
30564
30565 2008-10-19  Bruno Haible  <bruno@clisp.org>
30566
30567         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30568
30569 2008-10-19  Bruno Haible  <bruno@clisp.org>
30570
30571         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30572         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30573         mingw.
30574
30575 2008-10-19  Bruno Haible  <bruno@clisp.org>
30576
30577         * lib/atanl.c: Don't include isnanl.h.
30578         * lib/cosl.c: Likewise.
30579         * lib/ldexpl.c: Likewise.
30580         * lib/logl.c: Likewise.
30581         * lib/sinl.c: Likewise.
30582         * lib/sqrtl.c: Likewise.
30583         * lib/tanl.c: Likewise.
30584
30585         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30586         * lib/isnanf.h: Remove file.
30587         * lib/isnand.h: Remove file.
30588         * lib/isnanl.h: Remove file.
30589         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30590         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30591         macros.
30592         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30593         HAVE_ISNANF, don't define it as a C macro.
30594         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30595         HAVE_ISNAND, don't define it as a C macro.
30596         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30597         HAVE_ISNANL, don't define it as a C macro.
30598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30599         HAVE_ISNAN[FDL].
30600         * modules/isnanf (Files): Remove lib/isnanf.h.
30601         (Depends-on): Add math.
30602         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30603         (Include): Specify <math.h> instead of isnanf.h.
30604         * modules/isnand (Files): Remove lib/isnand.h.
30605         (Depends-on): Add math.
30606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30607         (Include): Specify <math.h> instead of isnand.h.
30608         * modules/isnanl (Files): Remove lib/isnanl.h.
30609         (Depends-on): Add math.
30610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30611         (Include): Specify <math.h> instead of isnanl.h.
30612         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30613         HAVE_ISNAN[FDL].
30614         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30615         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30616         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30617         * NEWS: Mention the change.
30618
30619 2008-10-18  Bruno Haible  <bruno@clisp.org>
30620
30621         Add getusershell(), setusershell(), endusershell() declarations to
30622         <unistd.h>.
30623         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30624         declarations.
30625         * lib/getusershell.c: Include unistd.h.
30626         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30627         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30628         HAVE_GETUSERSHELL.
30629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30630         and HAVE_GETUSERSHELL.
30631         * modules/getusershell (Depends-on): Add unistd, extensions.
30632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30633         (Include): Specify <unistd.h>.
30634         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30635         HAVE_GETUSERSHELL.
30636
30637 2008-10-18  Bruno Haible  <bruno@clisp.org>
30638
30639         Add a getloadavg() declaration to <stdlib.h>.
30640         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30641         getloadavg declaration.
30642         (getloadavg): New declaration.
30643         * lib/getloadavg.c: Include <stdlib.h> first.
30644         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30645         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30646         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30648         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30649         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30651         (Include): Specify <stdlib.h>.
30652         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30653         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30654
30655 2008-10-18  Bruno Haible  <bruno@clisp.org>
30656
30657         * lib/dirchownmod.c: Don't include lchmod.h.
30658
30659         Move the lchmod() declaration to <sys/stat.h>.
30660         * lib/lchmod.h: Remove file.
30661         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30662         (lchmod): New declaration, moved here from lib/lchown.h.
30663         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30664         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30666         and HAVE_LCHMOD.
30667         * modules/lchmod (Files): Remove lib/lchmod.h.
30668         (Depends-on): Add sys_stat, extensions.
30669         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30670         (Include): Specify <sys/stat.h> instead of lchmod.h.
30671         * modules/sys_stat (Depends-on): Add link-warning.
30672         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30673         definition of GL_LINK_WARNING.
30674         * NEWS: Mention the change.
30675
30676 2008-10-18  Bruno Haible  <bruno@clisp.org>
30677
30678         * lib/fchdir.c: Don't include dirfd.h.
30679         * lib/fts.c: Likewise.
30680         * lib/getcwd.c: Likewise.
30681         * lib/glob.c: Likewise.
30682
30683         Move the dirfd() declaration to <dirent.h>.
30684         * lib/dirfd.h: Remove file.
30685         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30686         (dirfd): New declaration.
30687         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30689         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30690         HAVE_DECL_DIRFD.
30691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30692         HAVE_DECL_DIRFD.
30693         * modules/dirfd (Files): Remove lib/dirfd.h.
30694         (Depends-on): Add dirent, extensions.
30695         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30696         (Include): Specify <dirent.h> instead of dirfd.h.
30697         * modules/dirent (Depends-on): Add link-warning.
30698         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30699         definition of GL_LINK_WARNING.
30700         * NEWS: Mention the change.
30701
30702 2008-10-18  Bruno Haible  <bruno@clisp.org>
30703
30704         Move the euidaccess() declaration to <unistd.h>.
30705         * lib/euidaccess.h: Remove file.
30706         * lib/unistd.in.h (euidaccess): New declaration.
30707         * lib/euidaccess.c: Don't include euidaccess.h.
30708         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30709         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30711         and HAVE_EUIDACCESS.
30712         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30713         (Depends-on): Add unistd.
30714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30715         (Include): Specify <unistd.h> instead of euidaccess.h.
30716         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30717         HAVE_EUIDACCESS.
30718         * NEWS: Mention the change.
30719
30720 2008-10-18  Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30723
30724         Move the getdomainname() declaration to <unistd.h>.
30725         * lib/getdomainname.h: Remove file.
30726         * lib/unistd.in.h (getdomainname): New declaration.
30727         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30728         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30729         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30730         HAVE_GETDOMAINNAME.
30731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30732         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30733         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30734         (Depends-on): Add unistd, extensions.
30735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30736         (Includes): Specify <unistd.h> instead of getdomainname.h.
30737         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30738         HAVE_GETDOMAINNAME.
30739         * NEWS: Mention the change.
30740
30741 2008-10-18  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/dirent: New file.
30744         * m4/dirent_h.m4: New file.
30745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30746         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30747         * modules/fchdir (Files): Remove lib/dirent.in.h.
30748         (Depends-on): Add dirent.
30749         (Makefile.am): Move rules to modules/dirent.
30750         * doc/posix-headers/dirent.texi: Mention the new module.
30751
30752 2008-10-18  Bruno Haible  <bruno@clisp.org>
30753
30754         Avoid -Wunused-parameter warnings in public gnulib header files.
30755         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30756         macro.
30757         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30758
30759 2008-10-18  Bruno Haible  <bruno@clisp.org>
30760
30761         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30762         * doc/glibc-functions/error.texi: Mention the module 'error'.
30763         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30764         * doc/glibc-functions/getdomainname.texi: Mention the module
30765         'getdomainname'.
30766         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30767         * doc/glibc-functions/getpagesize.texi: Mention the module
30768         'getpagesize'.
30769         * doc/glibc-functions/getusershell.texi: Mention the module
30770         'getusershell'.
30771         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30772         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30773         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30774         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30775         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30776         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30777         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30778         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30779         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30780         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30781         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30782         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30783         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30784         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30785
30786 2008-10-17  Bruno Haible  <bruno@clisp.org>
30787
30788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30789         HP-UX and IRIX, use -0.0L.
30790         * tests/test-ceill.c (minus_zero): Likewise.
30791         * tests/test-floorl.c (minus_zero): Likewise.
30792         * tests/test-frexpl.c (minus_zero): Likewise.
30793         * tests/test-isnan.c (minus_zerol): Likewise.
30794         * tests/test-isnanl.h (minus_zero): Likewise.
30795         * tests/test-ldexpl.c (minus_zero): Likewise.
30796         * tests/test-roundl.c (minus_zero): Likewise.
30797         * tests/test-signbit.c (minus_zerol): Likewise.
30798         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30799         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30800         * tests/test-truncl.c (minus_zero): Likewise.
30801         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30802         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30803         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30804         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30805
30806 2008-10-17  Bruno Haible  <bruno@clisp.org>
30807
30808         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30809         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30810         that it gets activated only for gcc >= 3.0.
30811         * lib/dirent.in.h: Likewise.
30812         * lib/errno.in.h: Likewise.
30813         * lib/fcntl.in.h: Likewise.
30814         * lib/float.in.h: Likewise.
30815         * lib/iconv.in.h: Likewise.
30816         * lib/inttypes.in.h: Likewise.
30817         * lib/locale.in.h: Likewise.
30818         * lib/math.in.h: Likewise.
30819         * lib/netdb.in.h: Likewise.
30820         * lib/netinet_in.in.h: Likewise.
30821         * lib/search.in.h: Likewise.
30822         * lib/signal.in.h: Likewise.
30823         * lib/spawn.in.h: Likewise.
30824         * lib/stdarg.in.h: Likewise.
30825         * lib/stdint.in.h: Likewise.
30826         * lib/stdio.in.h: Likewise.
30827         * lib/stdlib.in.h: Likewise.
30828         * lib/string.in.h: Likewise.
30829         * lib/strings.in.h: Likewise.
30830         * lib/sys_file.in.h: Likewise.
30831         * lib/sys_ioctl.in.h: Likewise.
30832         * lib/sys_select.in.h: Likewise.
30833         * lib/sys_socket.in.h: Likewise.
30834         * lib/sys_stat.in.h: Likewise.
30835         * lib/sys_time.in.h: Likewise.
30836         * lib/sysexits.in.h: Likewise.
30837         * lib/time.in.h: Likewise.
30838         * lib/unistd.in.h: Likewise.
30839         * lib/wchar.in.h: Likewise.
30840         * lib/wctype.in.h: Likewise.
30841         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30842
30843 2008-10-17  Jim Meyering  <meyering@redhat.com>
30844
30845         ignore-value: don't depend on inline module
30846         * modules/ignore-value (Depends-on): Remove 'inline'.
30847         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30848         Suggestion from Bruno Haible.
30849
30850 2008-10-17  Bruno Haible  <bruno@clisp.org>
30851
30852         New implementation of condition variables for Win32.
30853         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30854         (gl_linked_waitqueue_t): New type.
30855         (gl_cond_t): Use it.
30856         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30857         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30858         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30859         (glthread_cond_init_func, glthread_cond_wait_func,
30860         glthread_cond_timedwait_func, glthread_cond_signal_func,
30861         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30862         Reimplemented on the basis of gl_linked_waitqueue_t.
30863         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30864         gl_waitqueue_t.
30865         (gl_rwlock_t): Update.
30866         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30867
30868 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30869
30870         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30871         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30872
30873 2008-10-17  Jim Meyering  <meyering@redhat.com>
30874
30875         ignore-value: new module
30876         * modules/ignore-value: New file.
30877         * lib/ignore-value.h: New file.
30878         * MODULES.html.sh (Compiler warning management): New section,
30879         just for this module.  More to come.
30880
30881 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30882
30883         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30884         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30885         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30886
30887 2008-10-16  Jim Meyering  <meyering@redhat.com>
30888
30889         openat-die.c: avoid 'no previous prototype' warning
30890         * lib/openat-die.c: Include "openat.h".
30891         Reported by Reuben Thomas <rrt@sc3d.org>.
30892
30893 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30894
30895         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30896         * lib/netdb.in.h: Fix typo.
30897         Reported by Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/netdb.in.h: Include sys/socket.h for platforms without
30900         netdb.h, to get structures like hostent on MinGW.
30901         * modules/netdb (Depends-on): Add sys_socket.
30902
30903 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30904
30905         * modules/netdb, modules/netdb-tests: New file.
30906         * m4/netdb_h.m4: New file.
30907         * lib/netdb.in.h: Add, currently just an empty file pending
30908         definitions.
30909         * tests/test-netdb.c: New file.
30910         * doc/posix-headers/netdb.texi: Mention that we replace it if
30911         needed.
30912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30913         netdb.
30914
30915 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30916
30917         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30918         with code.
30919
30920 2008-10-13  Bruno Haible  <bruno@clisp.org>
30921
30922         * lib/glthread/cond.c (glthread_cond_wait_func,
30923         glthread_cond_timedwait_func): Add a comment.
30924
30925 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30926
30927         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30928         * tests/test-select.c: Likewise,
30929
30930 2008-10-13  Bruno Haible  <bruno@clisp.org>
30931
30932         * lib/glthread/cond.c (glthread_cond_wait_func,
30933         glthread_cond_timedwait_func): Fix variable name.
30934         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30935
30936 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30937
30938         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30940         struct sockaddr.sa_len.
30941         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30942
30943 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30944
30945         * build-aux/pmccabe2html: Add css and css_url parameters.
30946
30947 2008-10-12  Bruno Haible  <bruno@clisp.org>
30948
30949         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30950         calling aclx_get.
30951         Reported by Rainer Tammer <tammer@tammer.net>.
30952
30953 2008-10-12  Bruno Haible  <bruno@clisp.org>
30954
30955         Use msvcrt aware primitives for creation/termination of Win32 threads.
30956         * lib/glthread/thread.c: Include <process.h>.
30957         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30958         (wrapper_func): Update signature.
30959         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30960
30961 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30962             Bruno Haible  <bruno@clisp.org>
30963
30964         Provide a Win32 implementation of the 'cond' module.
30965         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30966         * lib/glthread/cond.c (glthread_cond_init_func,
30967         glthread_cond_wait_func, glthread_cond_timedwait_func,
30968         glthread_cond_signal_func, glthread_cond_broadcast_func,
30969         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30970         * modules/cond (Dependencies): Add gettimeofday.
30971
30972 2008-10-11  Bruno Haible  <bruno@clisp.org>
30973
30974         Make sleep work on older versions of mingw.
30975         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30976         only whether it exists.
30977         * doc/posix-functions/sleep.texi: Mention the problem with older
30978         versions of mingw.
30979
30980 2008-10-11  Bruno Haible  <bruno@clisp.org>
30981
30982         New module 'shutdown'.
30983         * modules/shutdown: New file.
30984         * lib/sys_socket.in.h (shutdown): New declaration.
30985         * lib/winsock.c (shutdown): New function.
30986         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30987         GNULIB_SHUTDOWN.
30988         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30989         * doc/posix-functions/shutdown.texi: Document the new module.
30990
30991 2008-10-11  Jim Meyering  <meyering@redhat.com>
30992
30993         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30994
30995 2008-10-11  Bruno Haible  <bruno@clisp.org>
30996
30997         New module 'fclose'.
30998         * modules/fclose: New file.
30999         * lib/stdio.in.h (fclose): New declaration.
31000         * lib/fclose.c: New file.
31001         * m4/fclose.m4: New file.
31002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31003         REPLACE_FCLOSE.
31004         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31005         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31006         REPLACE_FCLOSE.
31007         * modules/close (Depends-on): fclose.
31008         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31009
31010 2008-10-11  Bruno Haible  <bruno@clisp.org>
31011
31012         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31013         set errno and don't call _close.
31014
31015 2008-10-10  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31018         ACL, not afterwards. Fixes test failure on Cygwin.
31019
31020 2008-10-09  Ben Pfaff  <blp@gnu.org>
31021
31022         * build-aux/announce-gen: Fix gnulib version related part of usage
31023         message.  Die with a useful error message if no tarballs are
31024         found.
31025
31026 2008-10-10  Jim Meyering  <meyering@redhat.com>
31027
31028         bootstrap: use git's --depth=N option only if it's supported
31029         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31030         recognize the --depth option.  Reported by Pádraig Brady.
31031
31032 2008-10-09  Bruno Haible  <bruno@clisp.org>
31033
31034         New module 'ioctl'.
31035         * modules/ioctl: New file.
31036         * lib/sys_socket.in.h (ioctl): Remove declaration.
31037         * lib/winsock.c: Include <sys/ioctl.h>.
31038         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31039         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31040         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31041         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31042         * doc/posix-functions/ioctl.texi: Mention the new module.
31043
31044 2008-10-09  Bruno Haible  <bruno@clisp.org>
31045
31046         New module 'sys_ioctl'.
31047         * lib/sys_ioctl.in.h: New file.
31048         * m4/sys_ioctl_h.m4: New file.
31049         * modules/sys_ioctl: New file.
31050         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31051
31052 2008-10-09  Bruno Haible  <bruno@clisp.org>
31053
31054         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31055         * lib/winsock.c: Include <stdarg.h>.
31056         (rpl_ioctl): Change to second argument 'int' and then varargs.
31057
31058 2008-10-09  Bruno Haible  <bruno@clisp.org>
31059
31060         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31061         when the sys_socket module is present and the system has <winsock2.h>.
31062
31063 2008-10-09  Bruno Haible  <bruno@clisp.org>
31064
31065         * doc/posix-functions/close.texi: Mention module 'close' instead of
31066         module 'sys_socket'.
31067
31068 2008-10-09  Bruno Haible  <bruno@clisp.org>
31069
31070         * doc/glibc-headers/sys_ioctl.texi: New file.
31071         * doc/gnulib.texi: Include it.
31072
31073 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31074             Bruno Haible  <bruno@clisp.org>
31075
31076         Combine the two replacements of 'close'.
31077         * lib/sys_socket.in.h (close): Define to a reminder to include
31078         <unistd.h>.
31079         (_gl_close_fd_maybe_socket): New declaration.
31080         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31081         * lib/winsock.c (close): Remove undefinition.
31082         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31083         needed for the gnulib module 'close'.
31084         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31085         define to an error symbol or to a warning, if suitable.
31086         * lib/close.c: Include <sys/socket.h>.
31087         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31088         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31089         UNISTD_H_HAVE_WINSOCK2_H.
31090         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31092         UNISTD_H_HAVE_WINSOCK2_H.
31093         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31094         (configure.ac): Set a module indicator.
31095         (Makefile.am): Substitute GNULIB_CLOSE.
31096         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31097         * modules/poll-tests (Depends-on): Add close.
31098         * modules/select-tests (Depends-on): Likewise.
31099
31100 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31101             Bruno Haible  <bruno@clisp.org>
31102
31103         New module 'close'.
31104         * modules/close: New file.
31105         * lib/unistd.in.h (close): Move declaration out of the
31106         FCHDIR_REPLACEMENT scope.
31107         (_gl_unregister_fd): New declaration.
31108         * lib/close.c: New file.
31109         * lib/fchdir.c (rpl_close): Remove function.
31110         * m4/close.m4: New file.
31111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31112         close.
31113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31114         REPLACE_CLOSE.
31115         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31116         REPLACE_CLOSE.
31117         * modules/fchdir (Depends-on): Add close.
31118
31119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31120             Bruno Haible  <bruno@clisp.org>
31121
31122         * lib/fcntl.in.h (open): Simplify conditionals.
31123         (_gl_register_fd): New declaration.
31124         * lib/fchdir.c (rpl_open): Remove function.
31125         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31126         also.
31127         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31129         open.
31130
31131 2008-10-09  Jim Meyering  <meyering@redhat.com>
31132
31133         GNUmakefile: use the more name-space-friendly "_version"
31134         * top/GNUmakefile (_dummy): Update.
31135         (_version): Rename from "version".
31136
31137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31138             Bruno Haible  <bruno@clisp.org>
31139
31140         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31141         rpl_close.
31142         (_gl_register_fd): New function, extracted from rpl_open.
31143         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31144         (rpl_open, rpl_opendir): Use _gl_register_fd.
31145
31146 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31147
31148         Fix organization of 'open' replacement.
31149         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31150         (gl_FUNC_OPEN): Use it.
31151         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31152
31153 2008-10-08  Bruno Haible  <bruno@clisp.org>
31154
31155         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31156
31157 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31158
31159         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31160         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31161         listen).
31162
31163 2008-10-08  Eric Blake  <ebb9@byu.net>
31164
31165         GNUmakefile: add 'make version' target
31166         * top/GNUmakefile (_curr-ver): Split version update rules...
31167         (version): ...into a target.
31168
31169 2008-10-07  Bruno Haible  <bruno@clisp.org>
31170
31171         Use a more portable replacement expression for -0.0L.
31172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31173         instead of -0.0L. Fix m4 quotation.
31174
31175         * tests/test-signbit.c: Include <float.h>.
31176         (minus_zero): New variable.
31177         (test_signbitl): Use minus_zero instead of -zero.
31178         * modules/signbit-tests (Depends-on): Add float.
31179
31180         * tests/test-ceill.c: Include <float.h>.
31181         (zero): Remove variable.
31182         (minus_zero): New variable.
31183         (main): Use minus_zero instead of -zero.
31184         * modules/ceill-tests (Depends-on): Add float.
31185
31186         * tests/test-floorl.c: Include <float.h>.
31187         (zero): Remove variable.
31188         (minus_zero): New variable.
31189         (main): Use minus_zero instead of -zero.
31190         * modules/floorl-tests (Depends-on): Add float.
31191
31192         * tests/test-roundl.c: Include <float.h>.
31193         (zero): Remove variable.
31194         (minus_zero): New variable.
31195         (main): Use minus_zero instead of -zero.
31196         * modules/roundl-tests (Depends-on): Add float.
31197
31198         * tests/test-truncl.c: Include <float.h>.
31199         (zero): Remove variable.
31200         (minus_zero): New variable.
31201         (main): Use minus_zero instead of -zero.
31202         * modules/truncl-tests (Depends-on): Add float.
31203
31204         * tests/test-frexpl.c (zero): Remove variable.
31205         (minus_zero): New variable.
31206         (main): Use minus_zero instead of -zero.
31207         * modules/frexpl-tests (Depends-on): Add float.
31208
31209         * tests/test-isnan.c (zerol): Remove variable.
31210         (minus_zerol): New variable.
31211         (test_long_double): Use minus_zerol instead of -zerol.
31212         * modules/isnan-tests (Depends-on): Add float.
31213
31214         * tests/test-isnanl.h (zero): Remove variable.
31215         (minus_zero): New variable.
31216         (main): Use minus_zero instead of -zero.
31217         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31218         * modules/isnanl-tests (Depends-on): Add float.
31219
31220         * tests/test-ldexpl.c (zero): Remove variable.
31221         (minus_zero): New variable.
31222         (main): Use minus_zero instead of -zero.
31223         * modules/ldexpl-tests (Depends-on): Add float.
31224
31225         * tests/test-snprintf-posix.h (zerol): Remove variable.
31226         (minus_zerol): New variable.
31227         (test_function): Use minus_zerol instead of -zerol.
31228         * modules/snprintf-posix-tests (Depends-on): Add float.
31229         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31230
31231         * tests/test-sprintf-posix.h (zerol): Remove variable.
31232         (minus_zerol): New variable.
31233         (test_function): Use minus_zerol instead of -zerol.
31234         * modules/sprintf-posix-tests (Depends-on): Add float.
31235         * modules/vsprintf-posix-tests (Depends-on): Add float.
31236
31237         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31238         (minus_zerol): New variable.
31239         (test_function): Use minus_zerol instead of -zerol.
31240         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31241
31242         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31243         (minus_zerol): New variable.
31244         (test_function): Use minus_zerol instead of -zerol.
31245         * modules/vasprintf-posix-tests (Depends-on): Add float.
31246
31247 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31248
31249         * MODULES.html.sh (Support for building documentation): Mention
31250         pmccabe2html.  Sort entries.
31251
31252         Add pmccabe2html module, from gnupdf.
31253         * build-aux/pmccabe.css: New file.
31254         * build-aux/pmccabe2html: New file.
31255         * m4/pmccabe2html.m4: New file.
31256         * modules/pmccabe2html: New file.
31257
31258 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31259
31260         flock: new module
31261         * MODULES.html.sh: Add to list of modules.
31262         * lib/flock.c: flock implementation for Windows and Unix systems
31263         which have fcntl.
31264         * doc/glibc-functions/flock.texi: Update documentation.
31265         * lib/sys_file.in.h: <sys/file.h> header file.
31266         * m4/flock.m4: M4 macros.
31267         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31268         * modules/flock: flock module.
31269         * modules/flock-tests: flock tests module.
31270         * modules/sys_file: sys/file.h module.
31271         * tests/test-flock.c: test suite for flock.
31272
31273 2008-10-06  Jim Meyering  <meyering@redhat.com>
31274
31275         bootstrap: check for LT_INIT more portably still ;-)
31276         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31277         Spotted by Bruno Haible.
31278
31279 2008-10-06  Eric Blake  <ebb9@byu.net>
31280
31281         test-signbit: avoid tripping Irix cc bug on -0.0L
31282         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31283         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31284         entire testsuite consistent and avoids an Irix 6.2 bug.
31285
31286 2008-10-05  Bruno Haible  <bruno@clisp.org>
31287             Jim Meyering  <jim@meyering.net>
31288
31289         Add an option for ignoring EPIPE during close_stdout.
31290         * lib/closeout.h: Include <stdbool.h>.
31291         (close_stdout_set_ignore_EPIPE): New declaration.
31292         * lib/closeout.c: Include <stdbool.h>.
31293         (ignore_EPIPE): New variable.
31294         (close_stdout_set_ignore_EPIPE): New function.
31295         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
31296         * lib/close-stream.c (close_stream): Mention the possible EPIPE
31297         failure.
31298         * modules/closeout (Depends-on): Add stdbool.
31299
31300 2008-10-05  Bruno Haible  <bruno@clisp.org>
31301
31302         * modules/accept: New file.
31303         * modules/bind: New file.
31304         * modules/connect: New file.
31305         * modules/getpeername: New file.
31306         * modules/getsockname: New file.
31307         * modules/getsockopt: New file.
31308         * modules/listen: New file.
31309         * modules/recv: New file.
31310         * modules/recvfrom: New file.
31311         * modules/send: New file.
31312         * modules/sendto: New file.
31313         * modules/setsockopt: New file.
31314         * modules/socket: New file.
31315         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
31316         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31317         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
31318         the particular module is requested. Add a link warning when the
31319         particular module is not requested.
31320         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
31321         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
31322         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
31323         the particular module is requested.
31324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
31325         gl_SYS_SOCKET_H_DEFAULTS): New macros.
31326         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
31327         * modules/sys_socket (Depends-on): Add link-warning.
31328         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
31329         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
31330         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
31331         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
31332         GL_LINK_WARNING.
31333         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
31334         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31335         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31336         * doc/posix-functions/getpeername.texi: Mention the new module
31337         'getpeername'.
31338         * doc/posix-functions/getsockname.texi: Mention the new module
31339         'getsockname'.
31340         * doc/posix-functions/getsockopt.texi: Mention the new module
31341         'getsockopt'.
31342         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31343         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31344         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31345         * doc/posix-functions/send.texi: Mention the new module 'send'.
31346         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31347         * doc/posix-functions/setsockopt.texi: Mention the new module
31348         'setsockopt'.
31349         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31350         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31351         listen, connect, accept.
31352         * modules/select-tests (Depends-on): Likewise.
31353
31354 2008-10-05  Bruno Haible  <bruno@clisp.org>
31355
31356         * lib/winsock.c (strerror): Remove unused #undef.
31357         (rpl_close): Remove unused local variable.
31358
31359         * modules/sys_socket (Depends-on); Add errno.
31360
31361 2008-10-05  Bruno Haible  <bruno@clisp.org>
31362
31363         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31364         (select): Add a link warning when the 'select' module is not used.
31365         * modules/sys_select (Depends-on): Add link-warning.
31366         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31367         Suggested by Paolo Bonzini.
31368
31369 2008-10-05  Jim Meyering  <meyering@redhat.com>
31370
31371         bootstrap: check for LT_INIT more portably
31372         * build-aux/bootstrap: Avoid using grep -E, since it's not
31373         portable enough.  Suggestion from Bruno Haible.
31374
31375 2008-10-05  Bruno Haible  <bruno@clisp.org>
31376
31377         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31378         as being fixed by gnulib.
31379
31380 2008-10-05  Bruno Haible  <bruno@clisp.org>
31381
31382         * modules/select-tests: New file, mostly copied from
31383         modules/sys_select-tests.
31384         * tests/test-select.c: New file, mostly copied from
31385         tests/test-sys_select.c.
31386         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31387         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31388         (Makefile.am): Remove test_sys_select_LDADD.
31389
31390         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31391         to an undefined symbol, for an error message.
31392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31393         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31394         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31395         winsock-select.c here.
31396         * modules/sys_select (Files): Remove lib/winsock-select.c.
31397         (Depends-on): Remove alloca.
31398         (Makefile.am): Substitute GNULIB_SELECT.
31399         * modules/select: New file.
31400         * doc/posix-functions/select.texi: Update.
31401
31402 2008-10-05  Bruno Haible  <bruno@clisp.org>
31403
31404         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31405         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31406         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31407         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31408         getdtablesize.
31409         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31410         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31411
31412 2008-10-05  Bruno Haible  <bruno@clisp.org>
31413
31414         * modules/getdtablesize-tests: New file.
31415         * tests/test-getdtablesize.c: New file.
31416
31417         New module 'getdtablesize'.
31418         * lib/unistd.in.h (getdtablesize): New declaration.
31419         * lib/getdtablesize.c: New file.
31420         * m4/getdtablesize.m4: New file.
31421         * modules/getdtablesize: New file.
31422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31423         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31424         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31425         HAVE_GETDTABLESIZE.
31426         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31427
31428 2008-10-05  Bruno Haible  <bruno@clisp.org>
31429
31430         * modules/sched (Makefile.am): Fix typo.
31431         Reported by Simon Josefsson.
31432
31433 2008-10-05  Jim Meyering  <meyering@redhat.com>
31434
31435         bootstrap: check for LT_INIT, too
31436         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31437         are deprecated.  Suggestion from Ralf Wildenhues.
31438
31439 2008-10-05  Bruno Haible  <bruno@clisp.org>
31440
31441         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31442         overriding them by ours.
31443         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31444
31445 2008-10-05  Jim Meyering  <meyering@redhat.com>
31446
31447         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31448         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31449         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31450
31451 2008-10-04  Bruno Haible  <bruno@clisp.org>
31452
31453         * modules/dup2 (License): Change to LGPLv2+.
31454         * modules/sleep (License): Likewise.
31455         * modules/perror (License): Likewise.
31456         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31457         Blake.
31458         * modules/signal (License): Likewise.
31459         * modules/sigprocmask (License): Likewise.
31460         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31461         Meyering.
31462
31463 2008-10-04  Bruno Haible  <bruno@clisp.org>
31464
31465         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31466         Reported by Rainer Tammer <tammer@tammer.net>.
31467
31468 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31469             Bruno Haible  <bruno@clisp.org>
31470
31471         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31472         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31473         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31474
31475 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31476
31477         filevercmp: new module
31478         * lib/filevercmp.h: New function filevercmp comparing version strings.
31479         * lib/filevercmp.c: Implementation of filevercmp function.
31480         * modules/filevercmp: Module metadata.
31481         * tests/test-filevercmp.c: Unit test for new module.
31482         * modules/filevercmp-tests: Unit test metadata.
31483         * MODULES.html.sh: Add filevercmp module.
31484
31485 2008-10-03  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/c-ctype.h: Add comment.
31488         Reported by Jim Meyering.
31489
31490 2008-10-02  Bruno Haible  <bruno@clisp.org>
31491
31492         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31493
31494 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31495
31496         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31497         name of bootstrap.conf accordingly.
31498
31499 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31500
31501         * build-aux/bootstrap: Install git-merge-changelog configuration
31502         items into .gitconfig if needed.
31503
31504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31505
31506         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31507         git repository, and initialize/update it accordingly.
31508
31509 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31510
31511         * modules/fsync-tests: New file.
31512         * tests/test-fsync.c: New file.
31513
31514         New module 'fsync'.
31515         * lib/fsync.c: New file.
31516         * m4/fsync.m4: New file.
31517         * modules/fsync: New file.
31518         * lib/unistd.in.h (fsync): New declaration.
31519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31520         GNULIB_FSYNC and HAVE_FSYNC.
31521         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31522         * MODULES.html.sh (posix_functions): Add fsync.
31523         * doc/posix-functions/fsync.texi: Mention the new module.
31524
31525 2008-10-02  Jim Meyering  <meyering@redhat.com>
31526
31527         fts.c: sync with similar code from coreutils' remove.c
31528         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31529         Guard also with "#if defined __linux__", since for now at least,
31530         this code is Linux-kernel-specific.
31531
31532 2008-10-02  Jim Meyering  <meyering@redhat.com>
31533
31534         fts: bug fixes
31535         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31536         Include <sys/vfs.h>, not <sys/statfs.h>.
31537
31538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31539         Include <sys/vfs.h>, not <sys/statfs.h>.
31540
31541 2008-10-01  Bruno Haible  <bruno@clisp.org>
31542
31543         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31545         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31546         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31547         * doc/posix-functions/posix_spawnp.texi: Likewise.
31548         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31549         whether posix_spawn actually works.
31550         * m4/pipe.m4 (gl_PIPE): Likewise.
31551         * modules/execute (Files): Add m4/posix_spawn.m4.
31552         * modules/pipe (Files): Add m4/posix_spawn.m4.
31553         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31554
31555 2008-10-01  Jim Meyering  <meyering@redhat.com>
31556
31557         remove trailing spaces
31558         * NEWS: Likewise.
31559         * lib/poll.c (poll): Likewise.
31560         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31561         * lib/winsock.c (rpl_close): Likewise.
31562         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31563         * modules/yield: Likewise.
31564         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31565         * tests/test-sys_select.c (connect_to_socket): Likewise.
31566
31567         fts.c: adjust a new interface to be more generally useful
31568         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31569         (fts_build): Adjust caller.
31570
31571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31572
31573         * modules/cond-tests: New file.
31574         * tests/test-cond.c: New file.
31575
31576 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31577             Bruno Haible  <bruno@clisp.org>
31578
31579         * modules/cond (Dependencies): Add errno, time.
31580         * lib/glthread/cond.h: Include <time.h>.
31581         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31582         across platforms.
31583
31584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31585             Bruno Haible  <bruno@clisp.org>
31586
31587         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31588
31589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31590             Bruno Haible  <bruno@clisp.org>
31591
31592         * modules/tls-tests (Depends-on): Add thread, yield.
31593         (configure.ac): Remove all checks.
31594         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31595         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31596         gl_thread_self): Remove definitions. Include glthread/thread.h and
31597         glthread/yield.h instead.
31598         (test_tls): Pass an additional NULL argument to gl_thread_join.
31599
31600 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31601             Bruno Haible  <bruno@clisp.org>
31602
31603         * modules/lock-tests (Depends-on): Add thread, yield.
31604         (configure.ac): Remove all checks.
31605         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31606         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31607         gl_thread_self): Remove definitions. Include glthread/thread.h and
31608         glthread/yield.h instead.
31609         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31610         additional NULL argument to gl_thread_join.
31611
31612 2008-09-30  Bruno Haible  <bruno@clisp.org>
31613
31614         Fix the Win32 implementation of the 'thread' module.
31615         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31616         pointer type.
31617         (gl_thread_self): Invoke gl_thread_self_func.
31618         (gl_thread_self_func): New declaration.
31619         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31620         (do_init_self_key, init_self_key): New functions.
31621         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31622         Remove some fields.
31623         (running_threads, running_lock): Remove variables.
31624         (get_current_thread_handle): New function.
31625         (gl_thread_self_func, wrapper_func, glthread_create_func,
31626         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31627         simplified.
31628
31629 2008-09-30  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31632         files.
31633
31634 2008-09-30  Jim Meyering  <meyering@redhat.com>
31635
31636         fts.m4: correct the test for statfs.f_type
31637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31638         when checking for statfs.f_type.
31639
31640 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31641
31642         tests: avoid some compiler warnings
31643         * tests/test-memchr.c (main): Pass NULL indirectly.
31644         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31645
31646 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
31647
31648         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31649         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31650         exactly specified dayshifts.
31651         (dayshift): New rule.
31652         (rel): Add dayshift.
31653         (relative_time_table) [tomorrow, yesterday, today, now]:
31654         Use tDAY_SHIFT in place of tDAY_UNIT.
31655         * tests/test-getdate.c: Add tests for now-disallowed countable
31656         dayshifts, e.g., "4 yesterday ago".
31657
31658 2008-09-29  Bruno Haible  <bruno@clisp.org>
31659
31660         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31661         * tests/test-posix_spawn1.in.sh: Renamed from
31662         tests/test-posix_spawn.in.sh.
31663         * tests/test-posix_spawn2.c: New file.
31664         * tests/test-posix_spawn2.in.sh: New file.
31665         * modules/posix_spawnp-tests (Files): Update.
31666         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31667
31668 2008-09-29  Bruno Haible  <bruno@clisp.org>
31669
31670         Propagate effects of putenv/setenv/unsetenv to child processes.
31671         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31672         * lib/pipe.c (create_pipe): Likewise.
31673
31674 2008-09-29  Bruno Haible  <bruno@clisp.org>
31675
31676         Enable use of shell scripts as executables in mingw.
31677         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31678         run the program as a shell script.
31679         * lib/pipe.c (create_pipe): Likewise.
31680         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31681         resulting array.
31682
31683 2008-09-29  Eric Blake  <ebb9@byu.net>
31684
31685         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31686
31687 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31688
31689         * doc/posix-functions/accept.texi: Update mingw problems.
31690         * doc/posix-functions/bind.texi: Update mingw problems.
31691         * doc/posix-functions/close.texi: Update mingw problems.
31692         * doc/posix-functions/connect.texi: Update mingw problems.
31693         * doc/posix-functions/getpeername.texi: Update mingw problems.
31694         * doc/posix-functions/getsockname.texi: Update mingw problems.
31695         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31696         * doc/posix-functions/ioctl.texi: Update mingw problems.
31697         * doc/posix-functions/listen.texi: Update mingw problems.
31698         * doc/posix-functions/recv.texi: Update mingw problems.
31699         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31700         * doc/posix-functions/select.texi: Update mingw problems.
31701         * doc/posix-functions/send.texi: Update mingw problems.
31702         * doc/posix-functions/sendto.texi: Update mingw problems.
31703         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31704         * doc/posix-functions/socket.texi: Update mingw problems.
31705
31706 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31707             Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/sys_select.in.h: Include sys/time.h.
31710         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31711         * modules/sys_select: Depend on sys_time.
31712         * tests/test-sys_select.c: Test that sys/select.h defines struct
31713         timeval fully.
31714
31715 2008-09-29  Bruno Haible  <bruno@clisp.org>
31716
31717         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31718         * lib/sys_select.in.h: Likewise.
31719
31720 2008-09-29  Bruno Haible  <bruno@clisp.org>
31721
31722         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31723
31724 2008-09-29  Bruno Haible  <bruno@clisp.org>
31725
31726         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31727         Set LIBSOCKET instead of augmenting LIBS.
31728         * modules/sockets (Link): New section.
31729         * modules/sockets-tests (test_sockets_LDADD): New variable.
31730         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31731         * modules/poll-tests (test_poll_LDADD): New variable.
31732         * NEWS: Document the change.
31733
31734 2008-09-29  Bruno Haible  <bruno@clisp.org>
31735
31736         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31737         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31738         ARPA_INET_H directly.
31739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31740
31741 2008-09-28  Bruno Haible  <bruno@clisp.org>
31742
31743         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31744         from gl_HEADER_SYS_SOCKET.
31745         (gl_HEADER_SYS_SOCKET): Invoke it.
31746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31747
31748 2008-09-28  Bruno Haible  <bruno@clisp.org>
31749
31750         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31751         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31752         Needed on OSF/1 4.0.
31753
31754 2008-09-28  Bruno Haible  <bruno@clisp.org>
31755
31756         Override open more carefully.
31757         * lib/open.c (orig_open): New function.
31758         (rpl_open): Use orig_open instead of open.
31759         * lib/fcntl.in.h: Add special invocation convention.
31760         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31761         (gl_FUNC_OPEN): Invoke it.
31762
31763         Override freopen more carefully.
31764         * lib/freopen.c (orig_freopen): New function.
31765         (rpl_freopen): Use orig_freopen instead of freopen.
31766         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31767         (gl_FUNC_FREOPEN): Invoke it.
31768
31769         Override fopen more carefully.
31770         * lib/fopen.c (orig_fopen): New function.
31771         (rpl_fopen): Use orig_fopen instead of fopen.
31772         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31773         (gl_FUNC_FOPEN): Invoke it.
31774         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31775
31776 2008-09-28  Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31779         SIGPIPE.
31780
31781 2008-09-28  Bruno Haible  <bruno@clisp.org>
31782
31783         * tests/test-sigaction.c (handler, main): Disable the check whether
31784         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31785         glibc systems with LinuxThreads.
31786
31787 2008-09-28  Bruno Haible  <bruno@clisp.org>
31788
31789         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31790
31791         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31792         with AIX xlc.
31793         * lib/fcntl.in.h (open): Likewise.
31794         Reported by Rainer Tammer <tammer@tammer.net>.
31795
31796 2008-09-28  Bruno Haible  <bruno@clisp.org>
31797
31798         * modules/posix_spawnp-tests: New file.
31799         * tests/test-posix_spawn.c: New file.
31800         * tests/test-posix_spawn.in.sh: New file.
31801
31802         New module 'posix_spawnp'.
31803         * modules/posix_spawnp: New file.
31804         * lib/spawnp.c: New file, from GNU libc with modifications.
31805         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31806
31807         New module 'posix_spawn'.
31808         * modules/posix_spawn: New file.
31809         * lib/spawn.c: New file, from GNU libc with modifications.
31810         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31811
31812         New module 'posix_spawnattr_destroy'.
31813         * modules/posix_spawnattr_destroy: New file.
31814         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31815         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31816         module.
31817
31818         New module 'posix_spawnattr_setsigmask'.
31819         * modules/posix_spawnattr_setsigmask: New file.
31820         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31821         modifications.
31822         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31823         new module.
31824
31825         New module 'posix_spawnattr_getsigmask'.
31826         * modules/posix_spawnattr_getsigmask: New file.
31827         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31828         modifications.
31829         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31830         new module.
31831
31832         New module 'posix_spawnattr_setsigdefault'.
31833         * modules/posix_spawnattr_setsigdefault: New file.
31834         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31835         modifications.
31836         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31837         new module.
31838
31839         New module 'posix_spawnattr_getsigdefault'.
31840         * modules/posix_spawnattr_getsigdefault: New file.
31841         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31842         modifications.
31843         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31844         new module.
31845
31846         New module 'posix_spawnattr_setschedpolicy'.
31847         * modules/posix_spawnattr_setschedpolicy: New file.
31848         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31849         modifications.
31850         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31851         new module.
31852
31853         New module 'posix_spawnattr_getschedpolicy'.
31854         * modules/posix_spawnattr_getschedpolicy: New file.
31855         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31856         modifications.
31857         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31858         new module.
31859
31860         New module 'posix_spawnattr_setschedparam'.
31861         * modules/posix_spawnattr_setschedparam: New file.
31862         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31863         modifications.
31864         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31865         new module.
31866
31867         New module 'posix_spawnattr_getschedparam'.
31868         * modules/posix_spawnattr_getschedparam: New file.
31869         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31870         modifications.
31871         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31872         new module.
31873
31874         New module 'posix_spawnattr_setpgroup'.
31875         * modules/posix_spawnattr_setpgroup: New file.
31876         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31877         modifications.
31878         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31879         module.
31880
31881         New module 'posix_spawnattr_getpgroup'.
31882         * modules/posix_spawnattr_getpgroup: New file.
31883         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31884         modifications.
31885         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31886         module.
31887
31888         New module 'posix_spawnattr_setflags'.
31889         * modules/posix_spawnattr_setflags: New file.
31890         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31891         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31892         module.
31893
31894         New module 'posix_spawnattr_getflags'.
31895         * modules/posix_spawnattr_getflags: New file.
31896         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31897         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31898         module.
31899
31900         New module 'posix_spawnattr_init'.
31901         * modules/posix_spawnattr_init: New file.
31902         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31903         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31904         module.
31905
31906         New module 'posix_spawn_file_actions_destroy'.
31907         * modules/posix_spawn_file_actions_destroy: New file.
31908         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31909         modifications.
31910         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31911         the new module.
31912
31913         New module 'posix_spawn_file_actions_addopen'.
31914         * modules/posix_spawn_file_actions_addopen: New file.
31915         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31916         modifications.
31917         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31918         the new module.
31919
31920         New module 'posix_spawn_file_actions_adddup2'.
31921         * modules/posix_spawn_file_actions_adddup2: New file.
31922         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31923         modifications.
31924         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31925         the new module.
31926
31927         New module 'posix_spawn_file_actions_addclose'.
31928         * modules/posix_spawn_file_actions_addclose: New file.
31929         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31930         modifications.
31931         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31932         the new module.
31933
31934         New module 'posix_spawn_file_actions_init'.
31935         * modules/posix_spawn_file_actions_init: New file.
31936         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31937         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31938         new module.
31939
31940         New module 'posix_spawn-internal'.
31941         * modules/posix_spawn-internal: New file.
31942         * lib/spawn_int.h: New file, from GNU libc with modifications.
31943         * lib/spawni.c: New file, from GNU libc with modifications.
31944         * m4/posix_spawn.m4: New file.
31945
31946         New module 'spawn'.
31947         * modules/spawn: New file.
31948         * lib/spawn.in.h: New file, from GNU libc with modifications.
31949         * m4/spawn_h.m4: New file.
31950         * doc/posix-headers/spawn.texi: Mention the new module.
31951
31952 2008-09-28  Bruno Haible  <bruno@clisp.org>
31953
31954         * modules/sched-tests: New file.
31955         * tests/test-sched.c: New file.
31956
31957         New module 'sched'.
31958         * modules/sched: New file.
31959         * lib/sched.in.h: New file.
31960         * m4/sched_h.m4: New file.
31961         * doc/posix-headers/sched.texi: Mention the new module.
31962
31963 2008-09-27  Eric Blake  <ebb9@byu.net>
31964
31965         Fix previous patch, and tweak references to $0.
31966         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31967         (func_version, func_gnulib_dir): Don't call this program
31968         gnulib-tool.
31969         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31970         with using $0 in function.
31971         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31972         (func_fatal_error): Reuse the name the user invoked us with.
31973
31974 2008-09-27  Bruno Haible  <bruno@clisp.org>
31975
31976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31977         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31978         (gl_ICONV_H): Not here.
31979         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31980         instead of assigning ICONV_H directly.
31981
31982         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31984         WCHAR_H directly.
31985
31986 2008-09-27  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31989         * modules/arpa_inet (Depends-on): Add link-warning.
31990         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31991         * modules/unistd (Makefile.am): Likewise.
31992
31993 2008-09-26  Bruno Haible  <bruno@clisp.org>
31994
31995         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31996         variables.
31997         (func_version): Essentially copied from gnulib-tool.
31998         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31999         func_readlink): Copied from gnulib-tool.
32000
32001 2008-09-26  Bruno Haible  <bruno@clisp.org>
32002
32003         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32004         invoking git-version-gen.
32005
32006 2008-09-26  Bruno Haible  <bruno@clisp.org>
32007
32008         * posix-modules: Update to directory names changed on 2008-01-19.
32009         Remove commas in output before splitting into words. No more need to
32010         avoid 'ftruncate' since 2007-02-19.
32011
32012 2008-09-26  Bruno Haible  <bruno@clisp.org>
32013
32014         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32015
32016 2008-09-26  Bruno Haible  <bruno@clisp.org>
32017
32018         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32019         * modules/fwriteerror (Depends-on): Add errno.
32020
32021 2008-09-26  Bruno Haible  <bruno@clisp.org>
32022
32023         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32024         * tests/test-vc-list-files-cvs.sh: Likewise.
32025
32026 2008-09-26  Bruno Haible  <bruno@clisp.org>
32027
32028         * doc/posix-headers/sys_resource.texi: Reorder items.
32029
32030 2008-09-26  Jim Meyering  <meyering@redhat.com>
32031
32032         fts: tweak inode comparison function
32033         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32034         inode numbers, as documented.
32035
32036         fts: sort dirent entries on inode number before traversing
32037         This avoids a quadratic, seek-related performance penalty when
32038         operating on a directory containing many entries (measurable at 10k;
32039         3.5 hours at 2 million entries with a cold cache) on certain types
32040         of file systems, including ext3 and ext4, but not tmpfs.
32041         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32042         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32043         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32044         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32045         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32046         (fts_build): Set the stat.st_ino member from D_INO.
32047         If it is likely to be useful, sort dirent entries on inode number.
32048
32049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32050         and the struct statfs.f_type member.
32051         * modules/fts (Depends-on): Add d-ino.
32052
32053 2008-09-26  Bruno Haible  <bruno@clisp.org>
32054
32055         * modules/sigpipe-die (Depends-on): Add sigpipe.
32056
32057         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32058         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32059         and GNULIB_STDIO_H_SIGPIPE are set.
32060         * lib/stdio-write.c: New file.
32061         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32064         REPLACE_STDIO_WRITE_FUNCS.
32065         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32068         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32069         * modules/stdio (Files): Add lib/stdio-write.c.
32070         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32071         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32072         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32073         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32074         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32075         REPLACE_FPRINTF_POSIX.
32076         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32077         REPLACE_PRINTF_POSIX.
32078         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32079         REPLACE_VFPRINTF_POSIX.
32080         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32081         REPLACE_VPRINTF_POSIX.
32082         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32083         SIGPIPE issue.
32084         * doc/posix-functions/fputc.texi: Likewise.
32085         * doc/posix-functions/fputs.texi: Likewise.
32086         * doc/posix-functions/fwrite.texi: Likewise.
32087         * doc/posix-functions/printf.texi: Likewise.
32088         * doc/posix-functions/putc.texi: Likewise.
32089         * doc/posix-functions/putchar.texi: Likewise.
32090         * doc/posix-functions/puts.texi: Likewise.
32091         * doc/posix-functions/vfprintf.texi: Likewise.
32092         * doc/posix-functions/vprintf.texi: Likewise.
32093
32094         * modules/safe-write (Depends-on): Add write.
32095
32096         * modules/sigpipe-tests: New file.
32097         * tests/test-sigpipe.c: New file.
32098         * tests/test-sigpipe.sh: New file.
32099
32100         * modules/write: New file.
32101         * lib/unistd.in.h: Include <sys/types.h>.
32102         (write): New declaration.
32103         * lib/write.c: New file.
32104         * m4/write.m4: New file.
32105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32106         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32107         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32108         GNULIB_WRITE, REPLACE_WRITE.
32109         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32110         and the SIGPIPE issue.
32111
32112         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32113         (raise): New declaration.
32114         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32115         (ext_signal): New function.
32116         (rpl_raise): New function.
32117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32118         GNULIB_SIGNAL_H_SIGPIPE.
32119         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32120         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32121
32122         * modules/sigpipe: New file.
32123         * m4/sigpipe.m4: New file.
32124
32125 2008-09-25  Derek Price  <derek@ximbiot.com>
32126             Bruno Haible  <bruno@clisp.org>
32127
32128         * gnulib-tool (func_import): Report all license incompatibilities, not
32129         just the first one.
32130
32131 2008-09-25  Bruno Haible  <bruno@clisp.org>
32132
32133         * gnulib-tool (func_import): When computing the edits, consider not
32134         only the Makefile.ams that exist but also those that will be generated.
32135
32136 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32137
32138         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32139         fixes gnulib-tool --test warning about duplicate dependency.
32140
32141 2008-09-25  Bruno Haible  <bruno@clisp.org>
32142
32143         * gnulib-tool: Don't ask the user to perform edits in the generated
32144         Makefile.ams.
32145         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32146         apply to the Makefile.am being generated.
32147         (func_emit_tests_Makefile_am): Execute edits that apply to the
32148         Makefile.am being generated.
32149         (func_import): Setup list of Makefile.am edits before emitting the
32150         Makefile.ams, not at the end.
32151         (func_create_testdir): Update.
32152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32153
32154 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32155
32156         * gnulib-tool (func_import): Store the --tests-base option in the
32157         comment in gnulib-cache.m4.
32158
32159 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32160
32161         * NEWS: Document increased portability that sys_select now provides.
32162
32163         * lib/sys_select.in.h: Install select wrapper.
32164         * lib/sys_socket.in.h: Use more descriptive name when there is no
32165         select wrapper.
32166         * lib/winsock-select.c: New.
32167         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32168         Require gl_HEADER_SYS_SOCKET.
32169         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32170         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32171         * tests/test-sys_select.c: Add functional tests.
32172
32173 2008-09-24  Eric Blake  <ebb9@byu.net>
32174
32175         open, fopen: close fd leak in last patch
32176         * lib/open.c (rpl_open): Close fd before returning error.
32177         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32178         * doc/posix-functions/open.texi (open): Document that Irix also
32179         has the bug.
32180         * doc/posix-functions/fopen.texi (fopen): Likewise.
32181         Reported by Paolo Bonzini.
32182
32183 2008-09-24  Bruno Haible  <bruno@clisp.org>
32184
32185         Ensure that a filename ending in a slash cannot be used to access a
32186         non-directory.
32187         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32188         to check whether it's really a directory.
32189         * lib/fopen.c: Include fcntl.h, unistd.h.
32190         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32191         and fdopen().
32192         * modules/fopen (Depends-on): Add unistd.
32193         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32194         * tests/test-fopen.c (main): Likewise.
32195         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32196         * doc/posix-functions/fopen.texi: Likewise.
32197         Reported by Eric Blake.
32198
32199 2008-09-23  Eric Blake  <ebb9@byu.net>
32200
32201         c-stack: avoid compiler optimizations when provoking overflow
32202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32203         recursion harder to optimize, to ensure a stack overflow occurs.
32204         * tests/test-c-stack.c (recurse): Likewise.
32205         Borrowed from libsigsegv.
32206
32207         c-stack: work around Irix sigaltstack bug
32208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32209         whether sigaltstack uses wrong end of stack_t (copied in part from
32210         libsigsegv).
32211         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32212         Irix bug, without requiring an over-allocation.
32213         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32214         bug.
32215
32216         fopen: document mingw bug on directories
32217         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32218         not allowing a stream visiting a directory, even though reading
32219         from such a stream is not portable.
32220
32221 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32222
32223         * lib/poll.c: Rewrite.
32224         * modules/poll: Depend on alloca.
32225
32226 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32227
32228         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32229         instead define prototypes for a full set of wrappers.  Ensure
32230         that Cygwin does not use the compatibility code, which is only
32231         for MinGW.
32232         * lib/winsock.c: New.
32233         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32234         * modules/sys_socket: Add lib/winsock.c.
32235
32236         * modules/poll-tests: Add errno and perror.
32237         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32238
32239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32240
32241         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32242
32243 2008-09-23  Bruno Haible  <bruno@clisp.org>
32244
32245         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32246         * doc/glibc-functions/*: Likewise.
32247
32248 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32249
32250         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32251         success.
32252
32253 2008-09-22  Eric Blake  <ebb9@byu.net>
32254             Bruno Haible  <bruno@clisp.org>
32255
32256         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32257         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32258         supply %A but mishandle pseudo-NaN.
32259         Reported by Simon Josefsson.
32260
32261 2008-09-21  Bruno Haible  <bruno@clisp.org>
32262
32263         * tests/test-lock.c (main): Tweak skip message.
32264         * tests/test-tls.c (main): Likewise.
32265
32266 2008-09-21  Bruno Haible  <bruno@clisp.org>
32267
32268         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32269         whether 'struct sigaction' has sa_sigaction here...
32270         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32271         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32272
32273 2008-09-21  Bruno Haible  <bruno@clisp.org>
32274
32275         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32276         section.
32277         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32278         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32279         the new section.
32280         (Support for obsolete systems lacking POSIX:2001): New section.
32281         (String handling <string.h>): Move strdup to the new section.
32282         Suggested by Simon Josefsson and Paolo Bonzini.
32283
32284 2008-09-21  Bruno Haible  <bruno@clisp.org>
32285
32286         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32287         exponents in %e and %g results on 'long double'. Needed for mingw's
32288         improved *printf functions.
32289         * tests/test-vasprintf-posix.c (test_function): Likewise.
32290         * tests/test-snprintf-posix.h (test_function): Likewise.
32291         * tests/test-sprintf-posix.h (test_function): Likewise.
32292         Reported by Eric Blake.
32293
32294 2008-09-21  Bruno Haible  <bruno@clisp.org>
32295
32296         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
32297         * tests/test-sprintf-posix.h (test_function): Likewise.
32298
32299 2008-09-21  Bruno Haible  <bruno@clisp.org>
32300
32301         * modules/getpass (Depends-on): Add strdup-posix.
32302
32303         New module 'strdup-posix'.
32304         * modules/strdup-posix: New file.
32305         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
32306         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
32307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32308         REPLACE_STRDUP.
32309         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
32310         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
32311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32312         strdup-posix.
32313
32314         * modules/strdup (Depends-on): Remove malloc-posix.
32315
32316 2008-09-20  Bruno Haible  <bruno@clisp.org>
32317
32318         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
32319         Wildenhues.
32320
32321 2008-09-20  Bruno Haible  <bruno@clisp.org>
32322
32323         Ensure that wint_t gets defined on IRIX 5.3.
32324         * lib/wchar.in.h (wint_t): Define if not defined by the system.
32325         * lib/wctype.in.h (wint_t): Likewise.
32326         (__wctype_wint_t): Remove type.
32327         (isw*): Use wint_t instead of __wctype_wint_t.
32328         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
32329         * modules/wchar (Files): Add m4/wint_t.m4.
32330         (Makefile.am): Substitute HAVE_WINT_T.
32331         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
32332         * tests/test-wctype.c: Check that wint_t is defined.
32333         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
32334         * doc/posix-headers/wctype.texi: Likewise.
32335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32336
32337 2008-09-18  Bruno Haible  <bruno@clisp.org>
32338
32339         * gnulib-tool (func_exit): Update comment.
32340
32341 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32342
32343         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32344         assumes strdup exists and does not depend on strdup to return
32345         ENOMEM on out of memory conditions.
32346
32347 2008-09-18  Bruno Haible  <bruno@clisp.org>
32348
32349         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
32350         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32351         digits for the exponent.
32352
32353 2008-09-18  Jim Meyering  <meyering@redhat.com>
32354             Bruno Haible  <bruno@clisp.org>
32355
32356         * lib/vasnprintf.c (decimal_point_char): Define also if
32357         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32358
32359 2008-09-16  Bruno Haible  <bruno@clisp.org>
32360         and Eric Blake  <ebb9@byu.net>
32361
32362         vasnprintf: support Irix 5.3
32363         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32364         that mishandle long double infinity.
32365         Reported by Tom G. Christensen.
32366
32367 2008-09-16  Bruno Haible  <bruno@clisp.org>
32368
32369         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32370         Solaris 9.
32371         * doc/glibc-functions/alphasort.texi: Likewise.
32372         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32373
32374 2008-09-16  Jim Meyering  <meyering@redhat.com>
32375
32376         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32377         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32378         a umask modification leak out of a subshell.  Otherwise, the
32379         opensolaris /bin/sh would be accepted and thus cause unwarranted
32380         failures in the coreutils test suite.
32381
32382 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32383
32384         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32385         to succeed.
32386
32387 2008-09-16  Jim Meyering  <meyering@redhat.com>
32388
32389         avoid spurious test failure when library is built without ACL support
32390         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32391         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32392         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32393         * tests/test-copy-acl.sh: Likewise.
32394
32395 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32396
32397         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32398         based on character occurrence counts.
32399
32400 2008-09-15  Eric Blake  <ebb9@byu.net>
32401
32402         tests: avoid some compiler warnings
32403         * tests/test-memchr.c (main): Pass NULL indirectly.
32404         * tests/test-closein.c (main): Avoid unused variable.
32405
32406 2008-09-15  Bruno Haible  <bruno@clisp.org>
32407
32408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32409         are missing on OpenBSD 4.0 individually.
32410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32411
32412 2008-09-15  Bruno Haible  <bruno@clisp.org>
32413
32414         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32415         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32416         * doc/posix-functions/perror.texi: Likewise.
32417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32418         is missing.
32419         Reported by Eric Blake.
32420
32421         * lib/errno.in.h: Use replacement values >= 2000.
32422         Reported by Eric Blake.
32423
32424 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32425
32426         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32427         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32428         limit.
32429         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32430         compareseq was aborted.
32431
32432 2008-09-14  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32435         yvec_edit_count.
32436         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32437         (fstrcmp_bounded): Simplify result computation accordingly.
32438
32439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32440
32441         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32442         (fstrcmp): Define in terms of fstrcmp_bounded.
32443         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32444         lower_bound argument.
32445         Return quickly if the result is certainly < lower_bound.
32446         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32447
32448 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32449
32450         * lib/diffseq.h (EARLY_ABORT): New macro.
32451         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32452         evaluates to true.
32453
32454 2008-09-14  Bruno Haible  <bruno@clisp.org>
32455
32456         * modules/perror-tests: New file.
32457         * tests/test-perror.sh: New file.
32458         * tests/test-perror.c: New file.
32459
32460         New module 'perror'.
32461         * lib/stdio.in.h (perror): New declaration.
32462         * lib/perror.c: New file.
32463         * m4/perror.m4: New file.
32464         * modules/perror: New file.
32465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32466         * doc/posix-functions/perror.texi: Mention the perror module.
32467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32468         REPLACE_PERROR.
32469         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32470         REPLACE_PERROR.
32471
32472 2008-09-14  Bruno Haible  <bruno@clisp.org>
32473
32474         * modules/stdio (Makefile.am): Reorder to match the order in
32475         lib/stdio.in.h.
32476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32477
32478 2008-09-13  Bruno Haible  <bruno@clisp.org>
32479
32480         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32481
32482 2008-09-13  Bruno Haible  <bruno@clisp.org>
32483
32484         Extend strerror to cover the added errno values.
32485         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32486         (rpl_strerror): Provide error messages for the added errno values and
32487         for the WSA* values.
32488         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32489         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32490         strerror.
32491         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32492         * modules/strerror (Depends-on): Add errno.
32493         * doc/posix-functions/strerror.texi: Document the change.
32494         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32495         and EOVERFLOW.
32496
32497 2008-09-13  Bruno Haible  <bruno@clisp.org>
32498
32499         * modules/EOVERFLOW: Remove file.
32500         * m4/eoverflow.m4: Remove file.
32501         * modules/EOVERFLOW-tests: Remove file.
32502         * tests/test-EOVERFLOW.c: Remove file.
32503         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32504         * modules/ftell (Depends-on): Likewise.
32505         * modules/getdelim (Depends-on): Likewise.
32506         * modules/getugroups (Depends-on): Likewise.
32507         * modules/poll (Depends-on): Likewise.
32508         * modules/snprintf (Depends-on): Likewise.
32509         * modules/sprintf-posix (Depends-on): Likewise.
32510         * modules/vasnprintf (Depends-on): Likewise.
32511         * modules/vasprintf (Depends-on): Likewise.
32512         * modules/vfprintf-posix (Depends-on): Likewise.
32513         * modules/vsnprintf (Depends-on): Likewise.
32514         * modules/vsprintf-posix (Depends-on): Likewise.
32515         * modules/xvasprintf (Depends-on): Likewise.
32516         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32517         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32518         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32519         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32520         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32521         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32522         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32523         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32525         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32526         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32527         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32528         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32529         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32530         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32531         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32533         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32534         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32535         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32537         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32538         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32539         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32540         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32541         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32542         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32543         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32544         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32545         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32546         * MODULES.html.sh: Remove EOVERFLOW.
32547         * NEWS: Mention the change.
32548
32549 2008-09-13  Bruno Haible  <bruno@clisp.org>
32550
32551         * modules/errno-tests: New file.
32552         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32553
32554         * lib/errno.in.h: New file.
32555         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32556         * modules/errno: New file.
32557         * doc/posix-headers/errno.texi: Update documentation.
32558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32559
32560 2008-09-13  Bruno Haible  <bruno@clisp.org>
32561
32562         * tests/test-poll.c: Use #if for native Windows, rather than testing
32563         __MSVCRT__.
32564
32565 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32566             Bruno Haible  <bruno@clisp.org>
32567
32568         * lib/glob.c: Don't include <pwd.h> on native Windows.
32569         (WINDOWS32): New macro.
32570         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32571
32572 2008-09-13  Bruno Haible  <bruno@clisp.org>
32573
32574         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32575         (ETIMEDOUT): Remove macro.
32576         (glthread_cond_timedwait_multithreaded): New declaration.
32577         (glthread_cond_timedwait): Use it.
32578         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32579         (glthread_cond_timedwait_multithreaded): New function.
32580
32581 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32582
32583         * modules/poll-tests: Do not check for io.h.
32584         * tests/test-poll.c: Check for __MSVCRT__ instead.
32585
32586 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32587
32588         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32589         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32590         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32591
32592 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32593
32594         * modules/poll-tests: New.
32595         * tests/test-poll.c: New.
32596
32597 2008-09-12  Eric Blake  <ebb9@byu.net>
32598
32599         frexp: test for NetBSD failure on -0.0
32600         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32601         not all, bugs from NetBSD 3.0 have been fixed.
32602         * doc/posix-functions/frexp.texi (frexp): Document bug.
32603         Reported by Thomas Klausner.
32604
32605         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32607         literal -0.0.
32608         Reported by Jonathan C. Patschke <jp@centtech.com>.
32609
32610 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32611
32612         * lib/glthread/cond.h: Use dummy implementation also if
32613         USE_WIN32_THREADS.
32614
32615 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32616
32617         * modules/fnmatch-posix (License): Change to LGPLv2+.
32618         * modules/fnmatch-gnu (License): Likewise.
32619
32620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32621
32622         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32623
32624 2008-09-11  Jim Meyering  <meyering@redhat.com>
32625
32626         * users.txt: Add gtk-vnc.
32627
32628 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32629
32630         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32631         rotate amounts.
32632
32633         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32634         required for 16-bit and 8-bit rotates.
32635         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32636         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32637         UINT8_MAX instead of hard-coded constants.
32638         Suggested by Paul Eggert.
32639
32640 2008-09-07  Bruno Haible  <bruno@clisp.org>
32641
32642         * tests/test-striconveh.c (main): Check behaviour when converting from
32643         UTF-7.
32644
32645         Make striconveh work better with stateful encodings.
32646         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32647         that iconv does not increment the inptr when returning -1/EINVAL.
32648
32649 2008-09-07  Bruno Haible  <bruno@clisp.org>
32650
32651         * build-aux/config.rpath: Update according to libtool-2.2.6.
32652         * build-aux/config.libpath: Likewise.
32653
32654 2008-09-06  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32657         * lib/freadptr.c (freadptr): Likewise.
32658         * lib/freadseek.c (freadptrinc): Likewise.
32659         Reported by Simon Josefsson.
32660
32661 2008-09-06  Bruno Haible  <bruno@clisp.org>
32662
32663         * modules/freadptr (License): Change to LGPLv2+.
32664         * modules/freadseek (License): Likewise.
32665         Suggested by Eric Blake.
32666
32667         * modules/memchr2 (License): Change to LGPLv2+.
32668         Approved by Eric Blake.
32669
32670 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32671             Bruno Haible  <bruno@clisp.org>
32672
32673         Make gnulib-tool work with native 'sed' on AIX.
32674         * gnulib-tool (sed_noop): New variable.
32675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32676         func_add_or_update, func_create_testdir): Use it to initialize sed
32677         script variables.
32678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32679
32680 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32681             Bruno Haible  <bruno@clisp.org>
32682
32683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32684         also works after #include directives.
32685
32686 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
32687
32688         getdate.y: reject an out-of-range timezone value
32689         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32690         the range [-24...+24].  When specified with only one or two digits,
32691         * tests/test-getdate.c: Tests for the fix.
32692         * doc/getdate.texi: Document this change.
32693
32694 2008-09-03  Bruno Haible  <bruno@clisp.org>
32695
32696         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32697
32698 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32699
32700         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32701         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32702         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32703         Blake <ebb9@byu.net>.
32704
32705         * tests/test-bitrotate.c: Add more test vectors.
32706
32707 2008-09-02  Eric Blake  <ebb9@byu.net>
32708
32709         vasnprintf-posix: handle large precision via %.*d
32710         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32711         when handling it ourselves.
32712         * tests/test-vasnprintf-posix.c (test_function): Add test.
32713         * tests/test-snprintf-posix.h (test_function): Likewise.
32714         * tests/test-sprintf-posix.h (test_function): Likewise.
32715         * tests/test-vasprintf-posix.c (test_function): Likewise.
32716         Reported by Alain Guibert.
32717
32718 2008-09-01  Eric Blake  <ebb9@byu.net>
32719
32720         c-stack: make configure-time check more robust
32721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32722         successful sigaction call.
32723         Reported by Tom G. Christensen.
32724
32725 2008-09-01  Bruno Haible  <bruno@clisp.org>
32726
32727         New module 'findprog-lgpl'.
32728         * modules/findprog-lgpl: New file.
32729         * lib/findprog-lgpl.c: New file.
32730         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32731         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32732         to decide whether to use strdup or xstrdup, concatenated_filename or
32733         xconcatenated_filename.
32734
32735 2008-09-01  Bruno Haible  <bruno@clisp.org>
32736
32737         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32738         'xconcat-filename' (GPL).
32739         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32740         (License): Change to LGPLv2+.
32741         * modules/xconcat-filename: New file.
32742         * lib/concat-filename.h (concatenated_filename): Change specification.
32743         (xconcatenated_filename): New declaration.
32744         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32745         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32746         memory situations.
32747         * lib/xconcat-filename.c: New file.
32748         * NEWS: Mention the change.
32749         * lib/findprog.c: Include concat-filename.h, not filename.h.
32750         (find_in_path): Use xconcatenated_filename instead of
32751         concatenated_filename.
32752         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32753         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32754         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32755         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32756         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32757         instead of concatenated_filename.
32758         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32759         (execute_java_class): Use xconcatenated_filename instead of
32760         concatenated_filename.
32761         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32762         * modules/javacomp (Depends-on): Likewise.
32763         * modules/javaexec (Depends-on): Likewise.
32764
32765 2008-09-01  Bruno Haible  <bruno@clisp.org>
32766
32767         Split module 'filename' into 'filename' and 'concat-filename'.
32768         * modules/filename: Keep only lib/filename.h.
32769         (License): Change to LGPLv2+.
32770         * modules/concat-filename: New file, extracted from modules/filename.
32771         * lib/filename.h (concatenated_filename): Remove declaration.
32772         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32773         * lib/concat-filename.c: Include concat-filename.h.
32774         * NEWS: Mention the change.
32775
32776 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32777
32778         * lib/bitrotate.h (rotl8, rotr8): Add.
32779
32780         * modules/bitrotate (configure.ac): Need
32781         AC_REQUIRE([AC_C_INLINE]).
32782         (Description): Mention stdint.h.  Reported by Bruno Haible
32783         <bruno@clisp.org>.
32784
32785         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32786         Paolo Bonzini <bonzini@gnu.org>.
32787
32788 2008-08-31  Bruno Haible  <bruno@clisp.org>
32789
32790         Assume Solaris specific bi-arch conventions on Solaris systems.
32791         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32792         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32794         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32795         like acl_libdirstem.
32796         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32797         acl_libdirstem.
32798         * NEWS: Mention the change.
32799         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32800
32801 2008-08-31  Jim Meyering  <meyering@redhat.com>
32802
32803         * lib/strftime.h: Add comments describing the two added arguments.
32804
32805         remove duplicate #include directives
32806         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32807         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32808
32809 2008-08-31  Bruno Haible  <bruno@clisp.org>
32810
32811         New module 'sigpipe-die'.
32812         * modules/sigpipe-die: New file.
32813         * lib/sigpipe-die.h: New file.
32814         * lib/sigpipe-die.c: New file.
32815         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32816
32817 2008-08-31  Bruno Haible  <bruno@clisp.org>
32818
32819         Don't override previously installed signal handlers.
32820         * lib/fatal-signal.c (saved_sigactions): New variable.
32821         (uninstall_handlers): Reset the signal to the saved handler, not
32822         to SIG_DFL (except when ignored).
32823         (install_handlers): Save the previous handlers.
32824
32825 2008-08-30  Bruno Haible  <bruno@clisp.org>
32826
32827         * gnulib-tool (func_reset_sigpipe): New function.
32828         (func_get_automake_snippet, func_modules_transitive_closure,
32829         func_import): Invoke it before a join command that reads from stdin,
32830         to avoid "echo: write error: Broken pipe" error messages on stderr.
32831         Reported by Sam Steingold <sds@gnu.org>.
32832
32833 2008-08-30  Bruno Haible  <bruno@clisp.org>
32834
32835         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32836         Code copied from m4/open.m4.
32837         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32838         access and the filename ends in a slash. Code copied from lib/open.c.
32839         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32840         * tests/test-fopen.c (main): Check against bug with trailing slash.
32841
32842 2008-08-29  Bruno Haible  <bruno@clisp.org>
32843
32844         Avoid some "gcc -pedantic" warnings.
32845         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32846         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32847         * lib/dirent.in.h: Likewise.
32848         * lib/fcntl.in.h: Likewise.
32849         * lib/float.in.h: Likewise.
32850         * lib/iconv.in.h: Likewise.
32851         * lib/inttypes.in.h: Likewise.
32852         * lib/locale.in.h: Likewise.
32853         * lib/math.in.h: Likewise.
32854         * lib/netinet_in.in.h: Likewise.
32855         * lib/search.in.h: Likewise.
32856         * lib/signal.in.h: Likewise.
32857         * lib/stdarg.in.h: Likewise.
32858         * lib/stdint.in.h: Likewise.
32859         * lib/stdio.in.h: Likewise.
32860         * lib/stdlib.in.h: Likewise.
32861         * lib/string.in.h: Likewise.
32862         * lib/strings.in.h: Likewise.
32863         * lib/sys_select.in.h: Likewise.
32864         * lib/sys_socket.in.h: Likewise.
32865         * lib/sys_stat.in.h: Likewise.
32866         * lib/sys_time.in.h: Likewise.
32867         * lib/sysexits.in.h: Likewise.
32868         * lib/time.in.h: Likewise.
32869         * lib/unistd.in.h: Likewise.
32870         * lib/wchar.in.h: Likewise.
32871         * lib/wctype.in.h: Likewise.
32872         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32873         * modules/fchdir (Makefile.am): Likewise.
32874         * modules/fcntl (Makefile.am): Likewise.
32875         * modules/float (Makefile.am): Likewise.
32876         * modules/iconv_open (Makefile.am): Likewise.
32877         * modules/inttypes (Makefile.am): Likewise.
32878         * modules/locale (Makefile.am): Likewise.
32879         * modules/math (Makefile.am): Likewise.
32880         * modules/netinet_in (Makefile.am): Likewise.
32881         * modules/search (Makefile.am): Likewise.
32882         * modules/signal (Makefile.am): Likewise.
32883         * modules/stdarg (Makefile.am): Likewise.
32884         * modules/stdint (Makefile.am): Likewise.
32885         * modules/stdio (Makefile.am): Likewise.
32886         * modules/stdlib (Makefile.am): Likewise.
32887         * modules/string (Makefile.am): Likewise.
32888         * modules/strings (Makefile.am): Likewise.
32889         * modules/sys_select (Makefile.am): Likewise.
32890         * modules/sys_socket (Makefile.am): Likewise.
32891         * modules/sys_stat (Makefile.am): Likewise.
32892         * modules/sys_time (Makefile.am): Likewise.
32893         * modules/sysexits (Makefile.am): Likewise.
32894         * modules/time (Makefile.am): Likewise.
32895         * modules/unistd (Makefile.am): Likewise.
32896         * modules/wchar (Makefile.am): Likewise.
32897         * modules/wctype (Makefile.am): Likewise.
32898         Reported by Reuben Thomas <rrt@sc3d.org>.
32899
32900 2008-08-29  Bruno Haible  <bruno@clisp.org>
32901
32902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32903         any more.
32904
32905 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32906
32907         * MODULES.html.sh (Misc): Add bitrotate.
32908
32909         * modules/bitrotate: New file.
32910
32911         * lib/bitrotate.h: New file.
32912
32913         * modules/bitrotate-tests: New file.
32914
32915         * tests/test-bitrotate.c: New file.
32916
32917         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32918         on the bitrotate module.
32919
32920         * lib/arctwo.c: Use new bitrotate module.
32921
32922 2008-08-29  Jim Meyering  <meyering@redhat.com>
32923
32924         bootstrap: merge changes from coreutils
32925         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32926         of copied files.  Remove a kludge, now that this is fixed.
32927         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32928         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32929         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32930
32931 2008-08-29  Bruno Haible  <bruno@clisp.org>
32932
32933         * MODULES.html.sh: Remove --cvs-urls option.
32934
32935 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32936
32937         maint.mk: adjust to file name change
32938         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32939
32940 2008-08-28  Jim Meyering  <meyering@redhat.com>
32941
32942         * modules/getndelim2 (License): Relicense to LGPLv2+.
32943         Approved by Richard Stallman for the version of 1995, and by
32944         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32945
32946 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32947
32948         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32949         dummy if one is not available.  Do not touch them if
32950         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32951         (getc_maybe_unlocked): New.
32952         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32953
32954 2008-08-26  Eric Blake  <ebb9@byu.net>
32955
32956         doc/INSTALL: resync from autoconf
32957         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32958         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32959         moving...
32960         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32961         * INSTALL: Regenerate.
32962         * INSTALL.ISO: New file.
32963         * INSTALL.UTF-8: Likewise.
32964
32965 2008-08-26  Jim Meyering  <meyering@redhat.com>
32966
32967         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32968         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32969         these definitions conditional, so that they may be overridden, too.
32970
32971 2008-08-26  Bruno Haible  <bruno@clisp.org>
32972
32973         Generate INSTALL file variants with prettier quotes.
32974         * doc/Makefile (INSTALL_PRELUDE): New macro.
32975         (INSTALL): Use it.
32976         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32977
32978 2008-08-26  Bruno Haible  <bruno@clisp.org>
32979
32980         Run makeinfo in an English locale.
32981         * doc/Makefile (MAKEINFO): New variable.
32982
32983 2008-08-26  Bruno Haible  <bruno@clisp.org>
32984
32985         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32986         Suggested by Eric Blake.
32987
32988 2008-08-25  Bruno Haible  <bruno@clisp.org>
32989
32990         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32991
32992 2008-08-25  Eric Blake  <ebb9@byu.net>
32993
32994         c-stack: test that stack overflow can be caught
32995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32996         that platform allows handling stack overflow; at least OS/2 EMX
32997         has sigaltstack, but crashes before transferring control to
32998         handler on stack overflow.
32999         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33000         check for HAVE_STACK_OVERFLOW_HANDLING.
33001         Reported by Elbert Pol.
33002
33003 2008-08-25  Bruno Haible  <bruno@clisp.org>
33004
33005         * doc/posix-functions/strftime.texi: Fix description of strftime
33006         module.
33007
33008 2008-08-24  Bruno Haible  <bruno@clisp.org>
33009
33010         * tests/uniwidth/test-uc_width2.c: New file.
33011         * tests/uniwidth/test-uc_width2.sh: New file.
33012         * modules/uniwidth/width-tests (Files): Add the new files.
33013         (TESTS): Add uniwidth/test-uc_width2.sh.
33014         (TESTS_ENVIRONMENT): New variable.
33015         (check_PROGRAMS): Add test-uc_width2.
33016         (test_uc_width2_SOURCES): New variable.
33017
33018         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33019         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33020         not 0x00AB.
33021         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33022
33023 2008-08-22  Eric Blake  <ebb9@byu.net>
33024
33025         test-lock, test-tls: mention why a test is skipped
33026         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33027         skipped.
33028         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33029
33030         count-one-bits: relax license
33031         * modules/count-one-bits (License): Relicense to LGPLv2+.
33032         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33033
33034 2008-08-22  Andreas Schwab  <schwab@suse.de>
33035
33036         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33037         Remove spurious space in assignment.
33038
33039 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33040
33041         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33042         Paul Eggert <eggert@CS.UCLA.EDU>.
33043
33044 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33045
33046         * modules/gettext: Add m4/threadlib.m4.
33047
33048 2008-08-19  Eric Blake  <ebb9@byu.net>
33049
33050         test-c-stack: fix compilation failure on FreeBSD 5.0
33051         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33052         headers before <sys/resource.h>.
33053         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33054         the bug.
33055         Reported by Nelson H. F. Beebe.
33056
33057         strverscmp: migrate from "strverscmp.h" to <string.h>
33058         * modules/string (Makefile.am): Add new hooks.
33059         * modules/strverscmp (Files): Remove strverscmp.h.
33060         (Depends-on): Add string.
33061         (configure.ac): Add indicator.
33062         (Include): Mention new header.
33063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33064         defaults.
33065         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33066         results.
33067         * lib/strverscmp.h: Delete.
33068         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33069         * tests/test-strverscmp.c (includes): Adjust client.
33070         * lib/check-version.c (includes): Likewise.
33071         * NEWS: Document the change.
33072
33073         strverscmp: add unit test
33074         * modules/strverscmp-tests: New file.
33075         * tests/test-strverscmp.c: Likewise.
33076
33077 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33078
33079         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33080         regarding Windows crypto stuff, from Mono.
33081
33082 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33083
33084         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33085         if present, for intel RND.  Return error on failures.
33086
33087 2008-08-18  Ben Pfaff  <blp@gnu.org>
33088
33089         gitlog-to-changelog: give better diagnostic for failed pipe-open
33090         * build-aux/gitlog-to-changelog: Improve error message: suggest
33091         that the version of Git may be too old.
33092
33093 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33094
33095         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33096         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33097
33098 2008-08-18  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33101         pthread_in_use().
33102
33103 2008-08-18  Bruno Haible  <bruno@clisp.org>
33104
33105         * lib/glthread/threadlib.c: Include <pthread.h>.
33106
33107 2008-08-18  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33110         glthread_recursive_lock_* macros.
33111         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33112         Fix syntax error.
33113
33114 2008-08-18  Bruno Haible  <bruno@clisp.org>
33115
33116         * lib/glthread/thread.c: Avoid forcing a context switch right after
33117         thread creation.
33118
33119 2008-08-17  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33122         * lib/glthread/thread.h: Provide Win32 specific implementation.
33123         * modules/thread (Files): Add lib/glthread/thread.c.
33124         (Depends-on): Add lock.
33125         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33126
33127 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33128
33129         New module 'yield'.
33130         * modules/yield: New file.
33131         * lib/glthread/yield.h: New file.
33132         * m4/yield.m4: New file.
33133         * MODULES.html.sh (Multithreading): Add yield.
33134
33135 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33136
33137         New module 'thread'.
33138         * modules/thread: New file.
33139         * lib/glthread/thread.h: New file.
33140         * m4/thread.m4: New file.
33141         * MODULES.html.sh (Multithreading): Add thread.
33142
33143 2008-08-17  Bruno Haible  <bruno@clisp.org>
33144
33145         * lib/glthread/lock.h: Include <stdlib.h> always.
33146         * lib/glthread/tls.h: Likewise.
33147         * lib/glthread/cond.h: Likewise.
33148
33149 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33150
33151         New module 'cond'.
33152         * modules/cond: New file.
33153         * lib/glthread/cond.h: New file.
33154         * lib/glthread/cond.c: New file.
33155         * m4/cond.m4: New file.
33156         * MODULES.html.sh (Multithreading): Add cond.
33157
33158 2008-08-16  Eric Blake  <ebb9@byu.net>
33159
33160         c-stack: fix regression on Irix 5.3 from 2008-06-21
33161         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33162         sa_sigaction...
33163         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33164         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33166         * modules/signal (Makefile.am): Use the value.
33167         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33168         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33169         * doc/posix-headers/signal.texi (signal.h): Document this
33170         portability issue.
33171         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33172         Reported by Tom G. Christensen.
33173
33174 2008-08-17  Bruno Haible  <bruno@clisp.org>
33175
33176         New module 'threadlib'.
33177         * modules/threadlib: New file.
33178         * lib/glthread/threadlib.c: New file, extracted from
33179         lib/glthread/lock.c.
33180         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33181         functions.
33182         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33183         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33184         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33185         macros.
33186         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33187         (gl_DISABLE_THREADS): Remove macro.
33188         * modules/lock (Files): Remove build-aux/config.rpath.
33189         (Depends-on): Remove havelib. Add threadlib.
33190         (configure.ac-early): Remove section.
33191         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33192         * modules/tls (Depends-on): Remove lock. Add threadlib.
33193         (Link): New section, copied from threadlib.
33194         * MODULES.html.sh (Multithreading): Add threadlib.
33195
33196 2008-08-14  Bruno Haible  <bruno@clisp.org>
33197
33198         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33199         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33200         glthread_rwlock_unlock, glthread_rwlock_destroy,
33201         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33202         glthread_recursive_lock_destroy): Define as macros always.
33203         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33204         glthread_lock_lock.
33205         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33206         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33207         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33208         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33209         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33210         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33211         (glthread_recursive_lock_lock_func): Renamed from
33212         glthread_recursive_lock_lock.
33213         (glthread_recursive_lock_unlock_func): Renamed from
33214         glthread_recursive_lock_unlock.
33215         (glthread_recursive_lock_destroy_func): Renamed from
33216         glthread_recursive_lock_destroy.
33217
33218 2008-08-14  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/glthread/lock.h: Renamed from lib/lock.h.
33221         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33222         * lib/glthread/tls.h: Renamed from lib/tls.h.
33223         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33224         * lib/fstrcmp.c: Update includes.
33225         * lib/strsignal.c: Update includes.
33226         * modules/lock (Files, Makefile.am): Update.
33227         (Include): Change to "glthread/lock.h".
33228         * modules/tls (Files, Makefile.am): Update.
33229         (Include): Change to "glthread/tls.h".
33230         * tests/test-lock.c: Update includes.
33231         * tests/test-tls.c: Update includes.
33232         * NEWS: Mention the renamed header files.
33233
33234 2008-08-11  Jim Meyering  <meyering@redhat.com>
33235
33236         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33237
33238 2008-08-11  Eric Blake  <ebb9@byu.net>
33239
33240         test-c-stack: avoid C99-ism
33241         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33242         before statement.
33243         Reported by Alain Guibert.
33244
33245 2008-08-10  Jim Meyering  <meyering@redhat.com>
33246
33247         ensure that return value of uinttostr et al are not ignored
33248         * lib/inttostr.h (__GNUC_PREREQ): Define.
33249         (__attribute_warn_unused_result__): Define.
33250         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33251
33252 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33253
33254         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33255         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33256
33257 2008-08-07  Jim Meyering  <meyering@redhat.com>
33258
33259         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33260
33261         * modules/mkstemp (License): Relicense under LGPLv2+.
33262         * modules/tempname (License): Likewise.
33263
33264 2008-08-06  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/poll.c (poll): Further micro-optimization.
33267
33268 2008-08-06  Jim Meyering  <meyering@redhat.com>
33269
33270         inet_pton.c: use locale-independent tolower
33271         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33272         (inet_pton6): Use c_tolower rather than tolower.
33273         * modules/inet_pton (Depends-on): Add c-ctype.
33274
33275 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33276
33277         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33278         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33279
33280 2008-08-06  Jim Meyering  <meyering@redhat.com>
33281
33282         * modules/inet_pton (License): Relicense under LGPLv2+.
33283
33284 2008-08-03  Bruno Haible  <bruno@clisp.org>
33285
33286         Additional non-aborting API for lock and tls.
33287         * lib/lock.h: Include <errno.h>.
33288         (glthread_lock_init): New macro/function.
33289         (gl_lock_init): Define as wrapper around glthread_lock_init.
33290         (glthread_lock_lock): New macro/function.
33291         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
33292         (glthread_lock_unlock): New macro/function.
33293         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
33294         (glthread_lock_destroy): New macro/function.
33295         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
33296         (glthread_rwlock_init): New macro/function.
33297         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
33298         (glthread_rwlock_rdlock): New macro/function.
33299         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
33300         (glthread_rwlock_wrlock): New macro/function.
33301         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
33302         (glthread_rwlock_unlock): New macro/function.
33303         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
33304         (glthread_rwlock_destroy): New macro/function.
33305         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
33306         (glthread_recursive_lock_init): New macro/function.
33307         (gl_recursive_lock_init): Define as wrapper around
33308         glthread_recursive_lock_init.
33309         (glthread_recursive_lock_lock): New macro/function.
33310         (gl_recursive_lock_lock): Define as wrapper around
33311         glthread_recursive_lock_lock.
33312         (glthread_recursive_lock_unlock): New macro/function.
33313         (gl_recursive_lock_unlock): Define as wrapper around
33314         glthread_recursive_lock_unlock.
33315         (glthread_recursive_lock_destroy): New macro/function.
33316         (gl_recursive_lock_destroy): Define as wrapper around
33317         glthread_recursive_lock_destroy.
33318         (glthread_once): New macro/function.
33319         (gl_once): Define as wrapper around glthread_once.
33320         Update function declarations.
33321         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
33322         glthread_rwlock_init. Return error code.
33323         (glthread_rwlock_rdlock_multithreaded): Renamed from
33324         glthread_rwlock_rdlock. Return error code.
33325         (glthread_rwlock_wrlock_multithreaded): Renamed from
33326         glthread_rwlock_wrlock. Return error code.
33327         (glthread_rwlock_unlock_multithreaded): Renamed from
33328         glthread_rwlock_unlock. Return error code.
33329         (glthread_rwlock_destroy_multithreaded): Renamed from
33330         glthread_rwlock_destroy. Return error code.
33331         (glthread_recursive_lock_init_multithreaded): Renamed from
33332         glthread_recursive_lock_init. Return error code.
33333         (glthread_recursive_lock_lock_multithreaded): Renamed from
33334         glthread_recursive_lock_lock. Return error code.
33335         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33336         glthread_recursive_lock_unlock. Return error code.
33337         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33338         glthread_recursive_lock_destroy. Return error code.
33339         (glthread_once_call): Make static.
33340         (glthread_once_multithreaded): Renamed from glthread_once.
33341         * lib/tls.h: Include <errno.h>.
33342         (glthread_tls_key_init): New macro/function.
33343         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33344         (glthread_tls_set): New macro/function.
33345         (gl_tls_set): Define as wrapper around glthread_tls_set.
33346         (glthread_tls_key_destroy): New macro/function.
33347         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33348         Update function declarations.
33349         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33350         glthread_tls_get.
33351         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33352
33353 2008-08-04  Eric Blake  <ebb9@byu.net>
33354
33355         gnumakefile: use space, not TAB, outside of targets
33356         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33357
33358 2008-08-02  Jim Meyering  <meyering@redhat.com>
33359
33360         getdate.y: avoid locale-dependent date parsing failure
33361         In Turkish locales, getdate would fail to recognize keywords
33362         containing a lowercase "i".  The solution is not to rely on
33363         locale-sensitive case-conversion.
33364         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33365         (lookup_word): Use c_toupper in place of toupper.
33366         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33367         Reported by Vefa Bicakci <bicave@superonline.com> in
33368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33369         * modules/getdate (Depends-on): Add c-ctype.
33370
33371 2008-08-02  Bruno Haible  <bruno@clisp.org>
33372
33373         * gnulib-tool (func_import): When updating or creating a .gitignore
33374         file, prepend each added line with a slash, and ignore leading slashes
33375         from the existing lines.
33376         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33377
33378 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33379
33380         Portability fix for GNU make 3.79.1.
33381         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33382         versions do not understand.
33383
33384 2008-08-01  Bruno Haible  <bruno@clisp.org>
33385
33386         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33387         * tests/test-isnanf.h (zero): New variable.
33388         (main): Avoid literal -0.0f.
33389         * tests/test-isnand.h (zero): New variable.
33390         (main): Avoid literal -0.0.
33391         * tests/test-isnanl.h (zero): New variable.
33392         (main): Avoid literal -0.0L.
33393         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33394         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33395         -0.0, -0.0L.
33396         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33397         (test_signbitd): Avoid literal -0.0.
33398         (test_signbitl): Avoid literal -0.0L.
33399         * tests/test-ceilf1.c (zero): New variable.
33400         (main): Avoid literal -0.0f.
33401         * tests/test-ceill.c (zero): New variable.
33402         (main): Avoid literal -0.0L.
33403         * tests/test-floorf1.c (zero): New variable.
33404         (main): Avoid literal -0.0f.
33405         * tests/test-floorl.c (zero): New variable.
33406         (main): Avoid literal -0.0L.
33407         * tests/test-roundf1.c (zero): New variable.
33408         (main): Avoid literal -0.0f.
33409         * tests/test-round1.c (zero): New variable.
33410         (main): Avoid literal -0.0.
33411         * tests/test-roundl.c (zero): New variable.
33412         (main): Avoid literal -0.0L.
33413         * tests/test-truncf1.c (zero): New variable.
33414         (main): Avoid literal -0.0f.
33415         * tests/test-trunc1.c (zero): New variable.
33416         (main): Avoid literal -0.0.
33417         * tests/test-truncl.c (zero): New variable.
33418         (main): Avoid literal -0.0L.
33419         * tests/test-frexp.c (zero): New variable.
33420         (main): Avoid literal -0.0.
33421         * tests/test-frexpl.c (zero): New variable.
33422         (main): Avoid literal -0.0L.
33423         * tests/test-ldexpl.c (zero): New variable.
33424         (main): Avoid literal -0.0L.
33425         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33426         (zerod, zerol): New variables.
33427         (test_function): Avoid literals -0.0, -0.0L.
33428         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33429         (zerod, zerol): New variables.
33430         (test_function): Avoid literals -0.0, -0.0L.
33431         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33432         (zerod, zerol): New variables.
33433         (test_function): Avoid literals -0.0, -0.0L.
33434         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33435         (zerod, zerol): New variables.
33436         (test_function): Avoid literals -0.0, -0.0L.
33437         * tests/test-strtod.c (zero): New variable.
33438         (main): Avoid literal -0.0.
33439         Reported by Jonathan C. Patschke <jp@centtech.com>.
33440
33441 2008-07-31  Jim Meyering  <meyering@redhat.com>
33442
33443         sha256.h: correct definition of SHA224_DIGEST_SIZE
33444         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33445         Reported by Paulie Pena IV <paulie4@gmail.com>.
33446         Define as 224 / 8, rather than as a literal.
33447         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33448         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33449         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33450
33451 2008-07-31  Bruno Haible  <bruno@clisp.org>
33452
33453         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33454         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33455         Reported by Jonathan Patschke <jp@centtech.com>.
33456
33457 2008-07-31  Bruno Haible  <bruno@clisp.org>
33458
33459         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33460         Reported by Paolo Bonzini <bonzini@gnu.org>.
33461
33462 2008-07-30  Eric Blake  <ebb9@byu.net>
33463
33464         test-strtod: allow compilation without -lm
33465         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33466         Reported by Dennis Clarke <blastwave@gmail.com>.
33467
33468 2008-07-28  Jim Meyering  <meyering@redhat.com>
33469
33470         bootstrap: work also when there are no .po files in po/
33471         * build-aux/bootstrap (update_po_files): Complete the change
33472         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33473
33474 2008-07-27  Jim Meyering  <meyering@redhat.com>
33475
33476         * users.txt: Add zile.
33477
33478 2008-07-26  Ben Pfaff  <blp@gnu.org>
33479
33480         Add missing dependencies on new m4/exponent[fdl].m4 files.
33481         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33482         * modules/isnand-nolibm: Add m4/exponentd.m4.
33483         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33484         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33485         m4/isnan[fdl].m4, because the macros actually used moved.
33486         Reported by Jim Meyering.
33487
33488 2008-07-14  Ben Pfaff  <blp@gnu.org>
33489
33490         Add isinf module.
33491         * lib/isinf.c: New file.
33492         * lib/math.in.h: Define isinf macro if we have decided to replace
33493         it.
33494         * m4/isinf.m4: New file.
33495         * m4/math_h.m4: Initialize and substitute variables for isinf
33496         module.
33497         * modules/isinf: New file.
33498         * modules/isinf-tests: New file.
33499         * modules/math: Add substitutions for new module.
33500         * tests/test-isinf.c: New file.
33501         * doc/posix-functions/isinf.texi: Mention new module.
33502         * MODULES.html.sh: Mention new module.
33503
33504 2008-07-14  Ben Pfaff  <blp@gnu.org>
33505
33506         Factor out some macros for use by additional modules.
33507         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33508         exponentf.m4.
33509         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33510         exponentd.m4.
33511         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33512         file exponentl.m4.
33513         * m4/exponentf.m4: New file.
33514         * m4/exponentd.m4: New file.
33515         * m4/exponentl.m4: New file.
33516         * modules/isnanf: Use new file m4/exponentf.m4.
33517         * modules/isnand: Use new file m4/exponentd.m4.
33518         * modules/isnanl: Use new file m4/exponentl.m4.
33519
33520 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33521
33522         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33523         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33524         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33525         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33526
33527         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33528         readlink on platforms without PATH_MAX.
33529
33530 2008-07-21  Eric Blake  <ebb9@byu.net>
33531
33532         Warn, not fail, on stale version.
33533         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33534
33535         Don't allow installation with stale devel version number.
33536         * top/GNUmakefile (_is-install-target): New macro.
33537         (_curr-ver): Forbid installation with stale version number.
33538
33539 2008-07-20  Bruno Haible  <bruno@clisp.org>
33540
33541         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33542         TESTS_ENVIRONMENT.
33543         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33544
33545 2008-07-20  Bruno Haible  <bruno@clisp.org>
33546
33547         * lib/c-stack.h (c_stack_action): Add documentation.
33548         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33549
33550 2008-07-20  Bruno Haible  <bruno@clisp.org>
33551
33552         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33553         * modules/readlink (License): Likewise.
33554
33555 2008-07-17  Eric Blake  <ebb9@byu.net>
33556
33557         * modules/c-stack (Link): Fix typo.
33558
33559         Make c-stack use libsigsegv, when available.
33560         * modules/c-stack (Depends-on): Add libsigsegv.
33561         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33562         needed.
33563         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33564         (segv_handler, overflow_handler, c_stack_action)
33565         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33566         implementation when libsigsegv is available, but only when using
33567         the library is necessary.
33568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33569         comment, explaining why XSI check fails on Linux.
33570         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33571         * tests/test-c-stack2.sh: Tweak skip message.
33572         * NEWS: Document new link-time requirements.
33573
33574 2008-07-16  Eric Blake  <ebb9@byu.net>
33575
33576         c-stack: Expose false positives when not using libsigsegv.
33577         * modules/c-stack-tests (Files): Expand test.
33578         * tests/test-c-stack.c (main): Add means to conditionally trigger
33579         non-overflow SIGSEGV.
33580         * tests/test-c-stack2.sh: New file.
33581
33582 2008-07-14  Bruno Haible  <bruno@clisp.org>
33583
33584         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33585         Reported by Eric Blake.
33586
33587 2008-07-14  Sam Steingold  <sds@gnu.org>
33588             Bruno Haible  <bruno@clisp.org>
33589
33590         New module libsigsegv.
33591         * modules/libsigsegv: New file.
33592         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33593         modifications.
33594         * MODULES.html.sh (Signal handling): New section.
33595
33596 2008-07-14  Bruno Haible  <bruno@clisp.org>
33597
33598         * modules/unictype/ctype-* (Description): Add the word "function".
33599         Improves the resulting doc in MODULES.html.
33600
33601 2008-07-12  Ben Pfaff  <blp@gnu.org>
33602
33603         Add longlong module.
33604         * modules/longlong: New file.
33605
33606 2008-07-12  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33609         to empty.
33610
33611 2008-07-10  Ben Pfaff  <blp@gnu.org>
33612
33613         Add isnan module.
33614         * doc/posix-functions/isnan.texi: Mention new module.
33615         * lib/math.in.h: Define isnan macro if we have decided to replace
33616         it.
33617         * m4/isnan.m4: New file.
33618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33619         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33620         also.
33621         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33622         redundancy.
33623         * m4/math_h.m4: Initialize and substitute variables for isnan
33624         module.
33625         * modules/isnan: New file.
33626         * modules/isnan-tests: New file.
33627         * modules/math: Add substitutions for new module.
33628         * tests/test-isnan.c: New file.
33629         * MODULES.html.sh: Mention new module.
33630
33631 2008-07-10  Ben Pfaff  <blp@gnu.org>
33632
33633         Add isnanf module.
33634         * lib/isnanf.m4: New file.
33635         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33636         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33637         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33638         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33639         * modules/isnanf: New file.
33640         * modules/isnanf-tests: New file.
33641         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33642         files.
33643         * tests/test-isnanf-nolibm.c: factored most of its contents into
33644         new file tests/test-isnanf.h.
33645         * tests/test-isnanf.h: New file.
33646         * tests/test-isnanf.c: New file.
33647         * MODULES.html.sh: Mention new module.
33648         * doc/glibc-functions/isnanf.texi: Mention new module.
33649
33650 2008-07-10  Ben Pfaff  <blp@gnu.org>
33651
33652         Add isnand module.
33653         * lib/isnand.h: New file.
33654         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33655         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33656         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33657         functionality also.
33658         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33659         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33660         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33661         * modules/isnand: New file.
33662         * modules/isnand-tests: New file.
33663         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33664         files.
33665         * tests/test-isnand-nolibm.c: factored most of its contents into
33666         new file tests/test-isnand.h.
33667         * tests/test-isnand.h: New file.
33668         * tests/test-isnand.c: New file.
33669         * MODULES.html.sh: Mention new module.
33670
33671 2008-07-10  Ben Pfaff  <blp@gnu.org>
33672
33673         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33674         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33675         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33676         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33677         * modules/isnanf-nolibm: Update references to renamed files.
33678         * modules/isnand-nolibm: Likewise.
33679         * modules/isnanf-nolibm-tests: Likewise.
33680         * modules/isnand-nolibm-tests: Likewise.
33681         * lib/frexp.c: Likewise.
33682         * lib/isfinite.c: Likewise.
33683         * lib/signbitd.c: Likewise.
33684         * lib/signbitf.c: Likewise.
33685         * lib/vasnprintf.c: Likewise.
33686         * tests/test-ceilf1.c: Likewise.
33687         * tests/test-ceilf2.c: Likewise.
33688         * tests/test-floorf1.c: Likewise.
33689         * tests/test-floorf2.c: Likewise.
33690         * tests/test-frexp.c: Likewise.
33691         * tests/test-round1.c: Likewise.
33692         * tests/test-round2.c: Likewise.
33693         * tests/test-roundf1.c: Likewise.
33694         * tests/test-strtod.c: Likewise.
33695         * tests/test-trunc1.c: Likewise.
33696         * tests/test-trunc2.c: Likewise.
33697         * tests/test-truncf1.c: Likewise.
33698         * tests/test-truncf2.c: Likewise.
33699         * NEWS: Mention the renamed header files.
33700
33701 2008-07-11  Jim Meyering  <meyering@redhat.com>
33702
33703         vc-list-files: make the last-resort awk code more portable
33704         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33705         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33706         does not support it.
33707
33708 2008-07-10  Eric Blake  <ebb9@byu.net>
33709
33710         Work with tar's bootstrap.
33711         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33712         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33713         an m4 comment.
33714
33715 2008-07-09  Jim Meyering  <meyering@redhat.com>
33716
33717         posix-shell.m4: fix typo that made this test malfunction
33718         * m4/posix-shell.m4: Remove capitalization in variable name.
33719
33720 2008-07-08  Bruno Haible  <bruno@clisp.org>
33721
33722         * m4/onceonly.m4: Update comments.
33723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33724
33725 2008-07-04  Jim Meyering  <meyering@redhat.com>
33726
33727         * users.txt: Add vc-dwim.
33728         (bison, coreutils): Use the gitweb URL.
33729
33730 2008-07-03  Jim Meyering  <meyering@redhat.com>
33731
33732         * users.txt: Add libffcall.  From Sam Steingold.
33733
33734 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
33735
33736         getdate.y: do not ignore TZ with relative day, month or year offset
33737         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33738         relative-date-handling, since otherwise, the latter would clobber the
33739         sole output (an updated Start value) of the tz-handling block.
33740         * tests/test-getdate.c: Tests for the fix
33741
33742 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33743
33744         Recognize 'foo_LIBRARIES += libgnu.a'.
33745         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33746         makefile snippet has already specified an installation location,
33747         also using '+='.
33748
33749 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
33750
33751         getdate.y: factor out common actions
33752         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33753         Use them in place of open-coded actions.
33754
33755 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33756
33757         Add self-test for getdate module.
33758         * modules/getdate-tests: New file.
33759         * tests/test-getdate.c: New file.
33760
33761 2008-06-29  Bruno Haible  <bruno@clisp.org>
33762
33763         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33764         .gitignore.
33765         Reported by Sylvain Beucler <beuc@beuc.net>.
33766
33767 2008-06-29  Bruno Haible  <bruno@clisp.org>
33768
33769         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33770         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33771
33772 2008-06-29  Bruno Haible  <bruno@clisp.org>
33773
33774         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33775         EXTRA_DIST.
33776         Reported by Sylvain Beucler <beuc@beuc.net>.
33777
33778 2008-06-26  Jim Meyering  <meyering@redhat.com>
33779
33780         make several modules depend on the "open" module
33781         This provides slightly increased consistency when opening-for-write
33782         the name of a non-directory spelled with a trailing slash.
33783         * modules/chdir-safer: Likewise.
33784         * modules/chown: Likewise.
33785         * modules/clean-temp: Likewise.
33786         * modules/copy-file: Likewise.
33787         * modules/fchdir: Likewise.
33788         * modules/fcntl-safer: Likewise.
33789         * modules/pipe: Likewise.
33790         * modules/utime: Likewise.
33791         Prompted by Eric Blake and Bruno Haible.
33792
33793 2008-06-24  Andreas Schwab  <schwab@suse.de>
33794
33795         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33796         literals can be used as initializers for global variables.
33797
33798 2008-06-23  Eric Blake  <ebb9@byu.net>
33799
33800         Make gnulib-cache.m4 easier to diff.
33801         * gnulib-tool (func_import): Allow newlines when reading cached
33802         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33803
33804 2008-06-23  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33807         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33808         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33809         m4/signalblocking.m4.
33810         (gl_PREREQ_SIGACTION): Don't invoke it.
33811         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33812         gl_PREREQ_SIG_HANDLER_H.
33813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33814         Don't check for sigaction here.
33815
33816 2008-06-23  Bruno Haible  <bruno@clisp.org>
33817
33818         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33819         (install_handlers): Don't set the SA_RESETHAND flag.
33820
33821 2008-06-23  Bruno Haible  <bruno@clisp.org>
33822
33823         * m4/sigaction.m4: Comment fixes.
33824         * lib/signal.in.h: Likewise.
33825
33826 2008-06-23  Eric Blake  <ebb9@byu.net>
33827
33828         Fix typo.
33829         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33830
33831         Avoid SA_ namespace.
33832         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33833         Reported by Ralf Wildenhues.
33834
33835         Avoid test failure due to SA_RESTORER.
33836         * tests/test-sigaction.c (SA_MASK): New macro.
33837         (main): Avoid failing due to extension flags being set.
33838         Reported by Jim Meyering.
33839
33840         Revert use of sig-handler.h in sigprocmask.c.
33841         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33842         it requires the existence of struct sigaction.
33843         * lib/sigprocmask.c (handler_t): Restore typedef.
33844         (rpl_signal, old_handlers): Use local type.
33845
33846 2008-06-22  Bruno Haible  <bruno@clisp.org>
33847
33848         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33849         conditionally.
33850         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33851
33852 2008-06-22  Bruno Haible  <bruno@clisp.org>
33853
33854         * doc/posix-functions/siginterrupt.texi: Move note.
33855
33856         * lib/signal.in.h (SA_RESTART): New macro.
33857         * lib/sigaction.c: Update comment.
33858
33859         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33860
33861         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33862         (gl_PREREQ_SIGPROCMASK): Invoke it.
33863         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33864
33865         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33866
33867         * lib/sigprocmask.c: Update a comment.
33868
33869 2008-06-21  Eric Blake  <ebb9@byu.net>
33870
33871         Use sigaction module rather than signal().
33872         * modules/c-stack (Depends-on): Add sigaction.
33873         * modules/fatal-signal (Depends-on): Likewise.
33874         * modules/nanosleep (Depends-on): Likewise.
33875         * modules/sigprocmask (Files): Add sig-handler.h.
33876         * modules/sigaction (Files): Likewise.
33877         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33878         Eggert.
33879         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33880         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33881         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33882         (init_fatal_signals): Likewise.
33883         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33884         (siginterrupt): Delete fallback.
33885         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33886         instead.
33887         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33888         siginterrupt.
33889
33890         New module sigaction, for mingw.
33891         * modules/sigaction: New module...
33892         * modules/sigaction-tests: ...and its test.
33893         * m4/sigaction.m4: New file.
33894         * lib/sigaction.c: Likewise.
33895         * tests/test-sigaction.c: Likewise.
33896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33897         * modules/signal (Makefile.am): Likewise.
33898         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33899         needed.
33900         * doc/posix-headers/signal.texi (signal.h): Mention provided
33901         types.
33902         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33903         that sigaction is preferable.
33904         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33905         module.
33906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33907         sigaction.
33908
33909         Improve robustness of sigprocmask by overriding signal.
33910         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33911         is in use.
33912         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33913         (SIGKILL, SIGSTOP): Provide fallbacks.
33914         (rpl_signal): Implement.
33915         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33916         signal can be called inside handlers.
33917
33918         Fix nanosleep module on mingw.
33919         * modules/nanosleep (Depends-on): Add sys_select.
33920         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33921
33922         Fix licensing of sigprocmask.
33923         * modules/raise (License): Relicense as LGPL.
33924
33925 2008-06-21  Bruno Haible  <bruno@clisp.org>
33926
33927         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33928         result if it contains question marks.
33929         Reported by Michael Geng <linux@michaelgeng.de>.
33930
33931 2008-06-19  Bruno Haible  <bruno@clisp.org>
33932
33933         Fix CVS-ism.
33934         * doc/gnulib.texi: Include updated-stamp.texi.
33935         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33936         (updated-stamp.texi): New rule.
33937         (gnulib.info): Depend on it.
33938         * doc/.gitignore: Add updated-stamp.texi.
33939         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33940
33941 2008-06-19  Bruno Haible  <bruno@clisp.org>
33942
33943         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33944         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33945
33946 2008-06-19  Eric Blake  <ebb9@byu.net>
33947
33948         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33949         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33950         Reported by Stepan Kasal.
33951
33952 2008-06-18  Bruno Haible  <bruno@clisp.org>
33953
33954         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33955         Reported by Eric Blake.
33956
33957 2008-06-18  Eric Blake  <ebb9@byu.net>
33958
33959         Work around cygwin 1.5.25 strsignal bug.
33960         * tests/test-strsignal.c: Allow for const char *.
33961         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33962
33963 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33964
33965         * users.txt: Update URL to article and add author/date
33966         information.
33967
33968 2008-06-17  Bruno Haible  <bruno@clisp.org>
33969
33970         New macro gl_DISABLE_THREADS.
33971         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33972         if the user did not pass --enable-threads or --disable-threads option.
33973         (gl_DISABLE_THREADS): New macro.
33974         Reported by Eric Blake <ebb9@byu.net>.
33975
33976 2008-06-17  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33979         when the macro ignores it.
33980         Based on a patch by Eric Blake <ebb9@byu.net>.
33981
33982 2008-06-17  Bruno Haible  <bruno@clisp.org>
33983
33984         * modules/tls (License): Change to LGPLv2+.
33985         Reported by Eric Blake.
33986
33987 2008-06-17  Eric Blake  <ebb9@byu.net>
33988
33989         Simplify c-stack prerequisites.
33990         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33992         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33993         check.
33994         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33995         <sys/resource.h>.
33996
33997         Move c-stack test into testsuite.
33998         * modules/c-stack-tests: New file.
33999         * lib/c-stack.c [DEBUG]: Move test program...
34000         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34001         fail test if sigaltstack is lacking.
34002         * tests/test-c-stack.sh: New driver file.
34003
34004 2008-06-16  Eric Blake  <ebb9@byu.net>
34005
34006         Use raise module consistently.
34007         * modules/fatal-signal (Depends-on): Add raise.
34008         * modules/sigprocmask (Depends-on): Likewise.
34009         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34010         * lib/sigprocmask.c (sigprocmask): Likewise.
34011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34013
34014         Fix compliance bug in sigpending.
34015         * lib/sigprocmask.c (sigpending): Return pending array via
34016         parameter, not return value.
34017
34018 2008-06-14  Eric Blake  <ebb9@byu.net>
34019
34020         Improve obstack-printf test code.
34021         * tests/test-obstack-printf.c (test_function): Fix comment, and
34022         simplify usage of obstack_* in macros.  Add a test for coverage.
34023         Reported by Bruno Haible.
34024
34025 2008-06-14  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34028         array size as a constant, not as a const variable.
34029         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34030         AC_USE_SYSTEM_EXTENSIONS.
34031         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34032         Test whether the obstack_printf function actually exists.
34033         * modules/obstack-printf (Depends-on): Add extensions.
34034         (Include): Remove obstack.h.
34035         * modules/obstack-printf-posix (Depends-on): Add extensions.
34036         (Include): Remove obstack.h.
34037
34038 2008-06-13  Eric Blake  <ebb9@byu.net>
34039
34040         Add obstack-printf and obstack-printf-posix modules.
34041         * modules/obstack-printf: New file.
34042         * modules/obstack-printf-posix: Likewise.
34043         * MODULES.html.sh (Misc): Mention them.
34044         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34045         Likewise.
34046         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34047         Likewise.
34048         * modules/stdio (Makefile.am): Accomodate new modules.
34049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34050         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34051         Declare.
34052         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34053         functions.
34054         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34055         (gl_REPLACE_OBSTACK_PRINTF): New macros
34056         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34057         * tests/test-obstack-printf.c: New file.
34058         * modules/obstack-printf-tests: Likewise.
34059         * modules/obstack-printf-posix-tests: Likewise.
34060
34061 2008-06-11  Bruno Haible  <bruno@clisp.org>
34062
34063         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34064         * lib/open.c: Include errno.h.
34065         (open): Fail when attempting to write to a file that has a trailing
34066         slash.
34067         * tests/test-open.c (main): Test against trailing slash bug.
34068         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34069
34070 2008-06-10  Bruno Haible  <bruno@clisp.org>
34071
34072         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34073         for $? to work inside the trap command, with various /bin/sh-s.
34074         * tests/test-vc-list-files-cvs.sh: Likewise.
34075
34076 2008-06-10  Bruno Haible  <bruno@clisp.org>
34077
34078         * lib/acl-internal.h: Don't include gettext.h here.
34079         * lib/set-mode-acl.c: Include gettext.h here.
34080         * lib/copy-acl.c: Likewise.
34081
34082 2008-06-10  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34085         * lib/wait-process.c (wait_subprocess): Likewise.
34086         * lib/execute.h (execute): Add termsigp argument.
34087         * lib/execute.c (execute): Likewise.
34088         * lib/csharpcomp.c (compile_csharp_using_pnet,
34089         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34090         * lib/csharpexec.c (execute_csharp_using_pnet,
34091         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34092         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34093         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34094         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34095         is_jikes_present): Update.
34096         * lib/javaexec.c (execute_java_class): Update.
34097         * lib/javaversion.c (execute_and_read_line): Update.
34098         * NEWS: Document the changes.
34099         Reported by Eric Blake.
34100
34101 2008-06-10  Eric Blake  <ebb9@byu.net>
34102
34103         Add missing include.
34104         * tests/test-strstr.c (includes): Add <signal.h>.
34105         * tests/test-strcasestr.c (includes): Likewise.
34106         * tests/test-memmem.c (includes): Likewise.
34107
34108 2008-06-10  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/wait-process.c (wait_subprocess): Add an assertion.
34111
34112 2008-06-10  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34115
34116 2008-06-10  Bruno Haible  <bruno@clisp.org>
34117
34118         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34119         using alarm().
34120         * tests/test-strcasestr.c (main): Likewise.
34121         * tests/test-strstr.c (main): Likewise.
34122
34123 2008-06-09  Bruno Haible  <bruno@clisp.org>
34124
34125         Work around the Solaris 10 ACE ACLs ABI change.
34126         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34127         declare if ACL_NO_TRIVIAL is present.
34128         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34129         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34130         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34131         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34132         define if ACL_NO_TRIVIAL is present.
34133         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34134         and use the current ABI.
34135         (file_has_acl): Use same #if condition as elsewhere.
34136         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34137         in use, and use the current ABI.
34138         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34139         Reported by Jim Meyering.
34140
34141 2008-06-09  Eric Blake  <ebb9@byu.net>
34142
34143         Work around environments that (stupidly) ignore SIGALRM.
34144         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34145         before using alarm().
34146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34148         Reported by Ian Beckwith <ianb@erislabs.net>.
34149
34150         Produce autobuild blurb earlier in log.
34151         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34152
34153 2008-06-09  Jim Meyering  <meyering@redhat.com>
34154         and OndÅ™ej Vašík  <ovasik@redhat.com>
34155
34156         utimens.c: correct kernel bug work-around
34157         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34158         failure, not success, and the kernel bug we're trying to work
34159         around affects not just the utimensat call, but also the fallback
34160         futimens call.
34161         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34162         not success.
34163         [HAVE_FUTIMENS]: Use the same work-around, here.
34164
34165 2008-06-09  Jim Meyering  <meyering@redhat.com>
34166
34167         add more guards around definition of ACE_-related code
34168         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34169         ALLOW and ACE_OWNER are also defined.
34170
34171 2008-06-08  Bruno Haible  <bruno@clisp.org>
34172
34173         * lib/acl-internal.h: Add me as co-author.
34174         * lib/file-has-acl.c: Likewise.
34175         * lib/set-mode-acl.c: Likewise.
34176         * lib/copy-acl.c: Likewise.
34177
34178 2008-06-08  Bruno Haible  <bruno@clisp.org>
34179
34180         Add support for AIX ACLs.
34181         * lib/acl-internal.h (acl_nontrivial): New declaration.
34182         * lib/file-has-acl.c (acl_nontrivial): New function.
34183         (file_has_acl): Add implementation using AIX 4 ACL API.
34184         * lib/set-mode-acl.c (qset_acl): Likewise.
34185         * lib/copy-acl.c (qcopy_acl): Likewise.
34186
34187 2008-06-08  Bruno Haible  <bruno@clisp.org>
34188
34189         Add support for HP-UX ACLs.
34190         * lib/acl-internal.h (acl_nontrivial): New declaration.
34191         * lib/file-has-acl.c (acl_nontrivial): New function.
34192         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34193         * lib/set-mode-acl.c (qset_acl): Likewise.
34194         * lib/copy-acl.c (qcopy_acl): Likewise.
34195
34196 2008-06-08  Bruno Haible  <bruno@clisp.org>
34197
34198         Add support for Cygwin ACLs.
34199         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34200         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34201         the chmod_or_fchmod call.
34202         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34203
34204 2008-06-08  Bruno Haible  <bruno@clisp.org>
34205
34206         Fix bug with setuid modes in Solaris 10+ code.
34207         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34208         succeeded, when the mode contains some special bits.
34209
34210 2008-06-08  Bruno Haible  <bruno@clisp.org>
34211
34212         Add support for Solaris 7..10 ACLs.
34213         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34214         declarations.
34215         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34216         functions.
34217         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34218         * lib/set-mode-acl.c (qset_acl): Likewise.
34219         * lib/copy-acl.c (qcopy_acl): Likewise.
34220
34221 2008-06-08  Bruno Haible  <bruno@clisp.org>
34222
34223         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34224         declaration.
34225         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34226         (acl_access_nontrivial): Remove MacOS X case.
34227         (file_has_acl): Use acl_extended_nontrivial.
34228         * lib/copy-acl.c (qcopy_acl): Likewise.
34229
34230 2008-06-08  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34233
34234 2008-06-08  Jim Meyering  <meyering@redhat.com>
34235
34236         * modules/acl (Maintainer): Add Bruno Haible.
34237
34238 2008-06-07  Bruno Haible  <bruno@clisp.org>
34239
34240         Improve support for Tru64 ACLs.
34241         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34242         ACL on OSF/1.
34243
34244 2008-06-07  Bruno Haible  <bruno@clisp.org>
34245
34246         Add support for MacOS X ACLs.
34247         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34248         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34249         * lib/set-mode-acl.c (qset_acl): Likewise.
34250         * lib/copy-acl.c (qcopy_acl): Likewise.
34251
34252 2008-06-07  Bruno Haible  <bruno@clisp.org>
34253
34254         Fix memory leak introduced on 2008-05-22.
34255         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34256         use.
34257
34258 2008-06-07  Bruno Haible  <bruno@clisp.org>
34259
34260         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34261         to construct an empty ACL.
34262
34263 2008-06-07  Bruno Haible  <bruno@clisp.org>
34264
34265         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34266         precisely.
34267         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34268
34269 2008-06-07  Bruno Haible  <bruno@clisp.org>
34270
34271         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34272         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34273
34274 2008-06-07  Bruno Haible  <bruno@clisp.org>
34275
34276         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34277         regardless of POSIX.
34278         * doc/posix-functions/_longjmp.texi: Likewise.
34279         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34280         SystemV platform in this case.
34281
34282 2008-06-06  Eric Blake  <ebb9@byu.net>
34283
34284         Document abort() bugs.
34285         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34286
34287         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34288         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34289         sigsetjmp.
34290         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
34291         siglongjmp, but only as a macro.
34292         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
34293         is obsolete.
34294         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
34295
34296         Tweak documentation to cover cygwin argz bugs.
34297         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
34298         argz bug fix; no code change needed since no cygwin releases
34299         occurred between the last fix and the bug being tested.
34300         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
34301         module and recently fixed cygwin bugs.
34302         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
34303         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
34304         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
34305         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
34306         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
34307         Likewise.
34308         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
34309         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
34310         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
34311         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
34312         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
34313         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
34314         Likewise.
34315
34316         Avoid gcc warning on cygwin.
34317         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
34318         !ACL_NO_TRIVIAL]: Avoid unused variable.
34319
34320 2008-06-05  Eric Blake  <ebb9@byu.net>
34321
34322         Be tolerant of UNKNOWN version in gnulib-tool test dir.
34323         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
34324         git-version-gen fails to come up with a version.
34325         Reported by Simon Josefsson.
34326
34327 2008-06-05  Jim Meyering  <meyering@redhat.com>
34328             Paul Eggert  <eggert@cs.ucla.edu>
34329
34330         utimens.c: work around a probable Linux kernel bug
34331         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
34332         appears to be a kernel bug that causes utimensat to return 280
34333         instead of 0, indicating success.
34334
34335 2008-06-04  Bruno Haible  <bruno@clisp.org>
34336
34337         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34338         2008-06-01 commit.
34339
34340 2008-06-04  Bruno Haible  <bruno@clisp.org>
34341
34342         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34343         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34344         (file_has_acl): Use it. Save errno afterwards.
34345         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34346
34347 2008-06-03  Bruno Haible  <bruno@clisp.org>
34348
34349         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34350         draft code. Simplify #ifs.
34351         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34352         Put Solaris code after POSIX-draft code. Fix comments regarding
34353         Solaris 10, HP-UX. Mention Cygwin.
34354         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34355
34356 2008-06-03  Eric Blake  <ebb9@byu.net>
34357
34358         Provide fallback for older kernels.
34359         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34360         Provide runtime fallback if kernel lacks support.
34361         Reported by Mike Frysinger.
34362
34363 2008-06-02  Bruno Haible  <bruno@clisp.org>
34364
34365         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34366         it exists.
34367
34368 2008-06-02  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34371         * lib/copy-acl.c (qcopy_acl): Update comment.
34372
34373 2008-06-02  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34376         like ACL APIs.
34377
34378 2008-06-02  Bruno Haible  <bruno@clisp.org>
34379
34380         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34381         * tests/test-set-mode-acl.sh: Likewise.
34382         * tests/test-copy-acl.sh: Likewise.
34383         * tests/test-copy-file.sh: Likewise.
34384
34385 2008-06-02  Bruno Haible  <bruno@clisp.org>
34386
34387         * tests/test-file-has-acl.sh: Remove unused code.
34388
34389 2008-06-01  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34392         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34393         messages.
34394         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34395
34396 2008-06-01  Bruno Haible  <bruno@clisp.org>
34397
34398         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34399         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34400         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34401         APIs.
34402         * modules/acl-tests (configure.ac): Remove tests now contained in
34403         m4/acl.m4.
34404
34405 2008-06-02  Jim Meyering  <meyering@redhat.com>
34406
34407         announce-gen: use a better key-server host name
34408         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34409         it may be more consistently reliable.  Suggested by Werner Koch
34410         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34411
34412 2008-06-01  Bruno Haible  <bruno@clisp.org>
34413
34414         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34415         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34416
34417 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34418
34419         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34420
34421 2008-06-01  Bruno Haible  <bruno@clisp.org>
34422
34423         New ACL tests.
34424         * tests/test-file-has-acl.sh: New file.
34425         * tests/test-file-has-acl.c: New file.
34426         * tests/test-set-mode-acl.sh: New file.
34427         * tests/test-set-mode-acl.c: New file.
34428         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34429         * tests/test-copy-acl.c: New file.
34430         * modules/acl-tests: New file, based on modules/copy-file-tests.
34431         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34432         (Depends-on): Add acl-tests.
34433         (configure.ac): Remove checks.
34434         (Makefile.am): Don't create test-sameacls program here any more.
34435
34436 2008-06-01  Bruno Haible  <bruno@clisp.org>
34437
34438         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34439         * tests/test-sameacls.c: Include progname.h.
34440         (main): Invoke set_program_name. Portability fixes for MacOS X,
34441         Solaris, HP-UX.
34442
34443 2008-06-01  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34446         function.
34447         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34448
34449 2008-06-01  Bruno Haible  <bruno@clisp.org>
34450
34451         * modules/rpmatch (Depends-on): Add strdup.
34452
34453 2008-06-01  Bruno Haible  <bruno@clisp.org>
34454
34455         * lib/pipe.c: Include unistd-safer.h.
34456         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34457         * modules/pipe (Depends-on): Add unistd-safer.
34458
34459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34460
34461         * modules/autobuild (configure.ac): Call AB_INIT.
34462
34463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34464
34465         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34466         Suggested by Bruno Haible <bruno@clisp.org>.
34467
34468 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34469
34470         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34471         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34472         <bruno@clisp.org>.
34473
34474 2008-05-29  Eric Blake  <ebb9@byu.net>
34475
34476         Prefer new POSIX 200x interfaces over futimesat.
34477         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34478         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34479         when available.
34480         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34481
34482 2008-05-28  Bruno Haible  <bruno@clisp.org>
34483
34484         * modules/stpcpy (License): Change to LGPLv2+.
34485         Requested by David Lutterkort <dlutter@redhat.com>.
34486
34487 2008-05-27  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34490         current mingw.
34491         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34492
34493 2008-05-27  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/iconv_open (Link): New section, from module 'iconv'.
34496         * modules/striconv (Link): Likewise.
34497         * modules/striconveh (Link): Likewise.
34498         * modules/xstriconv (Link): Likewise.
34499         * modules/unicodeio (Link): Likewise.
34500         * modules/propername (Link): Likewise.
34501         Reported by Jim Meyering.
34502
34503 2008-05-26  Jim Meyering  <meyering@redhat.com>
34504
34505         sha256: do not artificially restrict buffer length to be < 2^32
34506         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34507         uint32_t to size_t.
34508         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34509         to match.
34510
34511         avoid unaligned access errors, e.g., on sparc
34512         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34513         direct access through a possibly-unaligned uint64* pointer.
34514         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34515         direct access through a possibly-unaligned uint32* pointer.
34516         Prompted by this patch from Tom "spot" Callaway:
34517         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34518
34519         sha512.c: fix typo in comment
34520         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34521
34522 2008-05-25  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34525         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34526         (Makefile.am): Update lib_SOURCES.
34527
34528 2008-05-25  Bruno Haible  <bruno@clisp.org>
34529
34530         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34531
34532 2008-05-25  Jim Meyering  <meyering@redhat.com>
34533
34534         useless-if-before-free: freed expr may have white-space differences
34535         * build-aux/useless-if-before-free: Recognize cases in which the
34536         freed expression differs from the tested one in embedded white
34537         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34538         $1 was used, so we can't make any regexp shy.  Improved tests now
34539         detect this.
34540
34541         useless-if-before-free: accept white space in the expression.
34542         * build-aux/useless-if-before-free: For now, any white space
34543         in the expression must be identical in the free argument.
34544
34545         useless-if-before-free: efficiency tweak
34546         * build-aux/useless-if-before-free: Make the expression-matching
34547         regexp "shy".
34548         Make the *outer* regexp shy, not the expr-matching one.
34549
34550         update code-in-comment to accept cast of free arg
34551         * build-aux/useless-if-before-free: Update regexp.
34552
34553 2008-05-25  Bruno Haible  <bruno@clisp.org>
34554
34555         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34556         * modules/copy-file-tests (Files, Makefile.am): Update.
34557         * tests/test-copy-file.c (func_test_copy): Update.
34558
34559 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34560
34561         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34562
34563 2008-05-23  Bruno Haible  <bruno@clisp.org>
34564
34565         Improve support for ACLs on OSF/1.
34566         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34567         Remove fallback for unknown flavors of ACLs.
34568
34569 2008-05-22  Bruno Haible  <bruno@clisp.org>
34570
34571         Add support for ACLs on OSF/1.
34572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34573         replacements.
34574         (acl_free_text): New macro fallback.
34575         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34576         acl_free.
34577         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34578         acl_free_text function. Require AC_C_INLINE.
34579
34580 2008-05-22  Bruno Haible  <bruno@clisp.org>
34581
34582         Make copy_acl work on MacOS X 10.5.
34583         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34584         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34585         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34586         If MODE_INSIDE_ACL, don't assume that every system has the same text
34587         representation for ACLs as FreeBSD.
34588         * lib/copy-acl.c (copy_acl): Add support for platforms with
34589         !MODE_INSIDE_ACL.
34590         * lib/file-has-acl.c (file_has_acl): Likewise.
34591         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34592         FreeBSD, MacOS X, or IRIX, respectively.
34593
34594 2008-05-22  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/acl.h: Don't include <sys/acl.h>.
34597         (GETACLCNT): Move fallback to lib/acl-internal.h.
34598         * lib/acl-internal.h: Include <sys/acl.h> here.
34599         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34600
34601 2008-05-22  Bruno Haible  <bruno@clisp.org>
34602
34603         Split off copy_acl function to separate file.
34604         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34605         * lib/acl.c (copy_acl): Moved function to separate file.
34606         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34607         * modules/acl (Files): Add lib/copy-acl.c.
34608         (Makefiles.am): Augment lib_SOURCES.
34609
34610 2008-05-22  Bruno Haible  <bruno@clisp.org>
34611
34612         * modules/copy-file-tests: New file.
34613         * tests/test-copy-file.sh: New file.
34614         * tests/test-copy-file.c: New file.
34615         * tests/test-copy-file-sameacls.c: New file.
34616
34617 2008-05-22  Eric Blake  <ebb9@byu.net>
34618
34619         Avoid gcc warning.
34620         * tests/test-memcmp.c (main): Pass NULL indirectly.
34621
34622 2008-05-21  Bruno Haible  <bruno@clisp.org>
34623
34624         Add reference doc about ACLs.
34625         * doc/acl-resources.txt: New file.
34626         * doc/acl-cygwin.txt: New file.
34627
34628 2008-05-21  Bruno Haible  <bruno@clisp.org>
34629
34630         Avoid one more warning from gcc.
34631         * lib/vasnprintf.c (IF_LINT): Update comments.
34632         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34633
34634 2008-05-21  Jim Meyering  <meyering@redhat.com>
34635
34636         avoid a warning from gcc
34637         * lib/vasnprintf.c (IF_LINT): Define.
34638         (scale10_round_decimal_long_double):
34639         Use it to avoid a "may be used uninitialized" warning.
34640         (scale10_round_decimal_double): Likewise.
34641
34642 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34643
34644         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34645         declared.
34646
34647 2008-05-20  Bruno Haible  <bruno@clisp.org>
34648
34649         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34650         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34651
34652 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34653
34654         * modules/memcmp-tests: New file.
34655         * tests/test-memcmp.c: New file.
34656
34657 2008-05-19  Bruno Haible  <bruno@clisp.org>
34658
34659         * modules/propername (Notice, configure.ac): Put quoted "..." into
34660         --keyword option.
34661         * lib/propername.h: Update comments accordingly.
34662         Reported by Eric Blake.
34663
34664 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34665
34666         * modules/getpass-gnu (Depends-on): Add fseeko.
34667
34668 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34669
34670         * modules/base64-tests: New file.
34671
34672 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34673
34674         * lib/base64.c (base64_decode_ctx): If a decode context structure
34675         was passed in use it to ignore newlines.  If a context structure
34676         was _not_ passed in, continue to treat newlines as garbage (this
34677         is the historical behavior).  Formerly base64_decode.
34678         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34679         takes a decode context structure.
34680         * lib/base64.h (base64_decode): Macro for four-argument calls.
34681         (base64_decode_alloc): Likewise.
34682         * lib/base64.c (base64_decode_ctx): If a decode context structure
34683         was passed in use it to ignore newlines.  If a context structure
34684         was _not_ passed in, continue to treat newlines as garbage (this
34685         is the historical behavior).  Formerly base64_decode.
34686         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34687         takes a decode context structure.
34688         * lib/base64.h (base64_decode): Macro for four-argument calls.
34689         (base64_decode_alloc): Likewise.
34690
34691 2008-05-19  Jim Meyering  <meyering@redhat.com>
34692
34693         avoid a warning from gcc
34694         * lib/trim.c (IF_LINT): Define.
34695         (trim2): Use it to avoid a "may be used uninitialized" warning.
34696
34697         Fix doc typo.
34698         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34699
34700 2008-05-19  Bruno Haible  <bruno@clisp.org>
34701
34702         * doc/glibc-functions/getpass.texi: Document limits of other
34703         implementations.
34704
34705 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34706             Bruno Haible <bruno@clisp.org>
34707
34708         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34709
34710 2008-05-18  Bruno Haible  <bruno@clisp.org>
34711
34712         * modules/propername: New file, from GNU gettext.
34713         * lib/propername.h: New file, from GNU gettext.
34714         * lib/propername.c: New file, from GNU gettext.
34715         * MODULES.html.sh (Internationalization functions): Add propername.
34716
34717 2008-05-16  Jim Meyering  <meyering@redhat.com>
34718             Bruno Haible  <bruno@clisp.org>
34719
34720         Avoid some warnings from "gcc -Wshadow".
34721         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34722
34723 2008-05-15  Eric Blake  <ebb9@byu.net>
34724
34725         Extend previous patch to cygwin 1.7.0.
34726         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34727         fast implementation in cygwin >= 1.7.0.
34728         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34730
34731 2008-05-15  Bruno Haible  <bruno@clisp.org>
34732
34733         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34734         implementation in glibc >= 2.9.
34735         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34737
34738 2008-05-15  Bruno Haible  <bruno@clisp.org>
34739
34740         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34741         (Unicode string functions): Add unilbrk/*.
34742         Reported by Karl Berry.
34743
34744 2008-05-15  Eric Blake  <ebb9@byu.net>
34745
34746         Fix violation of <stdbool.h> replacement in regex.
34747         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34748         * lib/regexec.c (re_search_internal): Likewise.
34749         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34750
34751 2008-05-15  Jim Meyering  <meyering@redhat.com>
34752
34753         avoid distracting test output when git or cvs is not found
34754         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34755         * tests/test-vc-list-files-git.sh: Likewise.
34756
34757 2008-05-15  Eric Blake  <ebb9@byu.net>
34758
34759         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34760         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34761         glibc version.
34762         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34763         * doc/posix-functions/strstr.texi (strstr): Likewise.
34764         * lib/str-two-way.h (MAX): Sychronize with glibc.
34765
34766 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34767
34768         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34769         opr.ctx_type.
34770         (calc_first): Initialize constraint field.
34771         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34772         Fix grammar.
34773         (duplicate_node): Merge constraint field for all node types.
34774         (calc_eclosure_iter): Look at constraint field for all node types.
34775         * lib/regex_internal.c (create_cd_newstate): Don't look at
34776         opr.ctx_type.
34777
34778 2008-05-14  Bruno Haible  <bruno@clisp.org>
34779
34780         Help GCC to do better code generation.
34781         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34782         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34783         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34784         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34785         Declare with attribute 'malloc' if supported.
34786
34787 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34788
34789         use "echo STR|wc -c" rather than unportable "expr length STR"
34790         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34791         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34792
34793 2008-05-14  Jim Meyering  <meyering@redhat.com>
34794
34795         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34796         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34797         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34798         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34799         via Collin Lasse.
34800
34801 2008-05-14  Eric Blake  <ebb9@byu.net>
34802
34803         Avoid quadratic growth in gl_LIBSOURCES.
34804         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34805         Suggested by Bruno Haible.
34806
34807         Test xmemdup0.
34808         * modules/xmemdup0-tests: New file.
34809         * tests/test-xmemdup0.c: Likewise.
34810
34811 2008-05-13  Eric Blake  <ebb9@byu.net>
34812
34813         Split xmemdup0 into its own module.
34814         * modules/xmemdup0: New file.
34815         * lib/xmemdup0.h: Likewise.
34816         * lib/xmemdup0.c: Likewise.
34817         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34818         * lib/xalloc.h (xmemdup0): Remove.
34819         * lib/xmalloc.c (xmemdup0): Likewise.
34820
34821 2008-05-13  Eric Blake  <ebb9@byu.net>
34822             Bruno Haible  <bruno@clisp.org>
34823
34824         Reduce number of forks required during autoconf.
34825         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34826         and gl_LIBSOURCES_DIR.
34827         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34828         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34829         m4_syscmd per file.
34830         <m4_foreach_w>: Move...
34831         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34832
34833 2008-05-13  Eric Blake  <ebb9@byu.net>
34834
34835         * gnulib-tool: Fix various comment typos.
34836
34837 2008-05-12  Bruno Haible  <bruno@clisp.org>
34838
34839         Tailor the linebreaking algorithm.
34840         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34841
34842 2008-05-12  Bruno Haible  <bruno@clisp.org>
34843
34844         Update to Unicode 5.0.0.
34845         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34846         LBP_JV, LBP_JT. Redistribute values.
34847         (unilbrk_table): Change size.
34848         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34849         Unicode TR#14 rev. 22.
34850         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34851         LBP_JV, LBP_JT. Redistribute values.
34852         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34853         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34854         Update.
34855         * lib/unilbrk/lbrkprop1.h: Regenerated.
34856         * lib/unilbrk/lbrkprop2.h: Regenerated.
34857         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34858         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34859         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34860         Likewise.
34861         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34862         Likewise.
34863         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34864         result.
34865         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34866         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34867         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34868         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34869         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34870         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34871
34872 2008-05-11  Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34875
34876 2008-05-11  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34879         * modules/unilbrk/gen-lbrk: New file.
34880
34881 2008-05-11  Bruno Haible  <bruno@clisp.org>
34882
34883         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34884         * m4/sha512.m4 (gl_SHA512): Likewise.
34885
34886 2008-05-11  Jim Meyering  <meyering@redhat.com>
34887
34888         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34889         * modules/crypto/sha256: New file.
34890         * modules/crypto/sha512: Likewise.
34891         * lib/sha256.c: Likewise.
34892         * lib/sha256.h: Likewise.
34893         * lib/sha512.c: Likewise.
34894         * lib/sha512.h: Likewise.
34895         * lib/u64.h: Likewise.
34896         * m4/sha256.m4: Likewise.
34897         * m4/sha512.m4: Likewise.
34898         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34899
34900 2008-05-10  Bruno Haible  <bruno@clisp.org>
34901
34902         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34903         (Input/Output <stdio.h>): Add xprintf.
34904         (Signal handling <signal.h>): Add strsignal.
34905         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34906         (Core language properties): Add func.
34907         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34908         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34909         strings.
34910         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34911         (Input/output): New section.
34912         (File system functions): Add openat-die, stat-macros.
34913         (Networking functions): Add sockets.
34914         (Unicode string functions): Add unictype/*.
34915         (Support for building libraries and executables): Add gperf.
34916         (Support for building documentation): Add agpl-3.0.
34917         (Misc): Add nocrash.
34918
34919 2008-05-10  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/unictype/gen-ctype: New file.
34922
34923 2008-05-10  Jim Meyering  <meyering@redhat.com>
34924
34925         Make chdir-safer.c more efficient on a system with no symlinks.
34926         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34927         also if ELOOP is zero.  Suggested by Bruno Haible.
34928
34929         Make chdir-safer.c slightly safer.
34930         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34931         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34932
34933         Avoid compile failure on systems without ELOOP (like mingw).
34934         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34935         Reported by Bruno Haible.
34936
34937 2008-05-10  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34940         (is_utf8_encoding): Use a case-insensitive comparison.
34941         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34942         streq.
34943
34944 2008-05-10  Bruno Haible  <bruno@clisp.org>
34945
34946         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34947         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34948         * lib/unilbrk/ulc-common.h (iconv_string_length,
34949         iconv_string_keeping_offsets): Remove declarations.
34950         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34951         Don't include <iconv.h>, streq.h, xsize.h.
34952         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34953         conversion.
34954         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34955         <iconv.h>, streq.h, xsize.h.
34956         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34957         conversion.
34958         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34959         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34960         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34961         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34962
34963 2008-05-10  Bruno Haible  <bruno@clisp.org>
34964
34965         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34966         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34967
34968         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34969         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34970
34971         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34972         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34973
34974         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34975         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34976
34977         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34978         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34979
34980         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34981         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34982
34983         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34984         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34985
34986         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34987         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34988
34989 2008-05-10  Bruno Haible  <bruno@clisp.org>
34990
34991         Split up 'linebreak' module.
34992         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34993         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34994         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34995         modifications.
34996         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34997         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34998         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34999         lib/linebreak.c.
35000         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35001         lib/linebreak.c.
35002         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35003         lib/linebreak.c.
35004         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35005         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35006         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35007         lib/linebreak.c.
35008         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35009         lib/linebreak.c.
35010         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35011         lib/linebreak.c.
35012         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35013         lib/linebreak.c.
35014         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35015         lib/linebreak.c.
35016         * modules/unilbrk/base: New file.
35017         * modules/unilbrk/tables: New file.
35018         * modules/unilbrk/u8-possible-linebreaks: New file.
35019         * modules/unilbrk/u16-possible-linebreaks: New file.
35020         * modules/unilbrk/u32-possible-linebreaks: New file.
35021         * modules/unilbrk/ulc-common: New file.
35022         * modules/unilbrk/ulc-possible-linebreaks: New file.
35023         * modules/unilbrk/u8-width-linebreaks: New file.
35024         * modules/unilbrk/u16-width-linebreaks: New file.
35025         * modules/unilbrk/u32-width-linebreaks: New file.
35026         * modules/unilbrk/ulc-width-linebreaks: New file.
35027         * lib/linebreak.h: Remove file.
35028         * lib/linebreak.c: Remove file.
35029         * m4/linebreak.m4: Remove file.
35030         * modules/linebreak: Remove file.
35031         * NEWS: Mention the changes.
35032
35033 2008-05-09  Eric Blake  <ebb9@byu.net>
35034
35035         Add xmemdup0.
35036         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35037         implementation.
35038         * lib/xmalloc.c (xmemdup0): New C implementation.
35039
35040 2008-05-08  Bruno Haible  <bruno@clisp.org>
35041
35042         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35043
35044 2008-05-07  Eric Blake  <ebb9@byu.net>
35045
35046         Support cross-compilation of <wctype.h>.
35047         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35048         AC_CACHE_CHECK.
35049
35050 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35051
35052         * build-aux/vc-list-files: Add support for bzr.
35053
35054 2008-05-03  Jim Meyering  <meyering@redhat.com>
35055
35056         avoid failed assertion with tight malloc
35057         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35058
35059 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35060
35061         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35062         are needed from arpa/inet.h.
35063         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35064         Reported by Bruno Haible.
35065
35066 2008-05-02  Jim Meyering  <meyering@redhat.com>
35067
35068         avoid compilation error on FreeBSD 6
35069         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35070
35071 2008-05-01  Jim Meyering  <meyering@redhat.com>
35072
35073         useless-if-before-free: correct --help's exit status description
35074         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35075         for one or more matches, etc.  Reported by Bruno Haible.
35076
35077         vc-list-files: make the stand-alone gnulib test work
35078         * modules/vc-list-files-tests (configure.ac):
35079         Define and AC_SUBST abs_aux_dir.
35080         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35081         $(abs_top_srcdir) to each script and having each of them
35082         duplicate the work of setting PATH, set PATH here, using
35083         the new variable, abs_aux_dir instead.
35084         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35085         * tests/test-vc-list-files-git.sh: Likewise.
35086         Reported by Bruno Haible.
35087
35088 2008-05-01  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35091         reallocation. Rename 'done' to 'found_delimiter'.
35092
35093 2008-05-01  Jim Meyering  <meyering@redhat.com>
35094
35095         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35096         * build-aux/vc-list-files: Use `...`, not $(...).
35097
35098 2008-04-30  Jim Meyering  <meyering@redhat.com>
35099
35100         add tests for vc-list-files
35101         * modules/vc-list-files-tests: New module.
35102         * tests/test-vc-list-files-cvs.sh: New file.
35103         * tests/test-vc-list-files-git.sh: New file.
35104
35105         avoid a warning from gcc
35106         * lib/getndelim2.c (IF_LINT): Define.
35107         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35108
35109         vc-list-files: work properly with build-aux/cvsu, too
35110         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35111         to all cvs-based clauses.
35112
35113         vc-list-files: work properly in the CVS+awk case, too
35114         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35115
35116         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35117         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35118         take more than one file argument, so .  Add quotes, just in case $dir
35119         ever contains a shell meta-character.  Prompted by Soren Hansen in
35120         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35121
35122 2008-04-29  Eric Blake  <ebb9@byu.net>
35123
35124         Optimize getndelim2 to use block operations when possible.
35125         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35126         freadseek, and memchr2.
35127         * lib/getndelim2.c (getndelim2): Use them for block reads.
35128
35129 2008-04-29  Bruno Haible  <bruno@clisp.org>
35130
35131         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35132         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35133         * modules/inet_ntop (Depends-on): Add extensions.
35134         * modules/inet_pton (Depends-on): Likewise.
35135         Reported by Simon Josefsson.
35136
35137 2008-04-29  Jim Meyering  <meyering@redhat.com>
35138
35139         When the is more than one match in a block, match all of them.
35140         * build-aux/useless-if-before-free: Iterate through each block
35141         until there are no more matches.
35142
35143         Fix broken useless-if-before-free script.
35144         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35145         the expression to match cast of argument to free-like function.
35146
35147 2008-04-29  Eric Blake  <ebb9@byu.net>
35148
35149         Use new header.
35150         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35151
35152 2008-04-29  Jim Meyering  <meyering@redhat.com>
35153
35154         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35155         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35156         by gnulib to exist and to declare e.g., inet_ntop.
35157         Don't include "inet_ntop.h", now removed.
35158
35159         * m4/arpa_inet_h.m4: Remove trailing blanks.
35160
35161 2008-04-29  Eric Blake  <ebb9@byu.net>
35162
35163         Silence valgrind on safe reads beyond potential array bounds.
35164         * lib/rawmemchr.valgrind: New file.
35165         * lib/strchrnul.valgrind: Likewise.
35166         * modules/rawmemchr (Files): Distribute new file.
35167         * modules/strchrnul (Files): Likewise.
35168         Suggested by Bruno Haible.
35169
35170 2008-04-29  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35173         (inet_ntop, inet_pton): Change portability warning's wording.
35174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35175         Invoke gl_CHECK_NEXT_HEADERS.
35176         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35177         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35178         set ARPA_INET_H.
35179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35180         * modules/arpa_inet (Description): No longer only for systems that
35181         lack it.
35182         (Depends-on): Add include_next.
35183         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35184         HAVE_ARPA_INET_H.
35185
35186 2008-04-29  Jim Meyering  <meyering@redhat.com>
35187
35188         * modules/mkdir (License): Re-license as LGPLv2+.
35189
35190 2008-04-29  Bruno Haible  <bruno@clisp.org>
35191
35192         * modules/rawmemchr (Maintainer): Set to Eric.
35193         * modules/strchrnul (Maintainer): Likewise.
35194
35195 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35196
35197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35198         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35199
35200         * modules/arpa_inet (arpa/inet.h): Use them.
35201
35202 2008-04-28  Eric Blake  <ebb9@byu.net>
35203
35204         Test getndelim2.
35205         * modules/getndelim2-tests: New file.
35206         * tests/test-getndelim2.c: Likewise.
35207         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35208         stream.
35209         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35210
35211         * MODULES.html.sh: Document new module.
35212
35213 2008-04-20  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/c-stack.c (die): Use raise.
35216         * modules/c-stack (Depends-on): Add raise.
35217
35218 2008-04-28  Bruno Haible  <bruno@clisp.org>
35219
35220         Expect rpmatch to be declared.
35221         * lib/yesno.c (rpmatch): Remove declaration.
35222
35223         Declare rpmatch.
35224         * lib/stdlib.in.h (rpmatch): New declaration.
35225         * lib/rpmatch.c: Include <stdlib.h> first.
35226         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35227         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35229         HAVE_RPMATCH.
35230         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35232         (Include): Set to <stdlib.h>.
35233         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35234         HAVE_RPMATCH.
35235         * NEWS: Document the change.
35236
35237 2008-04-28  Bruno Haible  <bruno@clisp.org>
35238
35239         Change rpmatch to use nl_langinfo when appropriate.
35240         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35241         (N_): New macro.
35242         (localized_pattern): New function/macro.
35243         (try): Remove match, nomatch arguments. Copy the pattern into safe
35244         memory before caching it.
35245         (rpmatch): Use localized_pattern. Add translator comments.
35246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35247         Suggested by Eric Blake.
35248         * modules/rpmatch (Depends-on): Add stdbool.
35249
35250 2008-04-28  Eric Blake  <ebb9@byu.net>
35251
35252         Add rawmemchr module, matching glibc.
35253         * modules/string (Makefile.am): New indicator.
35254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35255         * lib/string.in.h (rawmemchr): Declare when appropriate.
35256         * modules/rawmemchr: New file.
35257         * m4/rawmemchr.m4: Likewise.
35258         * lib/rawmemchr.c: Likewise.
35259         * modules/rawmemchr-tests: Likewise.
35260         * tests/test-rawmemchr.c: Likewise.
35261         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35262         module.
35263         * modules/strchrnul (Depends-on): Add rawmemchr.
35264         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35265
35266         Whitespace cleanup.
35267         * tests/test-strchrnul.c: Reindent.
35268         * lib/strchrnul.c: Likewise.
35269
35270         Optimize and test strchrnul.
35271         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35272         * modules/strchrnul-tests: New file.
35273         * tests/test-strchrnul.c: Likewise.
35274
35275         Remove intprops dependency.
35276         * modules/memchr (Depends-on): Remove intprops.
35277         * modules/memrchr (Depends-on): Likewise.
35278         * modules/memchr2 (Depends-on): Likewise.
35279         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35280         * lib/memrchr.c (__memrchr): Likewise.
35281         * lib/memrchr2.c (memchr2): Likewise.
35282         Reported by Simon Josefsson.
35283
35284 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35285
35286         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35287         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35288
35289 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35290
35291         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
35292
35293         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
35294
35295         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
35296
35297         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
35298         declarations.
35299         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
35300
35301         * m4/inet_pton.m4: Don't check for header files.
35302
35303         * m4/inet_ntop.m4: Don't check for header files.
35304
35305 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35306
35307         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
35308         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
35309         trigger for cygwin).
35310         Reported by Bruno Haible  <bruno@clisp.org>.
35311
35312 2008-04-28  Bruno Haible  <bruno@clisp.org>
35313
35314         * doc/posix-functions/strdup.texi: Mention mingw problem.
35315
35316 2008-04-27  Bruno Haible  <bruno@clisp.org>
35317
35318         * modules/stat-time-tests (Depends-on): Add sleep.
35319         * tests/test-stat-time.c (force_unlink): New function.
35320         (cleanup): Use it.
35321         (test_mtime): Remove the ctime related tests.
35322         (test_ctime): New function, containing the ctime related tests.
35323         (main): Call test_ctime, except on native Windows platforms.
35324
35325 2008-04-27  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/rpmatch.c (rpmatch): Add some comments.
35328         Reported by James Youngman <jay@gnu.org>.
35329
35330 2008-04-27  Bruno Haible  <bruno@clisp.org>
35331
35332         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
35333         quiet NaNs.
35334
35335 2008-04-27  Bruno Haible  <bruno@clisp.org>
35336
35337         Make test-yesno.sh work on mingw.
35338         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35339         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35340         (main): Set stdin to binary mode.
35341         * modules/yesno-tests (Depends-on): Add binary-io.
35342
35343 2008-04-27  Bruno Haible  <bruno@clisp.org>
35344
35345         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35346         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35347         argument that lie outside the IEEE 854 domain.
35348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35349         (gl_ISFINITE): Use it.
35350         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35351
35352 2008-04-27  Bruno Haible  <bruno@clisp.org>
35353
35354         Allow local renaming in config.h.
35355         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35356
35357 2008-04-27  Bruno Haible  <bruno@clisp.org>
35358
35359         * lib/memchr.c (__memchr): Change type of 'i'.
35360         * lib/memchr2.c (memchr2): Likewise.
35361
35362 2008-04-26  Eric Blake  <ebb9@byu.net>
35363         and Bruno Haible  <bruno@clisp.org>
35364
35365         Optimize and test memrchr.
35366         * modules/memrchr (Depends-on): Add intprops.
35367         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35368         * modules/memrchr-tests: New file.
35369         * tests/test-memrchr.c: New file.
35370
35371 2008-04-26  Bruno Haible  <bruno@clisp.org>
35372
35373         Add tentative support for DragonFly BSD.
35374         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35375         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35376         fp.
35377         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35378         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35379         * lib/fpurge.c (fpurge): Likewise.
35380         * lib/freadable.c (freaadable): Likewise.
35381         * lib/freadahead.c (freadahead): Likewise.
35382         * lib/freading.c (freading): Likewise.
35383         * lib/freadptr.c (freadptr): Likewise.
35384         * lib/freadseek.c (freadptrinc): Likewise.
35385         * lib/fseeko.c (fseeko): Likewise.
35386         * lib/fseterr.c (fseterr): Likewise.
35387         * lib/fwritable.c (fwritable): Likewise.
35388         * lib/fwriting.c (fwriting): Likewise.
35389
35390 2008-04-26  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/stdio-impl.h: New file.
35393         * lib/fbufmode.c: Include stdio-impl.h.
35394         (fbufmode): Use fp_, remove redundant #defines.
35395         * lib/fflush.c: Include stdio-impl.h.
35396         (clear_ungetc_buffer): Remove redundant #defines.
35397         * lib/fpurge.c: Include stdio-impl.h.
35398         (fpurge): Remove redundant #defines.
35399         * lib/freadable.c: Include stdio-impl.h.
35400         (freadable): Remove redundant #defines.
35401         * lib/freadahead.c: Include stdio-impl.h.
35402         (freadahead): Remove redundant #defines.
35403         * lib/freading.c: Include stdio-impl.h.
35404         (freading): Remove redundant #defines.
35405         * lib/freadptr.c: Include stdio-impl.h.
35406         (freadptr): Remove redundant #defines.
35407         * lib/freadseek.c: Include stdio-impl.h.
35408         (freadptrinc): Remove redundant #defines.
35409         * lib/fseeko.c: Include stdio-impl.h.
35410         (rpl_fseeko): Remove redundant #defines.
35411         * lib/fseterr.c: Include stdio-impl.h.
35412         (fseterr): Remove redundant #defines.
35413         * lib/fwritable.c: Include stdio-impl.h.
35414         (fwritable: Remove redundant #defines.
35415         * lib/fwriting.c: Include stdio-impl.h.
35416         (fwriting): Remove redundant #defines.
35417         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35418         * modules/fflush (Files): Likewise.
35419         * modules/fpurge (Files): Likewise.
35420         * modules/freadable (Files): Likewise.
35421         * modules/freadahead (Files): Likewise.
35422         * modules/freading (Files): Likewise.
35423         * modules/freadptr (Files): Likewise.
35424         * modules/freadseek (Files): Likewise.
35425         * modules/fseeko (Files): Likewise.
35426         * modules/fseterr (Files): Likewise.
35427         * modules/fwritable (Files): Likewise.
35428         * modules/fwriting (Files): Likewise.
35429
35430 2008-04-26  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35433         restore_seek_optimization, update_fpos_cache): New functions, extracted
35434         from rpl_fflush.
35435         (rpl_fflush): Use them.
35436         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35437         (gl_REPLACE_FFLUSH): Use it.
35438
35439 2008-04-26  Bruno Haible  <bruno@clisp.org>
35440
35441         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35442         on Solaris.
35443         * tests/test-xstrtoimax.sh: Likewise.
35444         * tests/test-xstrtoumax.sh: Likewise.
35445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35446
35447 2008-04-26  Bruno Haible  <bruno@clisp.org>
35448
35449         * modules/memchr-tests: New file.
35450         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35451
35452 2008-04-26  Eric Blake  <ebb9@byu.net>
35453             Bruno Haible  <bruno@clisp.org>
35454
35455         * lib/memchr.c: Include intprops.h.
35456         (__memchr): Optimize parallel detection of matching bytes. Rename local
35457         variables. Add explanatory comments.
35458
35459 2008-04-26  Bruno Haible  <bruno@clisp.org>
35460
35461         Fix module 'memchr', broken since 2000-10-28.
35462         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35463
35464 2008-04-26  Bruno Haible  <bruno@clisp.org>
35465
35466         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35467         comments.
35468
35469 2008-04-25  Eric Blake  <ebb9@byu.net>
35470
35471         Use native fstatat on cygwin 1.7.0.
35472         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35473         first.
35474
35475 2008-04-23  Eric Blake  <ebb9@byu.net>
35476
35477         Improve memchr2 performance.
35478         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35479         NUL bytes.
35480         * modules/memchr2 (Depends-on): Use intprops.h.
35481
35482 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35483
35484         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35485         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35486         <blp@cs.stanford.edu>.
35487
35488 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35489
35490         * lib/arpa_inet.in.h: New file.
35491
35492         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35493         (Makefile.am): Sed in substitute header file.
35494
35495         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35496         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35497
35498         * modules/inet_ntop (configure.ac): Use
35499         gl_ARPA_INET_MODULE_INDICATOR.
35500
35501         * modules/inet_pton (configure.ac): Use
35502         gl_ARPA_INET_MODULE_INDICATOR.
35503
35504 2008-04-22  Jim Meyering  <meyering@redhat.com>
35505
35506         * modules/verify (License): Re-license as LGPLv2+.
35507
35508 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35509
35510         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35511         parameter to void* as per POSIX standard (MinGW uses char*).
35512
35513 2008-04-21  Bruno Haible  <bruno@clisp.org>
35514
35515         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35516         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35517         Define to replacements if REPLACE_ISWCNTRL is 1.
35518         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35519         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35520         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35521         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35522         what it fixes.
35523         * doc/posix-functions/iswalpha.texi: Likewise.
35524         * doc/posix-functions/iswblank.texi: Likewise.
35525         * doc/posix-functions/iswcntrl.texi: Likewise.
35526         * doc/posix-functions/iswdigit.texi: Likewise.
35527         * doc/posix-functions/iswgraph.texi: Likewise.
35528         * doc/posix-functions/iswlower.texi: Likewise.
35529         * doc/posix-functions/iswprint.texi: Likewise.
35530         * doc/posix-functions/iswpunct.texi: Likewise.
35531         * doc/posix-functions/iswspace.texi: Likewise.
35532         * doc/posix-functions/iswupper.texi: Likewise.
35533         * doc/posix-functions/iswxdigit.texi: Likewise.
35534         Reported by Alain Guibert.
35535
35536 2008-04-21  Bruno Haible  <bruno@clisp.org>
35537
35538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35539         Patch by Alain Guibert.
35540
35541 2008-04-21  Bruno Haible  <bruno@clisp.org>
35542
35543         Fix test failures on mingw.
35544         * tests/test-xstrtol.c (print_no_progname): New function.
35545         (main): Install it in error_print_progname hook.
35546         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35547         * tests/test-xstrtoimax.sh: Likewise.
35548         * tests/test-xstrtoumax.sh: Likewise.
35549
35550 2008-04-21  Bruno Haible  <bruno@clisp.org>
35551
35552         Fix test failure on mingw.
35553         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35554
35555 2008-04-21  Bruno Haible  <bruno@clisp.org>
35556
35557         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35558         Actually assign a value.
35559
35560 2008-04-20  Bruno Haible  <bruno@clisp.org>
35561
35562         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35563         take 2.
35564         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35565         'canonicalize-lgpl' module is also used.
35566         * lib/canonicalize-lgpl.c: Undo last change.
35567         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35568
35569 2008-04-20  Bruno Haible  <bruno@clisp.org>
35570
35571         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35572         config.h. Provide _mkdir based fallback for mingw.
35573         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35574         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35575         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35576         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35577         rather than defining mkdir in config.h.
35578         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35579         (gl_SYS_STAT_H_DEFAULTS): New macro.
35580         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35581         HAVE_IO_H any more.
35582         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35583         HAVE_DECL_MKDIR and HAVE_IO_H.
35584
35585 2008-04-20  Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/isapipe.c: Port to native Windows platforms.
35588
35589 2008-04-20  Bruno Haible  <bruno@clisp.org>
35590
35591         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35592
35593 2008-04-21  Eric Blake  <ebb9@byu.net>
35594
35595         Work around preprocessors that don't handle UINTMAX_MAX.
35596         * lib/memchr2.c (memchr2): Avoid embedded #if.
35597         Reported by Alain Guibert, fix suggested by Bruno Haible.
35598
35599 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35600
35601         * doc/posix-functions/strftime.texi (strftime): Explain better
35602         Windows incompatibility.  Suggested by Micah Cowan
35603         <micah@cowan.name>.
35604
35605 2008-04-20  Bruno Haible  <bruno@clisp.org>
35606
35607         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35608         unistr/u8-mblen.
35609
35610 2008-04-20  Bruno Haible  <bruno@clisp.org>
35611
35612         Fix test failure on platforms with non-GNU iconv.
35613         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35614         (U_TO_U8): Use it, rather than u16_to_u8.
35615         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35616         units at the end of the input string.
35617         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35618
35619 2008-04-20  Bruno Haible  <bruno@clisp.org>
35620
35621         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35622         when the resulting length is 0.
35623         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35624
35625 2008-04-20  Bruno Haible  <bruno@clisp.org>
35626
35627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35628         works.
35629         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35630
35631 2008-04-20  Bruno Haible  <bruno@clisp.org>
35632
35633         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35634         * modules/tsearch-tests (configure.ac): Test for initstate function.
35635
35636 2008-04-20  Bruno Haible  <bruno@clisp.org>
35637
35638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35639         for nlink_t if missing.
35640         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35641
35642 2008-04-19  Bruno Haible  <bruno@clisp.org>
35643
35644         Work around snprintf bug on Linux libc5.
35645         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35647         gl_SNPRINTF_SIZE1.
35648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35649         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35650         that test failed.
35651         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35652         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35653         * modules/snprintf (Files): Add m4/printf.m4.
35654         * modules/vsnprintf (Files): Likewise.
35655         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35656         * doc/posix-functions/vsnprintf.texi: Likewise.
35657
35658 2008-04-19  Bruno Haible  <bruno@clisp.org>
35659
35660         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35661         from 0.0058 to less than 10^-7.
35662
35663 2008-04-19  Bruno Haible  <bruno@clisp.org>
35664
35665         Fix rounding when a precision is given.
35666         * lib/vasnprintf.c (is_borderline): New function.
35667         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35668         9...9x.
35669         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35670         %e, %g.
35671         * tests/test-vasprintf-posix.c (test_function): Likewise.
35672         * tests/test-snprintf-posix.h (test_function): Likewise.
35673         * tests/test-sprintf-posix.h (test_function): Likewise.
35674         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35675         * tests/test-printf-posix.h (test_function): Likewise.
35676         * tests/test-printf-posix.output: Update.
35677         Reported by John Darrington <john@darrington.wattle.id.au> via
35678         Ben Pfaff <blp@cs.stanford.edu>.
35679
35680 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35681
35682         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35683         Suggested by Bruno Haible <bruno@clisp.org>.
35684
35685 2008-04-17  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35688         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35689         implementation.
35690         Patch by Bruce Merry <bmerry@gmail.com>.
35691
35692 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35693
35694         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35695         doesn't work under Windows.
35696
35697 2008-04-16  Bruno Haible  <bruno@clisp.org>
35698
35699         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35700         New macros.
35701         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35702         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35703         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35704         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35705         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35706         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35707         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35708         macros.
35709         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35710         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35711         Northern Sotho, Uighur.
35712
35713 2008-04-16  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35716         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35717         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35718         Reported by Daniel Bergström <daniel@octocode.com>.
35719
35720 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35721             Bruno Haible  <bruno@clisp.org>
35722
35723         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35724         function.
35725         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35726         New functions, mostly extracted from gl_locale_name_default.
35727         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35728
35729 2008-04-16  Eric Blake  <ebb9@byu.net>
35730
35731         Adjust strtod detection to catch glibc 2.7 bug.
35732         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35733         Reported by John Gatewood Ham.
35734
35735 2008-04-16  Bruno Haible  <bruno@clisp.org>
35736
35737         Add tentative support for Linux libc5.
35738         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35739         * lib/fpurge.c (fpurge): Likewise.
35740         * lib/freadable.c (freadable): Likewise.
35741         * lib/freadahead.c (freadahead): Likewise.
35742         * lib/freading.c (freading): Likewise.
35743         * lib/freadptr.c (freadptr): Likewise.
35744         * lib/freadseek.c (freadptrinc): Likewise.
35745         * lib/fseeko.c (rpl_fseeko): Likewise.
35746         * lib/fseterr.c (fseterr): Likewise.
35747         * lib/fwritable.c (fwritable): Likewise.
35748         * lib/fwriting.c (fwriting): Likewise.
35749         Reported by Alain Guibert <alguibert+bts@free.fr>.
35750
35751 2008-04-15  Bruno Haible  <bruno@clisp.org>
35752
35753         * modules/mathl (configure.ac): Define module indicator.
35754
35755 2008-04-15  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/logl.c (logl): Remove unused variables.
35758
35759 2008-04-15  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35762         fails.
35763
35764 2008-04-15  Bruno Haible  <bruno@clisp.org>
35765
35766         * lib/trim.c (trim2): Fix argument of isspace() macro.
35767
35768 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35769
35770         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35771         to 0.
35772         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35773
35774 2008-04-14  Bruno Haible  <bruno@clisp.org>
35775
35776         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35777         AC_LANG_PROGRAM argument.
35778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35779         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35781         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35782         * m4/math_h.m4 (gl_MATH_H): Likewise.
35783         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35788         * m4/regex.m4 (gl_REGEX): Likewise.
35789         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35790         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35794         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35797
35798 2008-04-14  Jim Meyering  <meyering@redhat.com>
35799
35800         test-strtod: fix typos: s/abs/fabs/
35801         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35802
35803 2008-04-13  Bruno Haible  <bruno@clisp.org>
35804
35805         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35806         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35807         module is also used and while not building the reloc-wrapper.
35808
35809 2008-04-13  Bruno Haible  <bruno@clisp.org>
35810
35811         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35812
35813 2008-04-13  Bruno Haible  <bruno@clisp.org>
35814
35815         Fix AIX compilation failure introduced on 2008-04-02.
35816         * tests/test-frexp.c (exp): Undefine before redefining.
35817         * tests/test-frexpl.c (exp): Likewise.
35818
35819 2008-04-13  Bruno Haible  <bruno@clisp.org>
35820
35821         Work around a HP-UX stdio bug.
35822         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35823         * tests/test-ftello.c (main): Likewise.
35824         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35825         * doc/posix-functions/ftello.texi: Likewise.
35826
35827 2008-04-13  Bruno Haible  <bruno@clisp.org>
35828
35829         Make test-signbit pass on HP-UX/hppa.
35830         * tests/test-signbit.c (minus_zerol): New variable.
35831         (test_signbitl): Use it.
35832
35833 2008-04-13  Bruno Haible  <bruno@clisp.org>
35834
35835         Make truncl work on OSF/1 4.0.
35836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35837         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35838         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35840         HAVE_DECL_TRUNCL.
35841         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35842         HAVE_DECL_TRUNCL.
35843         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35844
35845 2008-04-13  Bruno Haible  <bruno@clisp.org>
35846
35847         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35848
35849 2008-04-13  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35852         expression, so as to avoid HP-UX 11 cc compiler bug.
35853
35854 2008-04-13  Bruno Haible  <bruno@clisp.org>
35855
35856         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35857
35858 2008-04-13  Bruno Haible  <bruno@clisp.org>
35859
35860         * lib/git-merge-changelog.c: Remove empty declaration outside of
35861         functions.
35862
35863 2008-04-13  Bruno Haible  <bruno@clisp.org>
35864
35865         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35866
35867 2008-04-13  Bruno Haible  <bruno@clisp.org>
35868
35869         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35870         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35872         also if it exists but lacks definitions of the SHUT_* macros.
35873         * modules/sys_socket (Description): Update.
35874         Reported by Elbert Pol <e.pol@chello.nl>.
35875
35876 2008-04-13  Bruno Haible  <bruno@clisp.org>
35877
35878         * lib/localcharset.c (OS2): Don't redefine if already defined.
35879         Reported by Elbert Pol <e.pol@chello.nl>.
35880
35881 2008-04-13  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/binary-io.h [__EMX__]: Include <io.h>.
35884         Reported by Elbert Pol <e.pol@chello.nl>.
35885
35886 2008-04-12  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/fpucw.h: Enable the definitions also for x86_64.
35889         Needed for NetBSD/x86_64.
35890         Reported by Thomas Klausner <tk@giga.or.at>.
35891
35892 2008-04-12  Bruno Haible  <bruno@clisp.org>
35893
35894         * tests/test-strtod.c: Include isnand.h.
35895         (main): Use isnand instead of isnan.
35896         Reported by Jim Meyering.
35897
35898 2008-04-12  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35901         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35902
35903 2008-04-12  Jim Meyering  <meyering@redhat.com>
35904
35905         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35906
35907 2008-04-12  Bruno Haible  <bruno@clisp.org>
35908
35909         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35910         Reported by Elbert Pol <e.pol@chello.nl>.
35911
35912 2008-04-12  Eric Blake  <ebb9@byu.net>
35913
35914         Work around Solaris 10 math.h bug.
35915         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35916         (gl_MATH_H_DEFAULTS): Set up default.
35917         * modules/math (Makefile.am): Replace new indicators.
35918         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35919         * tests/test-math.c (main): Test this.
35920         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35921         * doc/posix-headers/math.texi (math.h): Mention bug.
35922         Reported by Nelson H. F. Beebe and Jim Meyering.
35923
35924 2008-04-11  Bruno Haible  <bruno@clisp.org>
35925
35926         Adapt to future versions of Apple GCC.
35927         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35928         Reported by Peter O'Gorman <peter@pogma.com>.
35929
35930 2008-04-11  Bruno Haible  <bruno@clisp.org>
35931
35932         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35933
35934 2008-04-11  Bruno Haible  <bruno@clisp.org>
35935
35936         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35937
35938         * modules/getaddrinfo-tests (Makefile.am): Define
35939         test_getaddrinfo_LDADD.
35940
35941 2008-04-11  Bruno Haible  <bruno@clisp.org>
35942
35943         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35944         (init): Fix syntax error.
35945         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35946         is declared.
35947
35948 2008-04-11  Bruno Haible  <bruno@clisp.org>
35949
35950         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35951         * modules/glob (Depends-on): Add stdbool.
35952
35953 2008-04-11  Bruno Haible  <bruno@clisp.org>
35954
35955         * lib/trim.c: Include <string.h>.
35956
35957 2008-04-11  Eric Blake  <ebb9@byu.net>
35958
35959         Avoid compile failure on OS/2.
35960         * lib/regex_internal.h (internal_function): Disable optimization
35961         on OS/2 (__EMX__), where it caused compiler error.
35962         Reported by Elbert Pol.
35963
35964 2008-04-11  Bruno Haible  <bruno@clisp.org>
35965
35966         Flush the standard error stream before aborting. Needed on mingw.
35967         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35968         * tests/test-array_list.c (ASSERT): Likewise.
35969         * tests/test-array_oset.c (ASSERT): Likewise.
35970         * tests/test-avltree_list.c (ASSERT): Likewise.
35971         * tests/test-avltree_oset.c (ASSERT): Likewise.
35972         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35973         * tests/test-binary-io.c (ASSERT): Likewise.
35974         * tests/test-byteswap.c (ASSERT): Likewise.
35975         * tests/test-c-ctype.c (ASSERT): Likewise.
35976         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35977         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35978         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35979         * tests/test-c-strstr.c (ASSERT): Likewise.
35980         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35981         * tests/test-canonicalize.c (ASSERT): Likewise.
35982         * tests/test-carray_list.c (ASSERT): Likewise.
35983         * tests/test-ceilf1.c (ASSERT): Likewise.
35984         * tests/test-ceilf2.c (ASSERT): Likewise.
35985         * tests/test-ceill.c (ASSERT): Likewise.
35986         * tests/test-count-one-bits.c (ASSERT): Likewise.
35987         * tests/test-fbufmode.c (ASSERT): Likewise.
35988         * tests/test-fflush2.c (ASSERT): Likewise.
35989         * tests/test-floorf1.c (ASSERT): Likewise.
35990         * tests/test-floorf2.c (ASSERT): Likewise.
35991         * tests/test-floorl.c (ASSERT): Likewise.
35992         * tests/test-fopen.c (ASSERT): Likewise.
35993         * tests/test-fpending.c (ASSERT): Likewise.
35994         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35995         * tests/test-fpurge.c (ASSERT): Likewise.
35996         * tests/test-freadable.c (ASSERT): Likewise.
35997         * tests/test-freadahead.c (ASSERT): Likewise.
35998         * tests/test-freading.c (ASSERT): Likewise.
35999         * tests/test-freadptr.c (ASSERT): Likewise.
36000         * tests/test-freadptr2.c (ASSERT): Likewise.
36001         * tests/test-freadseek.c (ASSERT): Likewise.
36002         * tests/test-freopen.c (ASSERT): Likewise.
36003         * tests/test-frexp.c (ASSERT): Likewise.
36004         * tests/test-frexpl.c (ASSERT): Likewise.
36005         * tests/test-fseek.c (ASSERT): Likewise.
36006         * tests/test-fseeko.c (ASSERT): Likewise.
36007         * tests/test-fstrcmp.c (ASSERT): Likewise.
36008         * tests/test-ftell.c (ASSERT): Likewise.
36009         * tests/test-ftello.c (ASSERT): Likewise.
36010         * tests/test-func.c (ASSERT): Likewise.
36011         * tests/test-fwritable.c (ASSERT): Likewise.
36012         * tests/test-fwriting.c (ASSERT): Likewise.
36013         * tests/test-getdelim.c (ASSERT): Likewise.
36014         * tests/test-getline.c (ASSERT): Likewise.
36015         * tests/test-i-ring.c (ASSERT): Likewise.
36016         * tests/test-iconv-utf.c (ASSERT): Likewise.
36017         * tests/test-iconv.c (ASSERT): Likewise.
36018         * tests/test-isfinite.c (ASSERT): Likewise.
36019         * tests/test-isnand.c (ASSERT): Likewise.
36020         * tests/test-isnanf.c (ASSERT): Likewise.
36021         * tests/test-isnanl.h (ASSERT): Likewise.
36022         * tests/test-ldexpl.c (ASSERT): Likewise.
36023         * tests/test-linked_list.c (ASSERT): Likewise.
36024         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36025         * tests/test-localename.c (ASSERT): Likewise.
36026         * tests/test-lseek.c (ASSERT): Likewise.
36027         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36028         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36029         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36030         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36031         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36032         * tests/test-mbschr.c (ASSERT): Likewise.
36033         * tests/test-mbscspn.c (ASSERT): Likewise.
36034         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36035         * tests/test-mbspbrk.c (ASSERT): Likewise.
36036         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36037         * tests/test-mbsrchr.c (ASSERT): Likewise.
36038         * tests/test-mbsspn.c (ASSERT): Likewise.
36039         * tests/test-mbsstr1.c (ASSERT): Likewise.
36040         * tests/test-mbsstr2.c (ASSERT): Likewise.
36041         * tests/test-mbsstr3.c (ASSERT): Likewise.
36042         * tests/test-memchr2.c (ASSERT): Likewise.
36043         * tests/test-memmem.c (ASSERT): Likewise.
36044         * tests/test-open.c (ASSERT): Likewise.
36045         * tests/test-printf-frexp.c (ASSERT): Likewise.
36046         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36047         * tests/test-printf-posix.c (ASSERT): Likewise.
36048         * tests/test-quotearg.c (ASSERT): Likewise.
36049         * tests/test-rbtree_list.c (ASSERT): Likewise.
36050         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36051         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36052         * tests/test-round1.c (ASSERT): Likewise.
36053         * tests/test-roundf1.c (ASSERT): Likewise.
36054         * tests/test-roundl.c (ASSERT): Likewise.
36055         * tests/test-signbit.c (ASSERT): Likewise.
36056         * tests/test-sleep.c (ASSERT): Likewise.
36057         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36058         * tests/test-snprintf.c (ASSERT): Likewise.
36059         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36060         * tests/test-stat-time.c (ASSERT): Likewise.
36061         * tests/test-strcasestr.c (ASSERT): Likewise.
36062         * tests/test-strerror.c (ASSERT): Likewise.
36063         * tests/test-striconv.c (ASSERT): Likewise.
36064         * tests/test-striconveh.c (ASSERT): Likewise.
36065         * tests/test-striconveha.c (ASSERT): Likewise.
36066         * tests/test-strsignal.c (ASSERT): Likewise.
36067         * tests/test-strstr.c (ASSERT): Likewise.
36068         * tests/test-strtod.c (ASSERT): Likewise.
36069         * tests/test-trunc1.c (ASSERT): Likewise.
36070         * tests/test-trunc2.c (ASSERT): Likewise.
36071         * tests/test-truncf1.c (ASSERT): Likewise.
36072         * tests/test-truncf2.c (ASSERT): Likewise.
36073         * tests/test-truncl.c (ASSERT): Likewise.
36074         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36075         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36076         * tests/test-vasnprintf.c (ASSERT): Likewise.
36077         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36078         * tests/test-vasprintf.c (ASSERT): Likewise.
36079         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36080         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36081         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36082         * tests/test-vsnprintf.c (ASSERT): Likewise.
36083         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36084         * tests/test-wcwidth.c (ASSERT): Likewise.
36085         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36086         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36087         * tests/test-xvasprintf.c (ASSERT): Likewise.
36088         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36089         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36090         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36091         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36092         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36093         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36094         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36095         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36096         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36097         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36098         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36099         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36100         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36101         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36102         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36103         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36104         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36105         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36106         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36107         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36108         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36109         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36110         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36111         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36112         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36113         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36114         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36115         * tests/unictype/test-combining.c (ASSERT): Likewise.
36116         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36117         * tests/unictype/test-digit.c (ASSERT): Likewise.
36118         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36119         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36120         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36121         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36122         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36123         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36124         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36125         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36126         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36127         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36128         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36129         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36130         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36131         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36132         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36133         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36134         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36135         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36136         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36137         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36138         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36139         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36140         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36141         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36142         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36143         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36144         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36145         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36146         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36147         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36148         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36149         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36150         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36151         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36152         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36153         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36154         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36155         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36156         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36157         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36158         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36159         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36160         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36161         Reported by Eric Blake.
36162
36163 2008-04-11  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/wchar.in.h: Tweak comment.
36166
36167 2008-04-11  Bruno Haible  <bruno@clisp.org>
36168
36169         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36170         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36171         gl_COMMON.
36172         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36173
36174 2008-04-11  Bruno Haible  <bruno@clisp.org>
36175
36176         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36177
36178 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36179
36180         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36181         of attempting to use non-existing /dev/*random.  Based on patch
36182         from Adam Strzelecki <ono@java.pl> in
36183         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36184
36185 2008-04-08  Bruno Haible  <bruno@clisp.org>
36186
36187         Add tentative support for emx+gcc.
36188         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36189         * lib/fpurge.c (fpurge): Likewise.
36190         * lib/freadable.c (freadable): Likewise.
36191         * lib/freadahead.c (freadahead): Likewise.
36192         * lib/freading.c (freading): Likewise.
36193         * lib/freadptr.c (freadptr): Likewise.
36194         * lib/freadseek.c (freadptrinc): Likewise.
36195         * lib/fseeko.c (rpl_fseeko): Likewise.
36196         * lib/fseterr.c (fseterr): Likewise.
36197         * lib/fwritable.c (fwritable): Likewise.
36198         * lib/fwriting.c (fwriting): Likewise.
36199         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36200
36201 2008-04-09  Eric Blake  <ebb9@byu.net>
36202
36203         Avoid some autoconf warnings.
36204         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36205         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36206         * m4/afs.m4 (gl_AFS): Likewise.
36207         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36208         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36210         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36211         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36212         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36213         (AC_CHECK_DECLS_ONCE): Likewise.
36214         Rename file...
36215         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36216         gnulib-tool requires autoconf 2.59 or better.
36217         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36218
36219 2008-04-08  Eric Blake  <ebb9@byu.net>
36220
36221         Use 'git describe --match' if present (added in git 1.5.5).
36222         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36223         if possible.
36224
36225 2008-04-08  Bruno Haible  <bruno@clisp.org>
36226
36227         Add tentative support for OpenServer.
36228         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36229         _ptr, _cnt.
36230         * lib/fpurge.c (fpurge): Likewise.
36231         * lib/freadable.c (freadable): Likewise.
36232         * lib/freadahead.c (freadahead): Likewise.
36233         * lib/freading.c (freading): Likewise.
36234         * lib/freadptr.c (freadptr): Likewise.
36235         * lib/freadseek.c (freadptrinc): Likewise.
36236         * lib/fseeko.c (rpl_fseeko): Likewise.
36237         * lib/fseterr.c (fseterr): Likewise.
36238         * lib/fwritable.c (fwritable): Likewise.
36239         * lib/fwriting.c (fwriting): Likewise.
36240         Reported by Roger Cornelius <rac@tenzing.org> and
36241         Brian K. White <brian@aljex.com>.
36242
36243 2008-04-06  Jim Meyering  <meyering@redhat.com>
36244
36245         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36246
36247 2008-04-06  Bruno Haible  <bruno@clisp.org>
36248
36249         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36250         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36251         * tests/test-printf-posix.sh: Likewise.
36252         * tests/test-vfprintf-posix.sh: Likewise.
36253         * tests/test-vprintf-posix.sh: Likewise.
36254         * tests/test-xprintf-posix.sh: Likewise.
36255
36256 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36257
36258         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36259         hide error from 'ls', needed on OS/2.
36260         Report by Elbert Pol <elbert.pol@gmail.com>.
36261
36262 2008-04-04  Eric Blake  <ebb9@byu.net>
36263
36264         Make test-fseeko.c failures meaningful.
36265         * tests/test-fseeko.c: Print line number on failure.
36266         * tests/test-fseek.c: Likewise.
36267         Reported by Nelson H. F. Beebe.
36268
36269         Improve strtod bug detection check.
36270         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36271         required for Solaris 10.
36272         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36273
36274 2008-04-04  Bruno Haible  <bruno@clisp.org>
36275
36276         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36277         by m4/setenv.m4.
36278
36279 2008-04-03  Eric Blake  <ebb9@byu.net>
36280
36281         Ensure sane .version contents.
36282         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36283         version string.
36284         * build-aux/git-version-gen: Improve documentation.
36285
36286         Make GNU make output nicer.
36287         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36288         MAKECMDGOALS to enforce message for all command line targets.  Set
36289         srcdir for use in maint.mk.
36290
36291         Another maintainer tweak.
36292         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
36293         a target that regenerates version.
36294
36295 2008-04-03  Jim Meyering  <meyering@redhat.com>
36296
36297         vc-list-files: don't cause coreutils "make po-check" failure
36298         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
36299
36300 2008-04-03  Eric Blake  <ebb9@byu.net>
36301
36302         Allow VPATH usage of vc-list-files.
36303         * build-aux/vc-list-files (scriptversion): Add timestamp.
36304         (options): Add --help, --version, -C.
36305         (CVS): Support installed cvsu.
36306
36307 2008-04-02  Bruno Haible  <bruno@clisp.org>
36308
36309         Avoid some "statement with no effect" warnings from gcc.
36310         * tests/test-wctype.c (main): Explicitly ignore unused values.
36311         Reported by Jim Meyering.
36312
36313 2008-04-02  Jim Meyering  <meyering@redhat.com>
36314
36315         Avoid some warnings from "gcc -Wshadow".
36316         * tests/test-frexp.c (exp): Define to a different identifier.
36317         * tests/test-frexpl.c (exp): Likewise.
36318
36319 2008-04-03  Jim Meyering  <meyering@redhat.com>
36320
36321         bootstrap: remove dangling *.[ch] symlinks from lib
36322         * build-aux/bootstrap [dangling symlink removal]: Move find's
36323         -depth option to precede all others, to avoid a warning.
36324         Remove *.[ch] files too, and from "$source_base" (usually lib/).
36325
36326 2008-04-02  Bruno Haible  <bruno@clisp.org>
36327
36328         Avoid some warnings from "gcc -Wshadow".
36329         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
36330         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
36331         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
36332         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
36333         Reported by Jim Meyering.
36334
36335 2008-04-01  Bruno Haible  <bruno@clisp.org>
36336
36337         Fix test to work on IRIX 6.5 with cc.
36338         * tests/test-math.c (numeric_equal): New function.
36339         (main): Use it.
36340
36341 2008-04-01  Bruno Haible  <bruno@clisp.org>
36342
36343         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36344
36345 2008-04-01  Bruno Haible  <bruno@clisp.org>
36346
36347         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36348         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36349         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36350         (Depends-on): Remove math.
36351
36352         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36354         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36355         (Depends-on): Remove math.
36356
36357         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36359         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36360         (Depends-on): Remove math.
36361         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36362         (Depends-on): Remove math.
36363
36364         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36365         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36366         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36367         (Depends-on): Remove math.
36368         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36369         (Depends-on): Remove math.
36370
36371         * tests/test-round1.c: Include nan.h.
36372         (main): Use NaNd instead of NAN.
36373         * modules/round-tests (Files): Add tests/nan.h.
36374
36375         * tests/test-trunc1.c: Include nan.h.
36376         (main): Use NaNd instead of NAN.
36377         * modules/trunc-tests (Files): Add tests/nan.h.
36378
36379         * tests/test-roundf1.c: Include nan.h.
36380         (main): Use NaNf instead of NAN.
36381         * modules/roundf-tests (Files): Add tests/nan.h.
36382
36383         * tests/test-truncf1.c: Include nan.h.
36384         (main): Use NaNf instead of NAN.
36385         * modules/truncf-tests (Files): Add tests/nan.h.
36386
36387         * tests/test-ceilf1.c: Include nan.h.
36388         (main): Use NaNf instead of NAN.
36389         * modules/ceilf-tests (Files): Add tests/nan.h.
36390
36391         * tests/test-floorf1.c: Include nan.h.
36392         (main): Use NaNf instead of NAN.
36393         * modules/floorf-tests (Files): Add tests/nan.h.
36394
36395         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36396         (main): Use NaNf instead of NAN.
36397         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36398
36399         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36400         (main): Use NaNd instead of NAN.
36401         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36402
36403         * tests/test-frexp.c: Include nan.h.
36404         (main): Use NaNd instead of NAN.
36405         * modules/frexp-tests (Files): Add tests/nan.h.
36406
36407         * lib/isnan.c: Don't include <math.h>.
36408         (FUNC): Don't use NAN macro.
36409         * modules/isnand-nolibm (Depends-on): Remove math.
36410         * modules/isnanf-nolibm (Depends-on): Remove math.
36411         * modules/isnanl (Depends-on): Remove math.
36412         * modules/isnanl-nolibm (Depends-on): Remove math.
36413
36414         * tests/nan.h: New file.
36415
36416 2008-04-01  Eric Blake  <ebb9@byu.net>
36417
36418         Fix typos.
36419         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36420         values to be the right type.
36421
36422         For now, cater to gnulib strtod inaccuracies.
36423         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36424         fractional results.  While not as nice from a QoI perspective, it
36425         is a quicker patch than correctly implementing decimal to binary
36426         rounding.
36427
36428 2008-03-31  Eric Blake  <ebb9@byu.net>
36429
36430         Guarantee a definition of NAN.
36431         * lib/math.in.h (NAN): Define if missing.
36432         * tests/test-math.c (main): Test it.
36433         * doc/posix-headers/math.texi (math.h): Document this.
36434         * lib/isnan.c (rpl_isnand): Use it.
36435         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36436         * tests/test-floorf1.c (NaN): Likewise.
36437         * tests/test-frexp.c (NaN): Likewise.
36438         * tests/test-isnand.c (NaN): Likewise.
36439         * tests/test-isnanf.c (NaN): Likewise.
36440         * tests/test-round1.c (NaN): Likewise.
36441         * tests/test-roundf1.c (NaN): Likewise.
36442         * tests/test-snprintf-posix.h (NaN): Likewise.
36443         * tests/test-sprintf-posix.h (NaN): Likewise.
36444         * tests/test-trunc1.c (NaN): Likewise.
36445         * tests/test-truncf1.c (NaN): Likewise.
36446         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36447         * tests/test-vasprintf-posix.c (NaN): Likewise.
36448         * modules/isnand-nolibm (Depends-on): Add math.
36449         * modules/isnanf-nolibm (Depends-on): Likewise.
36450         * modules/isnanl (Depends-on): Likewise.
36451         * modules/isnanl-nolibm (Depends-on): Likewise.
36452         * modules/snprintf-posix-tests (Depends-on): Likewise.
36453         * modules/sprintf-posix-tests (Depends-on): Likewise.
36454         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36455         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36456         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36457         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36458
36459 2008-03-31  Bruno Haible  <bruno@clisp.org>
36460
36461         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36462         * doc/posix-functions/strtod.texi: Likewise.
36463
36464 2008-03-31  Bruno Haible  <bruno@clisp.org>
36465
36466         * tests/test-strtod.c (main): Don't use C99 syntax.
36467
36468 2008-03-31  Bruno Haible  <bruno@clisp.org>
36469
36470         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36471         Reported by Eric Blake.
36472
36473 2008-03-31  Jim Meyering  <meyering@redhat.com>
36474
36475         Don't compare actual signbit return values.
36476         * tests/test-strtod.c (main): Rather, compare only their
36477         zero/non-zero nature.
36478
36479 2008-03-31  Eric Blake  <ebb9@byu.net>
36480
36481         More strtod documentation.
36482         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36483         failures as distinct bugs.
36484
36485 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36486
36487         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36488         Problem reported by Erik Benada in
36489         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36490
36491 2008-03-30  Bruno Haible  <bruno@clisp.org>
36492
36493         * tests/test-strtod.c: Add comments about which assertion fails on which
36494         platform.
36495         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36496
36497 2008-03-30  Eric Blake  <ebb9@byu.net>
36498
36499         Test signbit behavior on zeros.
36500         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36501         (test_signbitd, test_signbitl): Likewise.
36502
36503         More strtod touchups.
36504         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36505         sign of negative underflow, for now.  Use .5, not .1.
36506         * doc/posix-functions/strtod.texi (strtod): Mention these
36507         limitations.
36508         Reported by Jim Meyering.
36509
36510 2008-03-30  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36513         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36514
36515 2008-03-30  Bruno Haible  <bruno@clisp.org>
36516
36517         Avoid failure when attempting to return empty iconv results on some
36518         platforms.
36519         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36520         allocation, don't report ENOMEM when the resulting string is empty.
36521
36522 2008-03-30  Bruno Haible  <bruno@clisp.org>
36523
36524         Fix buffer overrun.
36525         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36526         Don't consider the width for tmp_length. Check count against tmp_length
36527         before doing the padding. Ensure enough allocation during padding.
36528
36529 2008-03-30  Eric Blake  <ebb9@byu.net>
36530
36531         strtod touchups.
36532         * lib/strtod.c (strtod): Avoid compiler warnings.
36533         Reported by Jim Meyering.
36534
36535 2008-03-30  Bruno Haible  <bruno@clisp.org>
36536
36537         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36538         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36539         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36540         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36541         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36542         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36543         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36544         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36545
36546         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36547         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36548         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36549         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36550         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36551         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36552         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36553         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36554
36555         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36556         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36557         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36558         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36559         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36560         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36561         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36562         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36563
36564         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36565         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36566
36567         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36568         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36569
36570         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36571         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36572
36573         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36575         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36576
36577         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36579         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36580
36581         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36583         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36584
36585         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36587         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36588
36589         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36590         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36592         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36593         (Depends-on): Add EOVERFLOW.
36594         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36595         (Depends-on): Add EOVERFLOW.
36596         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36597         (Depends-on): Add EOVERFLOW.
36598         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36599         (Depends-on): Add EOVERFLOW.
36600         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36601         (Depends-on): Add EOVERFLOW.
36602         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36603         (Depends-on): Add EOVERFLOW.
36604         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36605         (Depends-on): Add EOVERFLOW.
36606         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36607         (Depends-on): Add EOVERFLOW.
36608
36609         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36611         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36612
36613         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36615         * modules/snprintf (Depends-on): Add EOVERFLOW.
36616
36617         * lib/poll.c (EOVERFLOW): Remove fallback.
36618         * modules/poll (Depends-on): Add EOVERFLOW.
36619
36620         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36621         * modules/getugroups (Depends-on): Add EOVERFLOW.
36622
36623         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36624         * modules/getdelim (Depends-on): Add EOVERFLOW.
36625
36626         * lib/ftell.c (EOVERFLOW): Remove fallback.
36627         * modules/ftell (Depends-on): Add EOVERFLOW.
36628
36629         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36631         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36632
36633         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36634
36635         * modules/EOVERFLOW-tests: New file.
36636         * tests/test-EOVERFLOW.c: New file.
36637
36638         * modules/EOVERFLOW: New file.
36639         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36640
36641 2008-03-30  Bruno Haible  <bruno@clisp.org>
36642
36643         Fix bug introduced on 2007-06-10.
36644         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36645         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36646
36647 2008-03-30  Bruno Haible  <bruno@clisp.org>
36648
36649         Improve freadseek's efficiency after ungetc.
36650         * lib/freadseek.c: Include freadahead.h.
36651         (freadptrinc): New function, extracted from freadseek.
36652         (freadseek): Use it in a loop. Use freadahead to determine the number
36653         of loop iterations.
36654         * modules/freadseek (Depends-on): Add freadahead.
36655         (configure.ac): Require AC_C_INLINE.
36656
36657 2008-03-30  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/freadseek.c (freadseek): Don't ignore the return value of
36660         freadptr.
36661
36662 2008-03-29  Eric Blake  <ebb9@byu.net>
36663
36664         Add hex float support.
36665         * modules/strtod (Depends-on): Add c-ctype.
36666         (Link): Mention POW_LIB.
36667         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36668         whitespace between 'e' and exponent.
36669         * tests/test-strtod.c (main): Enable hex float tests.
36670         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36671         now provides.
36672
36673         Document various strtod bugs, with some fixes.
36674         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36675         "-0x", "inf", "nan", and hex constants.
36676         * doc/posix-functions/atof.texi (atof): Likewise.
36677         * modules/stdlib (Makefile.am): Support strtod.
36678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36679         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36680         detect additional strtod bugs.
36681         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36682         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36683         bool where appropriate.  Parse 'inf' and 'nan'.
36684         * tests/test-strtod.c: New file.
36685         * modules/strtod (Depends-on): Add stdbool, stdlib.
36686         (configure.ac): Turn on module indicator.
36687         * modules/strtod-tests: New module.
36688
36689 2008-03-29  Eric Blake  <ebb9@byu.net>
36690
36691         Fix ftell on mingw.
36692         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36693         * modules/ftell-tests (Depends-on): Add binary-io.
36694         * modules/ftello-tests (Depends-on): Likewise.
36695         * tests/test-ftell.c (main): Enhance test to cover behavior after
36696         ungetc.  Enforce binary mode.
36697         * tests/test-ftello.c (main): Likewise.
36698
36699         Pass test-freadseek on cygwin.
36700         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36701         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36702         ungetc buffer.
36703
36704         * tests/test-fflush2.c (main): Fix typo.
36705
36706 2008-03-29  Bruno Haible  <bruno@clisp.org>
36707
36708         * tests/test-fflush2.c (main): Temporarily disable the contents of
36709         this test.
36710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36711         Reported by Eric Blake.
36712
36713 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36714
36715         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36716         (GC_SHA224_DIGEST_SIZE): Add.
36717
36718         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36719         (gc_hash_digest_length): Likewise.
36720         (gc_hash_buffer): Likewise.
36721
36722 2008-03-25  Bruno Haible  <bruno@clisp.org>
36723
36724         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36725         detail which gettext release to use.
36726         Reported by Simon Josefsson.
36727
36728 2008-03-26  Jim Meyering  <meyering@redhat.com>
36729
36730         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36731         * modules/gnumakefile (clean-GNUmakefile): Also, use
36732         test ... && ... || : syntax rather than if-then ... fi.
36733
36734         gnumakefile: Don't double-quote-expand $(VPATH) value.
36735         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36736
36737 2008-03-24  Eric Blake  <ebb9@byu.net>
36738
36739         Alter GNUmakefile to install into top directory.
36740         * modules/maintainer-makefile: Split, and add dependency...
36741         * modules/gnumakefile: to this new module.
36742         * build-aux/GNUmakefile: Move...
36743         * top/GNUmakefile: ...here.
36744         * build-aux/maint.mk: Move...
36745         * top/maint.mk: ...here.
36746         * MODULES.html.sh (Support for maintaining...): Document new
36747         module.
36748
36749 2008-03-23  Bruno Haible  <bruno@clisp.org>
36750
36751         * gnulib-tool: New options --vc-files, --no-vc-files.
36752         (func_usage): Document them.
36753         (vc_files): New variable.
36754         (func_import): Consider vc_files.
36755         (func_create_testdir): Set vc_files to empty.
36756         Suggested by Jim Meyering and Karl Berry.
36757
36758 2008-03-23  Bruno Haible  <bruno@clisp.org>
36759
36760         Fix regex compilation error on HP-UX 11.
36761         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36762         * modules/regex (Files): Add m4/mbstate_t.m4.
36763         Reported by Ton Voon <ton.voon@altinity.com>.
36764
36765 2008-03-23  Bruno Haible  <bruno@clisp.org>
36766
36767         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36768
36769 2008-03-23  Eric Blake  <ebb9@byu.net>
36770             Bruno Haible  <bruno@clisp.org>
36771
36772         Install files from top/ in the destination directory.
36773         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36774         augmentation also for the files from top/.
36775         (func_import, func_create_testdir): Rewrite file names:
36776         top/filename -> filename.
36777
36778 2008-03-23  Bruno Haible  <bruno@clisp.org>
36779
36780         Tweak "gnulib --version" output.
36781         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36782
36783 2008-03-23  Bruno Haible  <bruno@clisp.org>
36784
36785         Tweak "gnulib --version" output.
36786         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36787         rather than contents of ChangeLog, when possible.
36788
36789 2008-03-21  Eric Blake  <ebb9@byu.net>
36790
36791         More --version tweaks.
36792         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36793         date of last ChangeLog entry.
36794
36795 2008-03-21  Jim Meyering  <meyering@redhat.com>
36796
36797         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36798
36799 2008-03-20  Eric Blake  <ebb9@byu.net>
36800
36801         VPATH fix.
36802         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36803
36804 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36805
36806         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36807         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36808
36809 2008-03-20  Eric Blake  <ebb9@byu.net>
36810
36811         Sync GNUmakefile with coreutils.
36812         * build-aux/GNUmakefile (have-Makefile): Rename...
36813         (_have-Makefile): ...to this, for namespace consideration.
36814         (GNUmakefile.cfg): Include, if present.
36815         (_autoreconf): Define a default.
36816         (_is-dist-target): New rule for rebuilds to pick up intra-release
36817         version.
36818         (maint-cfg.mk): Rename...
36819         (cfg.mk): ...to this.
36820
36821 2008-03-18  Jim Meyering  <meyering@redhat.com>
36822
36823         New script and module: mktempd
36824         * MODULES.html.sh (maint+release support): Add mktempd.
36825         * build-aux/mktempd: New file.
36826         * modules/mktempd: New file.
36827
36828 2008-03-15  Jim Meyering  <meyering@redhat.com>
36829
36830         Undo last change.
36831         * lib/sha1.c, lib/md5.c: 63 != ~63.
36832         Reported by Andreas Schwab.
36833
36834         sha1.c, md5.c: Hoist a redundant expression.
36835         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36836         "ctx->buflen" only once, before calling *_process_block.
36837         * lib/md5.c (md5_process_bytes): Likewise.
36838
36839 2008-03-14  Eric Blake  <ebb9@byu.net>
36840
36841         Bump copyright year in files generated by gnulib-tool.
36842         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36843         gnulib-tool, rather than hard-coding it.
36844
36845         Fix 'gnulib-tool --version' output to work with git.
36846         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36847         (startup): ...here.
36848         (func_version): Use it to invoke git-version-gen, rather than
36849         relying on CVS keyword expansion.  Modernize wording.
36850         (cvsdatestamp, last_checkin_date, version): Kill unused
36851         variables.
36852
36853 2008-03-12  Jim Meyering  <meyering@redhat.com>
36854
36855         Recognize optional cast of the argument to free.
36856         * build-aux/useless-if-before-free: Update regexps.
36857
36858         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36859
36860 2008-03-11  Bruno Haible  <bruno@clisp.org>
36861
36862         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36863         by a single package.
36864         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36865         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36866         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36867         Reported by Sam Steingold <sds@gnu.org>.
36868
36869 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36870
36871         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36872         repositories.
36873
36874 2008-03-11  Bruno Haible  <bruno@clisp.org>
36875
36876         Avoid conflicts between local macro definitions.
36877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36878         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36879
36880 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36881             Bruno Haible  <bruno@clisp.org>
36882
36883         Make va_copy work with some version of xlc on AIX 5.1.
36884         * lib/stdarg.in.h: New file.
36885         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36886         On AIX, use a <stdarg.h> file substitute.
36887         * modules/stdarg (Files): Add lib/stdarg.in.h.
36888         (Depends-on): Add include_next.
36889         (Makefile.am): Build a stdarg.h substitute if requested.
36890         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36891
36892 2008-03-10  Bruno Haible  <bruno@clisp.org>
36893
36894         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36896         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36897
36898 2008-03-10  Bruno Haible  <bruno@clisp.org>
36899
36900         * modules/stdlib (Depends-on): Add include_next, remove
36901         absolute-header.
36902
36903 2008-03-09  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/freadahead.h (freadahead): Document more precisely.
36906         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36907         the sum of both buffer sizes.
36908         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36909         * NEWS: Document the change.
36910
36911 2008-03-09  Bruno Haible  <bruno@clisp.org>
36912
36913         Extend freadptr to return also the buffer size.
36914         * lib/freadptr.h (freadptr): Add sizep argument.
36915         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36916         (freadptr): Add sizep argument. Determine buffer size like freadahead
36917         does.
36918         * tests/test-freadptr.c: Don't include freadahead.h.
36919         (main): Adapt for new calling convention of freadptr.
36920         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36921         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36922         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36923         tests/test-freadptr2.sh.
36924         (Depends): Remove freadahead.
36925         (TESTS): Add test-freadptr2.sh.
36926         (check_PROGRAMS): Add test-freadptr2.
36927
36928 2008-03-09  Bruno Haible  <bruno@clisp.org>
36929
36930         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36931         Report and solution by Simon Josefsson.
36932
36933 2008-03-06  Bruno Haible  <bruno@clisp.org>
36934
36935         Make fflush after ungetc work on BSD platforms.
36936         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36937         * tests/test-fflush2.c: New file.
36938         * tests/test-fflush2.sh: New file.
36939         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36940         tests/test-fflush2.c.
36941         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36942         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36943
36944 2008-03-06  Eric Blake  <ebb9@byu.net>
36945
36946         Likewise for ftello.
36947         * modules/ftello (Dependencies): Add extensions.
36948         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36949
36950 2008-03-06  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/fseeko (Dependencies): Add extensions.
36953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36954         Needed on glibc systems.
36955
36956 2008-03-06  Bruno Haible  <bruno@clisp.org>
36957
36958         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36959         email address.
36960         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36961
36962 2008-03-06  Bruno Haible  <bruno@clisp.org>
36963
36964         * users.txt: Add libgnupdf.
36965
36966 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36967
36968         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36969         (Header File Substitutes, Function Substitutes,
36970         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36971         (Build robot for gnulib): Fix typo.
36972
36973 2008-03-06  Bruno Haible  <bruno@clisp.org>
36974
36975         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36976         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36977
36978 2008-03-06  Bruno Haible  <bruno@clisp.org>
36979
36980         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36981         * doc/gnulib.texi: Include it.
36982
36983 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36984
36985         * modules/func (License): Change license to unlimited; there was
36986         no LGPL parts in the module anyway.
36987
36988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36989
36990         * modules/__func__: Renamed to modules/func.
36991         * modules/__func__-tests: Renamed to modules/func-tests.
36992         * tests/test-__func__.c: Renamed to tests/test-func.c.
36993         * m4/__func__.m4: Renamed to m4/func.m4.
36994         * doc/gnulib.texi (__func__): Section renamed to func.
36995         Suggested by Eric Blake <ebb9@byu.net>.
36996
36997 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36998
36999         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37000         about __func__.  Make example self-contained.  Suggested by Eric
37001         Blake <ebb9@byu.net>.
37002
37003         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37004         Suggested by Eric Blake <ebb9@byu.net>.
37005
37006 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37007
37008         * modules/__func__: New file.
37009         * modules/__func__-tests: New file.
37010         * tests/test-__func__.c: New file.
37011         * m4/__func__.m4: New file.
37012         * doc/gnulib.texi (__func__): Document __func__ module.
37013
37014 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37015
37016         * modules/byteswap (License): Re-license as LGPLv2+.
37017
37018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37019
37020         * doc/Makefile: Add pdf target.
37021
37022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37023
37024         * modules/inline (License): Use 'unlimited', since there are only
37025         *.m4 files in this module.
37026
37027 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37028             Bruno Haible  <bruno@clisp.org>
37029
37030         Add support for HP C 7.1 on OpenVMS 8.3.
37031         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37032
37033 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37034
37035         Update VMS specifics.
37036         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37037
37038 2008-03-02  Jim Meyering  <meyering@redhat.com>
37039
37040         Remove the last dependency on the "free" module.
37041         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37042         Reported by Bob Proulx.
37043
37044         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37045
37046         Remove useless "if" tests before free.  Deprecate "free" module.
37047         * doc/posix-functions/free.texi: Mention that this
37048         module is no longer useful.
37049         * modules/free (Notice): Say this module is obsolete.
37050         * modules/readutmp (Depends-on): Remove free.
37051         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37052         * lib/putenv.c (putenv): Likewise.
37053         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37054         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37055         * tests/test-c-strcasestr.c (main): Likewise.
37056         * tests/test-c-strstr.c (main): Likewise.
37057         * tests/test-mbscasestr1.c (main): Likewise.
37058         * tests/test-mbscasestr2.c (main): Likewise.
37059         * tests/test-mbsstr1.c (main): Likewise.
37060         * tests/test-mbsstr2.c (main): Likewise.
37061         * tests/test-memmem.c (main): Likewise.
37062         * tests/test-strcasestr.c (main): Likewise.
37063         * tests/test-striconv.c (main): Likewise.
37064         * tests/test-striconveh.c (main): Likewise.
37065         * tests/test-striconveha.c (main): Likewise.
37066         * tests/test-strstr.c (main): Likewise.
37067
37068         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37069
37070         bootstrap: sync from coreutils again
37071         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37072
37073 2008-03-01  Jim Meyering  <meyering@redhat.com>
37074
37075         bootstrap: sync from coreutils
37076         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37077         also when the target doesn't exist.
37078
37079 2008-03-01  Eric Blake  <ebb9@byu.net>
37080
37081         Fix bugs in last patch.
37082         * lib/memchr2.c (memchr2): Fix typo.
37083         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37084         extension.
37085         Reported by Bruce Korb.
37086
37087         New module 'memchr2'.
37088         * modules/memchr2: New file.
37089         * modules/memchr2-tests: Likewise.
37090         * lib/memchr2.h: Likewise.
37091         * lib/memchr2.c: Likewise, based on memchr.c.
37092         * tests/test-memchr2.c: New test.
37093         * MODULES.html.sh (String handling): Add memchr2.
37094
37095 2008-02-29  Bruno Haible  <bruno@clisp.org>
37096
37097         * modules/freadseek-tests: New file.
37098         * tests/test-freadseek.sh: New file.
37099         * tests/test-freadseek.c: New file.
37100
37101         New module 'freadseek'.
37102         * modules/freadseek: New file.
37103         * lib/freadseek.h: New file.
37104         * lib/freadseek.c: New file.
37105         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37106
37107 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37108
37109         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37110         wydawca.
37111
37112         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37113         program_invocation_name and program_invocation_short_name are
37114         present.
37115
37116 2008-02-28  Bruno Haible  <bruno@clisp.org>
37117
37118         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37119         * tests/test-freadptr.sh: Also test non-seekable stdin.
37120
37121 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37122
37123         * build-aux/bootstrap (source_base, m4_base)
37124         (doc_base, tests_base): New variables.
37125         (gnulib_tool_options): Do not hardcode base directories, use
37126         the above variables instead.
37127
37128 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37129
37130         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37131
37132 2008-02-28  Bruno Haible  <bruno@clisp.org>
37133
37134         * modules/freadptr-tests: New file.
37135         * tests/test-freadptr.sh: New file.
37136         * tests/test-freadptr.c: New file.
37137
37138         New module 'freadptr'.
37139         * modules/freadptr: New file.
37140         * lib/freadptr.h: New file.
37141         * lib/freadptr.c: New file.
37142         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37143
37144 2008-02-26  Karl Berry  <karl@freefriends.org>
37145
37146         Sync from Libtool:
37147         * libltdl/argz.c (argz_add, argz_count): New functions.
37148         * libltdl/argz.in.h: Declare them.
37149         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37150
37151 2008-02-22  Bruno Haible  <bruno@clisp.org>
37152
37153         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37154         is a pointer type.  Needed for HP-UX 10.
37155         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37156         * doc/posix-functions/gmtime_r.texi: Likewise.
37157         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37158
37159 2008-02-24  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/environ-tests: New file.
37162         * tests/test-environ.c: New file.
37163
37164         New module 'environ'.
37165         * modules/environ: New file.
37166         * lib/unistd.in.h (environ): New declaration.
37167         * m4/environ.m4: New file.
37168         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37169         after use.
37170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37171         HAVE_DECL_ENVIRON.
37172         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37173         HAVE_DECL_ENVIRON.
37174         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37175         wrong claim that 'environ' is missing on some systems.
37176         * modules/execute (Depends-on): Add environ.
37177         * lib/execute.c (environ): Remove fallback declaration.
37178         * modules/pipe (Depends-on): Add environ.
37179         * lib/pipe.c (environ): Remove fallback declaration.
37180         * modules/setenv (Depends-on): Add environ.
37181         * lib/setenv.c (environ): Remove fallback declaration.
37182         * modules/unsetenv (Depends-on): Add environ.
37183         * lib/unsetenv.c (environ): Remove fallback declaration.
37184         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37185         m4/environ.m4.
37186         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37187         (gl_PREREQ_UNSETENV): Likewise.
37188
37189 2008-02-24  Bruno Haible  <bruno@clisp.org>
37190
37191         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37192
37193 2008-02-20  Bob Proulx  <bob@proulx.com>
37194
37195         Enable use of older two part flavor 'git describe'.
37196         * build-aux/git-version-gen: If using the older two part flavor of
37197         git version then recreate the third part now present in the
37198         newer three part flavor of git describe.
37199
37200 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37201
37202         * lib/fts.c (fts_build): Typo correction to comment.
37203
37204 2008-02-17  Bruno Haible  <bruno@clisp.org>
37205
37206         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37207         generating no-op conflicts.
37208
37209 2008-02-17  Bruno Haible  <bruno@clisp.org>
37210
37211         Speed up by 10%.
37212         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37213         result_entries, rather than an index-based loop.
37214
37215 2008-02-17  Bruno Haible  <bruno@clisp.org>
37216
37217         Speed up by 25%.
37218         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37219         'hashcode_cached'.
37220         (entry_create): New function.
37221         (entry_hashcode): Use the cached hashcode if possible.
37222         (read_changelog_file, try_split_merged_entry): Use entry_create.
37223
37224 2008-02-17  Bruno Haible  <bruno@clisp.org>
37225
37226         Speed up from O(n^2) to O(n) for long ChangeLog files.
37227         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37228         (read_changelog_file): Change implementation of entries_reversed list
37229         to rbtreehash.
37230         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37231
37232 2008-02-17  Bruno Haible  <bruno@clisp.org>
37233
37234         New option --split-merged-entry.
37235         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37236         (find_paragraph_end, try_split_merged_entry): New functions.
37237         (long_options): Add option --split-merged-entry.
37238         (usage): Document option --split-merged-entry.
37239         (main): Implement option --split-merged-entry.
37240         Reported by Eric Blake.
37241
37242 2008-02-17  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/git-merge-changelog.c: Include c-strstr.h.
37245         (main): Support the "git pull --rebase" situation.
37246         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37247         Reported by Eric Blake.
37248
37249 2008-02-16  Eric Blake  <ebb9@byu.net>
37250
37251         Avoid doubling \ in common case of "c-maybe" quoting style.
37252         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37253         eliding outer quotes.
37254         * lib/quotearg.h: Document this.
37255         * tests/test-quotearg.c (result_strings, inputs, results_g)
37256         (flag_results, locale_results): Test it by adding a new string to
37257         each test group.
37258         (compare_strings): Test new string.
37259
37260 2008-02-13  Eric Blake  <ebb9@byu.net>
37261
37262         Avoid trigraph quoting in default output.
37263         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37264         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37265         unless explicitly requested.
37266         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37267
37268 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37269
37270         Don't rely on signed integer overflowing to negative value.
37271         * lib/getugroups.c (getugroups): Include <limits.h>.
37272         Instead, compare against INT_MAX, and increment only if the test passes.
37273
37274 2008-02-13  Jim Meyering  <meyering@redhat.com>
37275         and Eric Blake  <ebb9@byu.net>
37276
37277         Avoid shadowing warning and compile errors on Linux.
37278         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37279         forwarding macros on Linux.
37280         (dcgettext): Define a stub, for Linux.
37281         (results_g, main): Avoid warnings.
37282
37283 2008-02-12  Eric Blake  <ebb9@byu.net>
37284
37285         Silence warning in last patch.
37286         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37287
37288         Quotearg part 4: add tests, fix c-maybe colon quoting.
37289         * lib/quotearg.h: Improve documentation.
37290         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
37291         escapes when adding outer quotes.  When quoting trigraphs, use
37292         valid C notation.  When quoting NUL, omit extra characters if next
37293         character is not digit.  Alter prototype.
37294         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
37295         callers.
37296         * modules/quotearg-tests: New module.
37297         * tests/test-quotearg.c: New test.
37298
37299 2008-02-07  Eric Blake  <ebb9@byu.net>
37300
37301         Quotearg part 3: add flag to control outer quote elision.
37302         * lib/quotearg.h (c_maybe_quoting_style): New style.
37303         (enum quoting_flags): Better documentation of flags.
37304         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
37305         c-maybe style.
37306         (quotearg_buffer_restyled): Handle new flag to elide outer
37307         quotes.
37308
37309         Quotearg part 2: add flag that can control NUL elision.
37310         * lib/quotearg.h (set_quoting_flags): New prototype.
37311         * lib/quotearg.c (struct quoting_options): Add flag field.
37312         (set_quoting_flags): New function.
37313         (quotearg_buffer_restyled): Add flags parameter.
37314         (quotearg_alloc_mem): Set the flag if length cannot be returned.
37315         (quotearg_n_options): Set the flag, since length cannot be
37316         returned.
37317         (quoting_options_from_style): Default flags correctly.
37318
37319         Quotearg part 1: more wrappers, restore quotearg_char state.
37320         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
37321         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
37322         (quotearg_colon_mem): New wrappers.
37323         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
37324         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
37325         functions.
37326         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
37327         (quotearg_colon_mem): New functions.
37328
37329 2008-02-11  Bruno Haible  <bruno@clisp.org>
37330
37331         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
37332         library in the current directory: it does not work with parallel make.
37333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37334
37335 2008-02-11  Bruno Haible  <bruno@clisp.org>
37336
37337         * .gitattributes: New file.
37338
37339 2008-02-11  Jim Meyering  <meyering@redhat.com>
37340
37341         useless-if-before-free: Fix reversed exit values.
37342         * build-aux/useless-if-before-free: Use correct values
37343         for EXIT_MATCH and EXIT_NO_MATCH.
37344
37345         * build-aux/useless-if-before-free: Close stdout carefully.
37346
37347 2008-02-10  Bruno Haible  <bruno@clisp.org>
37348
37349         New module 'git-merge-changelog'.
37350         * modules/git-merge-changelog: New file.
37351         * lib/git-merge-changelog.c: New file.
37352
37353 2008-02-10  Jim Meyering  <meyering@redhat.com>
37354
37355         useless-if-before-free: New option: --list (-l).
37356
37357         useless-if-before-free: Don't exit immediately upon open failure.
37358         * build-aux/useless-if-before-free: Exit 2 for errors.
37359         Upon failure to open a file, don't exit immediately.
37360         Rather, just warn and continue with any remaining files.
37361
37362 2008-02-10  Bruno Haible  <bruno@clisp.org>
37363
37364         New abstract list operation 'node_set_value'.
37365         * lib/gl_list.h (gl_list_node_set_value): New function.
37366         (struct gl_list_implementation): New field node_set_value.
37367         * lib/gl_list.c (gl_list_node_set_value): New function.
37368         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37369         (gl_array_list_implementation): Update.
37370         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37371         (gl_carray_list_implementation): Update.
37372         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37373         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37374         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37375         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37376         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37377         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37378         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37379         Update.
37380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37381         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37382         (gl_sublist_list_implementation): Update.
37383
37384 2008-02-10  Bruno Haible  <bruno@clisp.org>
37385
37386         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37387         Needed when ELEMENT is #defined to 'some_type *'.
37388
37389 2008-02-10  Jim Meyering  <meyering@redhat.com>
37390
37391         New script and module: useless-if-before-free
37392         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37393         * build-aux/useless-if-before-free: New file.
37394         * modules/useless-if-before-free: New file.
37395
37396         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37397
37398         xstrtol_error: Fix typo.
37399         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37400         s/exit_failure/exit_status/.
37401
37402 2008-02-09  Jim Meyering  <meyering@redhat.com>
37403
37404         New script and module: gitlog-to-changelog
37405         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37406         * modules/gitlog-to-changelog: New file.
37407         * build-aux/gitlog-to-changelog: New file.
37408
37409 2008-02-08  Jim Meyering  <meyering@redhat.com>
37410
37411         Avoid two "parameter unused" warnings.
37412         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37413         Mark "st" as used.
37414
37415         Use "git COMMAND", not "git-COMMAND".
37416         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37417         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37418         * build-aux/git-version-gen: Use "git status", not "git-status".
37419
37420 2008-02-07  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37423         Avoids a crash on Windows Vista.
37424         Reported by Adam Strzelecki <ono@java.pl> via
37425         Simon Josefsson <simon@josefsson.org>.
37426
37427 2008-02-06  Bruno Haible  <bruno@clisp.org>
37428
37429         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37430         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37431         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37433         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37435         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37436         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37444         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37445         left-adjust flag.
37446         * tests/test-snprintf-posix.h (test_function): Likewise.
37447         * tests/test-sprintf-posix.h (test_function): Likewise.
37448         * tests/test-vasprintf-posix.c (test_function): Likewise.
37449         * doc/posix-functions/fprintf.texi: Update.
37450         * doc/posix-functions/printf.texi: Update.
37451         * doc/posix-functions/snprintf.texi: Update.
37452         * doc/posix-functions/sprintf.texi: Update.
37453         * doc/posix-functions/vfprintf.texi: Update.
37454         * doc/posix-functions/vprintf.texi: Update.
37455         * doc/posix-functions/vsnprintf.texi: Update.
37456         * doc/posix-functions/vsprintf.texi: Update.
37457         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37458
37459 2008-02-06  Bruno Haible  <bruno@clisp.org>
37460
37461         Fix bug introduced on 2008-01-26.
37462         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37463
37464 2008-02-06  Bruno Haible  <bruno@clisp.org>
37465
37466         Fix bug introduced on 2007-06-10.
37467         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37468         !NEED_PRINTF_FLAG_ZERO.
37469
37470 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37471
37472         getloadavg: use libperfstat on AIX5
37473         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37474
37475 2008-02-03  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/diffseq.h: Add comments about required #includes.
37478         Reported by Michael Biggs <gnulib@doubleplum.net>.
37479
37480 2008-02-01  Bruno Haible  <bruno@clisp.org>
37481
37482         * users.txt: Add gnuit.
37483
37484 2008-01-31  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/md4.c (set_uint32): Mark as inline.
37487         * lib/md5.c (set_uint32): Likewise.
37488         * lib/sha1.c (set_uint32): Likewise.
37489         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37490         * m4/md5.m4 (gl_MD5): Likewise.
37491         * m4/sha1.m4 (gl_SHA1): Likewise.
37492
37493 2008-01-31  Jim Meyering  <meyering@redhat.com>
37494
37495         Use "sizeof VAR", rather than a literal "4".
37496         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37497         * lib/md4.c (md4_read_ctx): Likewise.
37498         * lib/sha1.c (sha1_read_ctx): Likewise.
37499
37500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37501
37502         * tests/test-sha1.c: New file, based on test-md5.c.
37503
37504         * modules/crypto/sha1-tests: New file.
37505
37506 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37507
37508         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37509
37510 2008-01-31  Jim Meyering  <meyering@redhat.com>
37511
37512         Prefer "sizeof v" over the equivalent "4".
37513         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37514         * lib/md5.c (set_uint32): Likewise.
37515         * lib/sha1.c (set_uint32): Likewise.
37516
37517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37518
37519         * lib/sha1.c (set_uint32): Mark function as static.
37520
37521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37522
37523         md2: clarify comments to say that alignment is not required.
37524         * lib/md2.h: Remove warning about alignment in comment.
37525         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37526         never been required.
37527
37528 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37529
37530         md4: adapt alignment constraint fix from sha1.
37531         * lib/md4.c (set_uint32): New function, from sha1.c
37532         (md4_read_ctx): Use it.
37533         (md4_finish_ctx): Doc fix.
37534         * lib/md4.h: Doc fix.
37535
37536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37537
37538         md5: adapt alignment constraint fix from sha1.
37539         * lib/md5.c (set_uint32): New function, from sha1.c
37540         (md5_read_ctx): Use it.
37541         (md5_finish_ctx): Doc fix.
37542         * lib/md5.h: Doc fix.
37543
37544 2008-01-30  Peter Palfrader  <weasel@debian.org>
37545
37546         sha1: remove the result buffer alignment constraint
37547         * lib/sha1.c (set_uint32): New function.
37548         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37549         constraint.
37550         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37551         * lib/sha1.h: Likewise.
37552
37553 2008-01-30  Andreas Schwab  <schwab@suse.de>
37554             Bruno Haible  <bruno@clisp.org>
37555
37556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37557         correct definition of LDBL_MIN_EXP.
37558
37559 2008-01-30  Karl Berry  <karl@gnu.org>
37560
37561         * config/srclist-update: try to preserve x bit on updates.
37562         * config/srclistvars.sh: update for karl.
37563
37564 2008-01-29  Jim Meyering  <meyering@redhat.com>
37565
37566         vasnprintf.c: Avoid warning about unused label
37567         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37568         "overflow" label definition and associated code with the
37569         same cpp condition that guards the sole use of that label.
37570
37571 2008-01-26  Bruno Haible  <bruno@clisp.org>
37572
37573         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37574         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37575         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37576         * lib/isnanl-nolibm.h (isnanl): Likewise.
37577         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37578
37579 2008-01-26  Bruno Haible  <bruno@clisp.org>
37580
37581         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37582         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37583
37584 2008-01-26  Bruno Haible  <bruno@clisp.org>
37585
37586         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37587         GCC >= 4.0 built-in.
37588         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37589
37590 2008-01-26  Bruno Haible  <bruno@clisp.org>
37591
37592         Rename isnan, applicable to 'double' only, to isnand.
37593         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37594         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37595         (configure.ac): Update.
37596         (Include): Replace "isnan.h" with "isnand.h".
37597         * m4/isnand.m4: Renamed from m4/isnan.m4.
37598         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37599         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37600         instead of isnan.c.
37601         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37602         instead of HAVE_ISNAN_IN_LIBC.
37603         (isnand): Renamed from isnan.
37604         * lib/isnand.c: New file.
37605         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37606         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37607         (Makefile.am): Update.
37608         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37609         Include isnand.h instead of isnan.h.
37610         (main): Test isnand instead of isnan.
37611         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37612         isnan-nolibm.
37613         * modules/frexp (Depends-on): Likewise.
37614         * modules/frexp-tests (Depends-on): Likewise.
37615         * modules/frexp-nolibm (Depends-on): Likewise.
37616         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37617         * modules/isfinite (Depends-on): Likewise.
37618         * modules/round-tests (Depends-on): Likewise.
37619         * modules/signbit (Depends-on): Likewise.
37620         * modules/signbit-tests (Depends-on): Likewise.
37621         * modules/snprintf-posix (Depends-on): Likewise.
37622         * modules/sprintf-posix (Depends-on): Likewise.
37623         * modules/trunc-tests (Depends-on): Likewise.
37624         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37625         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37628         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37630         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37631         * modules/vasnprintf-posix (Depends-on): Likewise.
37632         * modules/vasprintf-posix (Depends-on): Likewise.
37633         * modules/vfprintf-posix (Depends-on): Likewise.
37634         * modules/vsnprintf-posix (Depends-on): Likewise.
37635         * modules/vsprintf-posix (Depends-on): Likewise.
37636         * lib/frexp.c: Include isnand.h instead of isnan.h.
37637         (ISNAN): Set to isnand instead of isnan.
37638         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37639         (gl_isfinited): Use isnand instead of isnan.
37640         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37641         (gl_signbitd): Use isnand instead of isnan.
37642         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37643         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37644         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37645         (main): Use isnand instead of isnan.
37646         * tests/test-round1.c: Include isnand.h.
37647         (main): Use isnand instead of isnan.
37648         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37649         (ISNAN): Set to isnand instead of isnan.
37650         * tests/test-trunc1.c: Include isnand.h.
37651         (main): Use isnand instead of isnan.
37652         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37653         (equal): Use isnand instead of isnan.
37654         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37655         isnand-nolibm.
37656         * NEWS: Mention the change.
37657
37658 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37659             Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37662         the GCC builtins for signbits are present and set
37663         REPLACE_SIGNBIT_USING_GCC if so.
37664         * lib/math.in.h (signbit): Define using GCC builtins if
37665         REPLACE_SIGNBIT_USING_GCC is set.
37666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37667         REPLACE_SIGNBIT_USING_GCC.
37668         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37669
37670 2008-01-25  Jim Meyering  <meyering@redhat.com>
37671
37672         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37673         * lib/poll.c: Include <config.h>, not "config.h".
37674         * tests/test-getaddrinfo.c: Likewise.
37675
37676 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37677
37678         * modules/sockets-tests: New file.
37679
37680 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37681
37682         * modules/sockets: New module, can be used to call WSA_Startup and
37683         WSA_Cleanup when needed.
37684
37685         * lib/sockets.h, lib/sockets.c: New files.
37686
37687         * m4/sockets.m4: New file.
37688
37689         * tests/test-sockets.c: New file.
37690
37691 2008-01-19  Bruno Haible  <bruno@clisp.org>
37692
37693         * doc/posix-headers: Renamed from doc/headers.
37694         * doc/posix-functions: Renamed from doc/functions.
37695         * doc/gnulib.texi: Update.
37696
37697 2008-01-19  Bruno Haible  <bruno@clisp.org>
37698
37699         * doc/glibc-functions/strcasestr.texi: Include contents of
37700         doc/functions/strcasestr.texi, fixing the list of platforms.
37701         * doc/functions/strcasestr.texi: Remove file.
37702
37703 2008-01-19  Bruno Haible  <bruno@clisp.org>
37704
37705         * doc/glibc-functions/memmem.texi: Include contents of
37706         doc/functions/memmem.texi.
37707         * doc/functions/memmem.texi: Remove file.
37708
37709 2008-01-18  Bruno Haible  <bruno@clisp.org>
37710
37711         * doc/glibc-functions/*.texi: New files.
37712         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37713         to use the new files.
37714
37715 2008-01-17  Bruno Haible  <bruno@clisp.org>
37716
37717         * tests/test-gethostname.c (main): Fix printf statement.
37718
37719 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37720
37721         * modules/gethostname-tests: New file.
37722
37723         * tests/test-gethostname.c: New file.
37724
37725 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37726
37727         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37728         used by the UNAME case.  Reported by Bruno Haible
37729         <bruno@clisp.org>.
37730
37731 2008-01-17  Eric Blake  <ebb9@byu.net>
37732
37733         Convert c-strcasestr to be more efficient.
37734         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37735         (Depends-on): Add c-strcase, remove malloca, strnlen.
37736         * tests/test-c-strcasestr.c (main): Enhance test.
37737         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37738
37739 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37740
37741         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37742         Use it in creating po/Makevars.
37743
37744 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37745
37746         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37747         Applications that requires it should initialize libgcrypt
37748         manually.
37749
37750 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37751
37752         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37753
37754 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37755
37756         Fix problem with getdate on mingw32 reported by Simon Josefsson
37757         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37758         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37759         tzname", when deciding whether to declare tzname.
37760         * lib/strftime.c (tzname): Likewise.
37761
37762 2008-01-15  Bruno Haible  <bruno@clisp.org>
37763
37764         Work around a MacOS X 10.5 bug in frexpl().
37765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37766         * doc/functions/frexpl.texi: Document the bug.
37767         Reported by Elias Pipping <pipping@gentoo.org>.
37768
37769 2008-01-14  Eric Blake  <ebb9@byu.net>
37770
37771         Touch up previous patch.
37772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37773         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37774
37775         Convert strcasestr module to use Two-Way algorithm.
37776         * modules/strcasestr-simple: New module, based on the old
37777         strcasestr, but with Two-Way rather than KMP.
37778         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37779         * lib/string.in.h (rpl_strcasestr): Declare.
37780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37781         performance.
37782         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37783         * modules/string (Makefile.am): Support strcasestr.
37784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37785         * modules/strcasestr-tests (Depends-on): Check for alarm.
37786         * tests/test-strcasestr.c: Augment test.
37787         * lib/str-two-way.h: Clean up stray macro.
37788         * NEWS: Document new module.
37789         * MODULES.html.sh (string handling): Likewise.
37790         * doc/functions/strcasestr.texi: New file.
37791         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37792         here, since it is not a POSIX function.
37793
37794 2008-01-14  Colin Watson  <cjwatson@debian.org>
37795             Bruno Haible  <bruno@clisp.org>
37796
37797         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37798         works fine; if not, set REPLACE_STRSIGNAL.
37799         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37801         REPLACE_STRSIGNAL.
37802         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37803         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37804         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37805
37806 2008-01-14  Bruno Haible  <bruno@clisp.org>
37807
37808         * modules/strsignal (Include): Change to <string.h>.
37809
37810 2008-01-14  Colin Watson  <cjwatson@debian.org>
37811
37812         * modules/argp (Notice): Add a notice recommending to change
37813         XGETTEXT_OPTIONS.
37814         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37815
37816 2008-01-13  Colin Watson  <cjwatson@debian.org>
37817
37818         * modules/strsignal-tests: New file.
37819         * tests/test-strsignal.c: New file.
37820
37821         * lib/strsignal.c: New file, from glibc with modifications.
37822         * lib/siglist.h: New file, from glibc with modifications.
37823         * lib/string.in.h (strsignal): New declaration.
37824         * m4/strsignal.m4: New file.
37825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37826         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37827         * modules/strsignal: New file.
37828         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37829         HAVE_DECL_STRSIGNAL.
37830
37831 2008-01-13  Bruno Haible  <bruno@clisp.org>
37832
37833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37834         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37835         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37837
37838 2008-01-13  Bruno Haible  <bruno@clisp.org>
37839
37840         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37841         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37842         * lib/argp.h (__attribute__): Likewise.
37843         * lib/c-stack.c (__attribute__): Likewise.
37844         * lib/error.h (__attribute__): Likewise.
37845         * lib/fts.c (__attribute__): Likewise.
37846         * lib/openat.h (__attribute__): Likewise.
37847         * lib/stdio.in.h (__attribute__): Likewise.
37848         * lib/string.in.h (__attribute__): Likewise.
37849         * lib/utimens.c (__attribute__): Likewise.
37850         * lib/vasnprintf.h (__attribute__): Likewise.
37851         * lib/xalloc.h (__attribute__): Likewise.
37852         * lib/xprintf.h (__attribute__): Likewise.
37853         * lib/xstrtol.h (__attribute__): Likewise.
37854         * lib/xvasprintf.h (__attribute__): Likewise.
37855
37856 2008-01-12  Bruno Haible  <bruno@clisp.org>
37857
37858         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37859         * doc/glibc-headers/a.out.texi: New file.
37860         * doc/glibc-headers/aliases.texi: New file.
37861         * doc/glibc-headers/alloca.texi: New file.
37862         * doc/glibc-headers/ar.texi: New file.
37863         * doc/glibc-headers/argp.texi: New file.
37864         * doc/glibc-headers/argz.texi: New file.
37865         * doc/glibc-headers/byteswap.texi: New file.
37866         * doc/glibc-headers/crypt.texi: New file.
37867         * doc/glibc-headers/endian.texi: New file.
37868         * doc/glibc-headers/envz.texi: New file.
37869         * doc/glibc-headers/err.texi: New file.
37870         * doc/glibc-headers/error.texi: New file.
37871         * doc/glibc-headers/execinfo.texi: New file.
37872         * doc/glibc-headers/fpu_control.texi: New file.
37873         * doc/glibc-headers/fstab.texi: New file.
37874         * doc/glibc-headers/fts.texi: New file.
37875         * doc/glibc-headers/getopt.texi: New file.
37876         * doc/glibc-headers/ieee754.texi: New file.
37877         * doc/glibc-headers/ifaddrs.texi: New file.
37878         * doc/glibc-headers/libintl.texi: New file.
37879         * doc/glibc-headers/mcheck.texi: New file.
37880         * doc/glibc-headers/mntent.texi: New file.
37881         * doc/glibc-headers/obstack.texi: New file.
37882         * doc/glibc-headers/paths.texi: New file.
37883         * doc/glibc-headers/printf.texi: New file.
37884         * doc/glibc-headers/pty.texi: New file.
37885         * doc/glibc-headers/resolv.texi: New file.
37886         * doc/glibc-headers/shadow.texi: New file.
37887         * doc/glibc-headers/sysexits.texi: New file.
37888         * doc/glibc-headers/ttyent.texi: New file.
37889
37890 2008-01-12  Jim Meyering  <meyering@redhat.com>
37891
37892         announce-gen: emit Gnulib's git-based version string.
37893         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37894         New option --gnulib-version=V, where V is expected to be
37895         the output of running git describe in the gnulib directory.
37896         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37897         not useful, and plan to stop publishing an xdelta file with each
37898         coreutils release.
37899
37900         * build-aux/announce-gen: Also check for lzma-compressed files.
37901
37902 2008-01-11  Bruno Haible  <bruno@clisp.org>
37903
37904         * tests/test-memmem.c (main): Increase maximum allowed time.
37905         * tests/test-strstr.c (main): Likewise.
37906
37907 2008-01-11  Bruno Haible  <bruno@clisp.org>
37908
37909         * doc/functions/memmem.texi: Add more precisions about platforms.
37910         * doc/functions/strstr.texi: Likewise.
37911
37912 2008-01-10  Eric Blake  <ebb9@byu.net>
37913
37914         * m4/strstr.m4: Delete cruft from copy-n-paste.
37915         Reported by Bruno Haible.
37916
37917 2008-01-10  Bruno Haible  <bruno@clisp.org>
37918
37919         Make c-strstr rely on strstr.
37920         * lib/c-strstr.c: Don't include str-kmp.h.
37921         (c_strstr): Define in terms of strstr.
37922         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37923         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37924
37925 2008-01-10  Bruno Haible  <bruno@clisp.org>
37926
37927         * doc/gnulib.texi (String Functions in C Locale): New section.
37928         * doc/c-ctype.texi: New file.
37929         * doc/c-strcase.texi: New file.
37930         * doc/c-strcaseeq.texi: New file.
37931         * doc/c-strcasestr.texi: New file.
37932         * doc/c-strstr.texi: New file.
37933         * doc/c-strtod.texi: New file.
37934         * doc/c-strtold.texi: New file.
37935
37936 2008-01-10  Eric Blake  <ebb9@byu.net>
37937
37938         * lib/relocatable.h: Fix a comment.
37939
37940 2008-01-10  Eric Blake  <ebb9@byu.net>
37941
37942         Share two-way algorithm.
37943         * lib/str-two-way.h: New file, merged from...
37944         * lib/memmem.c: ...here...
37945         * lib/strstr.c: ...and here.
37946         * modules/memmem (Files): Use it.
37947         * modules/strstr (Files): Likewise.
37948
37949         Avoid quadratic strstr implementations.
37950         * lib/strstr.c: New file.
37951         * m4/strstr.m4: Likewise.
37952         * modules/strstr: Likewise.
37953         * modules/strstr-tests: Likewise.
37954         * tests/test-strstr.c: Likewise.
37955         * lib/string.in.h (rpl_strstr): Declare.
37956         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37958         * modules/string (Makefile.am): Likewise.
37959         * MODULES.html.sh (string handling): Mention new module.
37960         * doc/functions/strstr.texi (strstr): Document the bug.
37961
37962 2008-01-10  Bruno Haible  <bruno@clisp.org>
37963
37964         * lib/relocatable.h (relocate): State whether result is freshly
37965         allocated or not.
37966         * lib/relocatable.c (relocate): Return a freshly allocated string
37967         instead of a pointer to a privately held string.
37968         Reported by Sylvain Beucler <beuc@gnu.org>.
37969
37970 2008-01-10  Colin Watson  <cjwatson@debian.org>
37971
37972         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37973         s/S_ISNLK/S_ISLNK/.
37974
37975 2008-01-09  Bruno Haible  <bruno@clisp.org>
37976
37977         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37978         and other files.
37979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37980         if it's only a guess.
37981         * modules/memmem: Simplify by depending on memmem-simple.
37982
37983 2008-01-09  Bruno Haible  <bruno@clisp.org>
37984
37985         Work around OpenBSD 4.0 tdelete() bug.
37986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37987         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37988         macros and don't redefine the enum values.
37989         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37990         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37991         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37992
37993 2008-01-09  Bruno Haible  <bruno@clisp.org>
37994
37995         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37996         (main): Don't perform the tests if setlocale did not install a UTF-8
37997         locale. Needed on OpenBSD 4.0.
37998         * modules/wcwidth-tests (Depends-on): Add localcharset.
37999
38000 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38001
38002         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38003         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38004         * NEWS: announce this.
38005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38006
38007 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38008         and Eric Blake  <ebb9@byu.net>
38009
38010         Add memmem-simple module.
38011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38012         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38013         * modules/memmem-simple: New file.
38014         * modules/memmem (Description): Tweak.
38015         * MODULES.html.sh (string handling): Mention new module.
38016         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38017         addressed by memmem-simple.
38018         * NEWS: Document the difference.
38019
38020 2008-01-09  Eric Blake  <ebb9@byu.net>
38021
38022         Give gcc some memmem optimization hints.
38023         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38024         (strcasestr): Declare as pure.
38025         * modules/memmem (Maintainer): Claim my implementation.
38026
38027 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38028
38029         Support AIX 6.1 and higher.
38030         * build-aux/config.libpath: Likewise.
38031         * build-aux/config.rpath: Likewise.
38032
38033 2008-01-08  Jim Meyering  <meyering@redhat.com>
38034             Bruno Haible  <bruno@clisp.org>
38035
38036         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38037         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38038         Reported by Peter Fales in
38039         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38040
38041 2008-01-08  Bruno Haible  <bruno@clisp.org>
38042
38043         * modules/unictype/category-of (Depends-on): Add
38044         unictype/category-none.
38045         * modules/unictype/category-and-tests (Depends-on): Add
38046         unictype/category-{L,N,Lu,Nd}.
38047         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38048         * modules/unictype/category-or-tests (Depends-on): Add
38049         unictype/category-{L,N}.
38050         * modules/unictype/category-name-tests (Depends-on): Add
38051         unictype/category-{Z,Nl}.
38052         Reported by Simon Josefsson.
38053
38054 2008-01-08  Bruno Haible  <bruno@clisp.org>
38055
38056         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38057         convention better.
38058         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38059         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38060         Reported by Peter Miller <millerp@canb.auug.org.au>.
38061
38062 2008-01-08  Eric Blake  <ebb9@byu.net>
38063
38064         Rewrite memmem to guarantee linear complexity without malloc.
38065         * lib/memmem.c (memmem): Use Two-Way rather than
38066         Knuth-Morris-Pratt, to allow O(1) space usage.
38067         (critical_factorization, two_way_short_needle)
38068         (two_way_long_needle): New functions.
38069         (knuth_morris_pratt): Delete.
38070         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38071         Add stdint.
38072         * tests/test-memmem.c (main): Add tests for periodic needle and
38073         sublinear performance.
38074         * doc/functions/memmem.texi (memmem): Document other deficiencies
38075         in cygwin and older glibc.
38076
38077 2008-01-08  Bruno Haible  <bruno@clisp.org>
38078
38079         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38080         augmentation.
38081
38082 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38083
38084         Add a configure time option: --disable-acl.
38085         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38086         AC_ARG_ENABLE(acl).
38087
38088 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38089
38090         * tests/test-localename.c: Don't include obsolete "setenv.h".
38091
38092         * modules/localename-tests (Depends-on): Need unsetenv.
38093
38094 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38095
38096         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38097
38098 2008-01-06  Colin Watson  <cjwatson@debian.org>
38099
38100         * users.txt: Add man-db.
38101
38102 2008-01-07  Bruno Haible  <bruno@clisp.org>
38103
38104         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38105         previous section name.
38106
38107 2008-01-07  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/progname.c (set_program_name): Don't strip off a leading
38110         "lt-" prefix outside a .libs directory.
38111         Suggested by Paul Eggert.
38112
38113 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38114             Bruno Haible  <bruno@clisp.org>
38115
38116         Improve memory cleanup in 'relocatable' module.
38117         * lib/relocatable.h (compute_curr_prefix): Change return type to
38118         'char *'.
38119         * lib/relocatable.c (compute_curr_prefix): Change return type to
38120         'char *'. Free curr_installdir after use.
38121         (relocate): Free curr_prefix_better after use.
38122         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38123
38124 2008-01-01  Bruno Haible  <bruno@clisp.org>
38125
38126         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38127         failure on older glibc systems.
38128         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38129
38130 2008-01-05  Eric Blake  <ebb9@byu.net>
38131
38132         Avoid quadratic system memmem.
38133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38134         Reported by Ralf Wildenhues.
38135
38136         Fix memmem test for mingw.
38137         * modules/memmem-tests (configure.ac): Check for alarm.
38138         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38139         it.
38140         * doc/functions/memmem.texi: New file.
38141         * doc/gnulib.texi (Function Substitutes): Add memmem.
38142         Reported by Bruno Haible.
38143
38144 2008-01-04  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38147         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38148         gl_HEADER_STRING_H_DEFAULTS.
38149
38150 2008-01-04  Eric Blake  <ebb9@byu.net>
38151
38152         Shorten duration of memmem test.
38153         * tests/test-memmem.c (main): Use alarm to declare failure if test
38154         is taking too long.
38155         Reported by Ralf Wildenhues.
38156
38157 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38158
38159         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38160         string, needed by strerror.
38161
38162 2008-01-03  Colin Watson  <cjwatson@debian.org>
38163             Bruno Haible  <bruno@clisp.org>
38164
38165         * doc/gnulib-tool.texi (Localization): New section.
38166
38167 2008-01-02  Bruno Haible  <bruno@clisp.org>
38168
38169         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38170         variables to 'unsigned char *' type.
38171         Reported by Paul Eggert.
38172
38173 2008-01-02  Jim Meyering  <jim@meyering.net>
38174
38175         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38176
38177 2007-12-31  Jim Meyering  <jim@meyering.net>
38178
38179         Avoid use of private FTS type name.
38180         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38181
38182 2007-12-30  Karl Berry  <karl@gnu.org>
38183
38184         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38185         work around defect in Texinfo and/or the standalone Info browser.
38186
38187 2007-12-30  Bruno Haible  <bruno@clisp.org>
38188
38189         Unify 5 copies of the KMP code.
38190         * lib/str-kmp.h: New file.
38191         * lib/c-strcasestr.c: Include str-kmp.h.
38192         (knuth_morris_pratt): Remove function.
38193         (c_strcasestr): Update.
38194         * lib/c-strstr.c: Include str-kmp.h.
38195         (knuth_morris_pratt): Remove function.
38196         (c_strcasestr): Update.
38197         * lib/mbscasestr.c: Include str-kmp.h.
38198         (knuth_morris_pratt_unibyte): Remove function.
38199         * lib/mbsstr.c: Include str-kmp.h.
38200         (knuth_morris_pratt_unibyte): Remove function.
38201         * lib/strcasestr.c: Include str-kmp.h.
38202         (knuth_morris_pratt): Remove function.
38203         (strcasestr): Update.
38204         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38205         * modules/c-strstr (Files): Likewise.
38206         * modules/mbscasestr (Files): Likewise.
38207         * modules/mbsstr (Files): Likewise.
38208         * modules/strcasestr (Files): Likewise.
38209         Suggested by Paul Eggert.
38210
38211 2007-12-30  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38214         defined.
38215
38216 2007-12-30  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/xmalloca.h: Include xalloc.h.
38219         (xnmalloca): New macro.
38220
38221 2007-12-30  Bruno Haible  <bruno@clisp.org>
38222
38223         * lib/malloca.h (nmalloca): New macro.
38224         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38225         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38226         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38227         knuth_morris_pratt_multibyte): Likewise.
38228         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38229         knuth_morris_pratt_multibyte): Likewise.
38230         * lib/memmem.c (knuth_morris_pratt): Likewise.
38231         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38232
38233 2007-12-25  Bruno Haible  <bruno@clisp.org>
38234
38235         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38236         * lib/glob.c: Don't include openat.h.
38237         (link_exists2_p): Add back the code that deals with the
38238         !GLOB_ALTDIRFUNC case.
38239         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38240         let it do the filename concatenation.
38241         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38242         * modules/glob (Depends-on): Remove openat.
38243
38244 2007-12-31  Bruno Haible  <bruno@clisp.org>
38245
38246         * modules/dirfd (License): Change to LGPLv2+.
38247         Approved by Jim Meyering.
38248
38249 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38250
38251         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38252         when multiplying M by sizeof (size_t).
38253
38254 2007-12-10  Martin Lambers  <marlam@marlam.de>
38255
38256         Override getpagesize on mingw.
38257         * lib/getpagesize.c: New file.
38258         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38259         * modules/getpagesize (Files): Add lib/getpagesize.c.
38260         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38262         REPLACE_GETPAGESIZE.
38263         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38264
38265 2007-12-25  Bruno Haible  <bruno@clisp.org>
38266
38267         * modules/localcharset (Notice): New field.
38268         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38269         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38270
38271 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38272             Bruno Haible  <bruno@clisp.org>
38273
38274         Avoid using the syntax symbol() in formatted documentation.
38275         * MODULES.html.sh (func_module): When replacing symbol() with a
38276         hyperlink, remove the parentheses. Show an error if some remain.
38277         Recognize and render the '...' syntax.
38278         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38279         Rework. Add paragraph about GCC's inlining.
38280         * doc/alloca.texi: Likewise.
38281         * doc/error.texi: Remove parentheses from symbol reference.
38282         * doc/gnulib-intro.texi: Likewise.
38283         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38284         * modules/fnmatch (Description): Reword to say "the ... function".
38285         * modules/full-read (Description): Likewise.
38286         * modules/full-write (Description): Likewise.
38287         * modules/safe-read (Description): Likewise.
38288         * modules/safe-write (Description): Likewise.
38289         * modules/strchrnul (Description): Likewise.
38290         * modules/trim (Description): Likewise.
38291         * modules/error (Description): Remove parentheses from symbol
38292         references.
38293         * modules/verror (Description): Likewise.
38294         Reported by Karl Berry.
38295
38296 2007-12-25  Bruno Haible  <bruno@clisp.org>
38297
38298         Fixup after 2007-10-16 commit.
38299         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
38300
38301 2007-12-24  Bruno Haible  <bruno@clisp.org>
38302
38303         Make --enable-relocatable work with DESTDIR.
38304         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
38305         to compute installdir from destprog.
38306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
38307         also set the RELOC_DESTDIR variable.
38308         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38309
38310 2007-12-24  Bruno Haible  <bruno@clisp.org>
38311
38312         Fix link error due to xalloc_die().
38313         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
38314         of xreadlink.
38315         * lib/relocwrapper.c: Update comments.
38316         * build-aux/install-reloc: Remove xreadlink.c from file list.
38317         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
38318         xreadlink.c.
38319         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38320
38321 2007-12-24  Bruno Haible  <bruno@clisp.org>
38322
38323         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
38324         * lib/setenv.h: Remove file.
38325         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
38326         lib/setenv.h.
38327         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
38328         (Depends-on): Add stdlib.
38329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
38330         gl_FUNC_UNSETENV.
38331         (Include): Replace setenv.h with <stdlib.h>.
38332         * modules/unsetenv: New file.
38333         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
38334         * lib/unsetenv.c: Include <stdlib.h> first.
38335         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38336         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38337         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38338         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38339         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38340         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38342         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38343         * doc/functions/unsetenv.texi: Update.
38344         * modules/xsetenv (Depends-on): Add unsetenv.
38345         * modules/getdate (Depends-on): Likewise.
38346         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38347         * lib/xsetenv.c: Don't include setenv.h.
38348         * lib/getdate.y: Likewise.
38349         * lib/relocwrapper.c: Likewise.
38350         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38351         (Depends-on): Add stdlib.
38352         * NEWS: Mention the changes.
38353         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38354
38355 2007-12-23  Bruno Haible  <bruno@clisp.org>
38356
38357         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38358         indentation.
38359
38360 2007-12-23  Bruno Haible  <bruno@clisp.org>
38361
38362         * lib/c-strcasestr.c: Add more comments.
38363         * lib/c-strstr.c: Likewise.
38364         * lib/mbscasestr.c: Likewise.
38365         * lib/mbsstr.c: Likewise.
38366         * lib/strcasestr.c: Likewise.
38367         * lib/memmem.c: Likewise.
38368
38369 2007-12-23  Bruno Haible  <bruno@clisp.org>
38370
38371         * tests/test-memmem.c: Include <string.h> first.
38372
38373 2007-12-22  Bruno Haible  <bruno@clisp.org>
38374
38375         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38376         the contents of $testsbase.
38377         Reported by Ralf Wildenhues.
38378
38379 2007-12-22  Bruno Haible  <bruno@clisp.org>
38380
38381         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38382         two variables local_ldadd_before, local_ldadd_last.
38383
38384 2007-12-20  Eric Blake  <ebb9@byu.net>
38385
38386         Work around circular library issue when cross-compiling.
38387         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38388         that progname.o does not need to pull in rpl_memcmp.
38389
38390 2007-12-19  Eric Blake  <ebb9@byu.net>
38391
38392         Fix memmem to avoid O(n^2) worst-case complexity.
38393         * lib/memmem.c (knuth_morris_pratt): New function.
38394         (memmem): Use it if first few naive iterations fail.
38395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38396         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38397         * modules/memchr (License): Likewise.
38398         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38399         malloca.
38400         * tests/test-memmem.c: Rewrite, borrowing ideas from
38401         test-mbsstr1.c; the old version wouldn't even compile!
38402         * modules/memmem-tests: New file.
38403         * lib/string.in.h (rpl_memmem): Add declaration.
38404         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38406         REPLACE_MEMMEM.
38407
38408 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38409
38410         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38411         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38412         before any system include files, and undef after them all.  This
38413         should fix a problem on VMS reported by John E. Malmberg in
38414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38415
38416 2007-12-17  Eric Blake  <ebb9@byu.net>
38417
38418         Revert addition of verify, for BSD/OS.
38419         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38420         can't handle large files, for the sake of obsolete platforms.
38421         * modules/fseeko (Depends-on): Remove verify.
38422         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38423         * doc/functions/ftello.texi (ftello): Likewise.
38424         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38425         Reported by Larry Jones.
38426
38427 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38428
38429         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38430         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38431
38432 2007-12-17  Jim Meyering  <meyering@redhat.com>
38433
38434         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38435         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38436         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38437         * modules/getcwd (Depends-on): Add openat.
38438         Reported by Petr Salinger.
38439
38440 2007-12-17  Bruno Haible  <bruno@clisp.org>
38441
38442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38443         avoid a segmentation fault of the configure test on x86_64 systems.
38444
38445 2007-12-15  Jim Meyering  <meyering@redhat.com>
38446
38447         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38448
38449 2007-12-13  Eric Blake  <ebb9@byu.net>
38450
38451         Another fseek test.
38452         * tests/test-fseek.c (main): Also test ungetc handling.
38453         * tests/test-fseeko.c (main): Likewise.
38454         * modules/fseeko (Depends-on): Add verify.
38455         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38456         large.
38457         Reported by Larry Jones.
38458
38459         Fix fseeko on mingw.
38460         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38461         seek.
38462
38463         Beef up fseek tests.
38464         * tests/test-fseek.c (main): Also test eof handling.
38465         * tests/test-fseeko.c (main): Likewise.
38466         Reported by Larry Jones.
38467
38468 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38469
38470         Fix fseeko on BSD-based platforms.
38471         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38472         successful seek.
38473
38474 2007-12-12  Eric Blake  <ebb9@byu.net>
38475
38476         Allow circular dependency of separate libtests.a
38477         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38478         when use_libtests.
38479
38480 2007-12-11  Eric Blake  <ebb9@byu.net>
38481
38482         Fix bug with -0.0L in previous patch.
38483         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38484         * tests/test-isnan.c (main): Also test on zeroes.
38485         * tests/test-isnanf.c (main): Likewise.
38486         * tests/test-isnanl.h (main): Likewise.
38487
38488         Detect pseudo-denormals on x86 even when cross-compiling.
38489         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38490         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38491         invalid bit patterns that happen to satisfy ==.
38492
38493         Avoid link failures with separate libtests.a.
38494         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38495         last, to satisfy circular dependencies.
38496
38497 2007-12-11  Eric Blake  <ebb9@byu.net>
38498         and Bruno Haible  <bruno@clisp.org>
38499
38500         Fix OpenBSD 4.0 <float.h> handling of long double.
38501         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38502         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38503         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38504
38505 2007-12-11  Jim Meyering  <meyering@redhat.com>
38506
38507         * users.txt: Add libvirt.
38508
38509         Support versions of autoconf prior to 2.59c.
38510         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38511         if it is not already defined.
38512
38513 2007-12-09  Bruno Haible  <bruno@clisp.org>
38514
38515         Let 'gnulib-tool --import' collect sources needed for the tests in
38516         tests/ rather than in lib/.
38517         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38518         argument. If true, add rules to generate libtests.a, and put libtests.a
38519         into $(LDADD). Consider source files in subdirectories and set
38520         uses_subdirs.
38521         (func_emit_initmacro_start, func_emit_initmacro_end,
38522         func_emit_initmacro_done): Pass all arguments explicitly.
38523         (func_import): Determine two module lists main_modules,
38524         testsrelated_modules. Determine use_libtests. Determine two variables
38525         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38526         instead of just sed_transform_lib_file. Determine two variables
38527         main_files and testsrelated_files. Compute 'files' as the union of
38528         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38529         func_add_or_update. In the generated gnulib-comp.m4, collect the
38530         object files for tests/ in different variables than those for lib/.
38531         Substitute LIBTESTS_LIBDEPS.
38532         (func_create_testdir): Combine the uses_subdirs results from
38533         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38534
38535 2007-12-09  Bruno Haible  <bruno@clisp.org>
38536
38537         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38538         the build-aux directory.
38539
38540 2007-12-09  Bruno Haible  <bruno@clisp.org>
38541
38542         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38543         introduced on 2006-09-09.
38544
38545 2007-12-07  Jim Meyering  <meyering@redhat.com>
38546
38547         Let these macros work also with autoconf-2.59.
38548         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38549         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38551
38552 2007-12-06  Jim Meyering  <meyering@redhat.com>
38553
38554         Avoid a configure-time syntax error in gl_FUNC_ACL.
38555         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38556         function in each branch, before testing the cache variable.
38557
38558 2007-12-04  Eric Blake  <ebb9@byu.net>
38559
38560         Make scripts executable.
38561         * build-aux/config.guess: Add execute permissions.
38562         * build-aux/config.sub: Likewise.
38563         * build-aux/gendocs.sh: Likewise.
38564
38565         Fix frexp on mingw.
38566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38567         cross-compiling.
38568         * doc/functions/frexp.texi (frexp): Document the bug.
38569
38570         Make cygwin fseeko check more reliable.
38571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38572         version numbers, rather than unrelated feature check.
38573         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38574         * doc/functions/ftello.texi (ftello): Likewise.
38575         Reported by Bruno Haible.
38576
38577         * m4/strerror.m4: Bump version number.
38578
38579 2007-12-03  Bruno Haible  <bruno@clisp.org>
38580
38581         * doc/functions/mprotect.texi: Mention the mingw problem.
38582
38583 2007-12-03  Eric Blake  <ebb9@byu.net>
38584
38585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38586         REPLACE_STRERROR is initialized before this macro.
38587
38588 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38589
38590         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38591         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38592         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38593         put -lsec in even for programs other than 'ls'.  This fixes a problem
38594         for gettext reported by Bruno Haible in
38595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38596         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38597         Add support for Solaris 10.  This isn't efficient, but should get the
38598         job done for now.
38599
38600 2007-12-03  James Youngman  <jay@gnu.org>
38601
38602         * doc/regexprops-generic.texi: change "an close-group" to "a
38603         close-group" and "illegal" to "not allowed".
38604
38605 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38606
38607         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38608         pr_byname.h. Needed for the rare case when the maintainer has done
38609         "make maintainer-clean" in the source directory and then attempts a
38610         build outside the source directory.
38611         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38612         scripts_byname.h.
38613
38614 2007-12-02  Martin Lambers <marlam@marlam.de>
38615             Bruno Haible  <bruno@clisp.org>
38616
38617         * lib/getpagesize.h: Remove file.
38618         * lib/unistd.in.h: Include declaration of getpagesize here.
38619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38620         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38621         HAVE_SYS_PARAM_H.
38622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38623         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38624         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38625         (Depends-on): Add unistd.
38626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38627         (Include): Use <unistd.h> instead of getpagesize.h.
38628         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38629         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38630         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38631         gl_GETPAGESIZE invocation, already handled by module dependency.
38632         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38633
38634 2007-12-02  Bruno Haible  <bruno@clisp.org>
38635
38636         * modules/strings-tests: New file.
38637         * tests/test-strings.c: New file.
38638
38639         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38640         * lib/strings.in.h: New file.
38641         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38642         * m4/strings_h.m4: New file.
38643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38644         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38645         * modules/strings: New file.
38646         * modules/string (Makefile.am): Update.
38647         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38648         Reported by Karl Berry.
38649
38650 2007-12-01  Eric Blake  <ebb9@byu.net>
38651
38652         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38653         accomodate fix in cygwin 1.5.25.
38654
38655 2007-12-01  Jim Meyering  <meyering@redhat.com>
38656
38657         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38658         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38659         that would inhibit utf8-optimization of a regexp containing line-
38660         or buffer-anchors, e.g., `^', `$'.
38661
38662 2007-11-30  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38665         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38666         glthread_recursive_lock_init.
38667         * lib/lock.c (glthread_recursive_lock_init)
38668         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38669         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38670
38671 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38672
38673         New function qset_acl, like set_acl but with syscall semantics.
38674         * lib/acl.h (qset_acl): New decl.
38675         * lib/acl.c (qset_acl): New function.
38676         (set_acl): Use new function.  Use more-consistent diagnostics.
38677
38678 2007-11-28  Jim Meyering  <meyering@redhat.com>
38679
38680         * modules/physmem (License): Change from GPL to LGPLv2+.
38681
38682 2007-11-26  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38685         'long double' type has excess precision.
38686         Reported by Jim Meyering in
38687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38688
38689 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38690
38691         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38692         Sync from <http://gnu.org/licenses>.
38693         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38694         with license text from same location.
38695         * doc/maintain.texi, doc/standards.texi:  Sync from
38696         <http://savannah.gnu.org/projects/gnustandards>.
38697
38698 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
38699         and Jim Meyering  <meyering@redhat.com>
38700
38701         Adjust getdate' grammar to accept a slightly more regular language.
38702         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38703         Before, the former was rejected.
38704         * lib/getdate.y (digits_to_date_time): New function, factored
38705         out of ...
38706         (number): ...here.  Just call digits_to_date_time.
38707         (hybrid): New non-terminal to handle an <unsigned number,
38708         signed relative offset> sequence consistently.
38709
38710 2007-11-18  Jim Meyering  <meyering@redhat.com>
38711
38712         Pull my changes from coreutils:
38713         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38714         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38715         use of $gnulib_tool_option_extras, so that it's separated from the
38716         preceding argument.
38717
38718         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38719         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38720         parent destination directories before copying a file into place.
38721
38722 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38723
38724         bootstrap: work also with 4-argument variant of AC_INIT
38725         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38726
38727 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38728
38729         Port test-getaddrinfo to Solaris.
38730         Problem reported by Bruno Haible in
38731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38732         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38733         explanation of setting 'hints'.
38734         Don't reject an implementation merely because it returns EAI_SERVICE.
38735         (EAI_SERVICE): Define to 0 if not defined.
38736
38737 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         The license of gnu-make and posix-shell is now "GPLed build tool".
38740         * modules/gnu-make (License): Likewise.
38741         * modules/posix-shell (License): Likewise.
38742
38743         New module posix-shell, for determining a POSIX shell
38744         or perhaps something that is close enough to a POSIX shell.
38745         * m4/posix-shell.m4: New file.
38746         * modules/posix-shell: New file.
38747
38748         * MODULES.html.sh: Mention new module.
38749
38750         New module gnu-make, for determining whether we're using GNU Make.
38751         * m4/gnu-make.m4: New file.
38752         * modules/gnu-make: New file.
38753         * MODULES.html.sh: Mention new module.
38754
38755 2007-11-14  Jim Meyering  <meyering@redhat.com>
38756
38757         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38758         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38759         use this macro to create a function _definition_.
38760         Remove useless "#undef ARGMATCH_DIE".
38761
38762 2007-11-14  Bruno Haible  <bruno@clisp.org>
38763
38764         * lib/config.charset: Update for OpenBSD 4.1.
38765         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38766
38767 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38768
38769         Document 64-bit #if problems in stdint.texi.
38770         * doc/headers/stdint.texi (stdint.h): Mention problems with
38771         64-bit-#if, and how to work around them.
38772
38773         Don't insist on 'long long int' support in the preprocessor.  It
38774         breaks too many things.  For example, PRIdMAX still uses a 'long
38775         long int' format with the latest Sun compiler, even though
38776         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38777         preprocessor problem.  This causes the latest coreutils to dump
38778         core on Solaris 10 sparc with the Sun C compiler.
38779         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38780         the troublesome expressions at configure-time, not at #if-time.
38781         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38782         preprocessor.
38783         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38784         compile-time C checks, done at 'configure'-time.
38785         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38786         * modules/inttypes (Makefile): Substitute the new symbols that
38787         gl_INTTYPES_H now generates.
38788         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38789
38790 2007-11-12  Bruno Haible  <bruno@clisp.org>
38791
38792         Tests for Unicode character classification functions.
38793
38794         * modules/unictype/bidicategory-byname-tests: New file.
38795         * modules/unictype/bidicategory-name-tests: New file.
38796         * modules/unictype/bidicategory-of-tests: New file.
38797         * modules/unictype/bidicategory-test-tests: New file.
38798         * modules/unictype/block-list-tests: New file.
38799         * modules/unictype/block-of-tests: New file.
38800         * modules/unictype/block-test-tests: New file.
38801         * modules/unictype/category-C-tests: New file.
38802         * modules/unictype/category-Cc-tests: New file.
38803         * modules/unictype/category-Cf-tests: New file.
38804         * modules/unictype/category-Cn-tests: New file.
38805         * modules/unictype/category-Co-tests: New file.
38806         * modules/unictype/category-Cs-tests: New file.
38807         * modules/unictype/category-L-tests: New file.
38808         * modules/unictype/category-Ll-tests: New file.
38809         * modules/unictype/category-Lm-tests: New file.
38810         * modules/unictype/category-Lo-tests: New file.
38811         * modules/unictype/category-Lt-tests: New file.
38812         * modules/unictype/category-Lu-tests: New file.
38813         * modules/unictype/category-M-tests: New file.
38814         * modules/unictype/category-Mc-tests: New file.
38815         * modules/unictype/category-Me-tests: New file.
38816         * modules/unictype/category-Mn-tests: New file.
38817         * modules/unictype/category-N-tests: New file.
38818         * modules/unictype/category-Nd-tests: New file.
38819         * modules/unictype/category-Nl-tests: New file.
38820         * modules/unictype/category-No-tests: New file.
38821         * modules/unictype/category-P-tests: New file.
38822         * modules/unictype/category-Pc-tests: New file.
38823         * modules/unictype/category-Pd-tests: New file.
38824         * modules/unictype/category-Pe-tests: New file.
38825         * modules/unictype/category-Pf-tests: New file.
38826         * modules/unictype/category-Pi-tests: New file.
38827         * modules/unictype/category-Po-tests: New file.
38828         * modules/unictype/category-Ps-tests: New file.
38829         * modules/unictype/category-S-tests: New file.
38830         * modules/unictype/category-Sc-tests: New file.
38831         * modules/unictype/category-Sk-tests: New file.
38832         * modules/unictype/category-Sm-tests: New file.
38833         * modules/unictype/category-So-tests: New file.
38834         * modules/unictype/category-Z-tests: New file.
38835         * modules/unictype/category-Zl-tests: New file.
38836         * modules/unictype/category-Zp-tests: New file.
38837         * modules/unictype/category-Zs-tests: New file.
38838         * modules/unictype/category-and-not-tests: New file.
38839         * modules/unictype/category-and-tests: New file.
38840         * modules/unictype/category-byname-tests: New file.
38841         * modules/unictype/category-name-tests: New file.
38842         * modules/unictype/category-none-tests: New file.
38843         * modules/unictype/category-of-tests: New file.
38844         * modules/unictype/category-or-tests: New file.
38845         * modules/unictype/category-test-withtable-tests: New file.
38846         * modules/unictype/combining-class-tests: New file.
38847         * modules/unictype/ctype-alnum-tests: New file.
38848         * modules/unictype/ctype-alpha-tests: New file.
38849         * modules/unictype/ctype-blank-tests: New file.
38850         * modules/unictype/ctype-cntrl-tests: New file.
38851         * modules/unictype/ctype-digit-tests: New file.
38852         * modules/unictype/ctype-graph-tests: New file.
38853         * modules/unictype/ctype-lower-tests: New file.
38854         * modules/unictype/ctype-print-tests: New file.
38855         * modules/unictype/ctype-punct-tests: New file.
38856         * modules/unictype/ctype-space-tests: New file.
38857         * modules/unictype/ctype-upper-tests: New file.
38858         * modules/unictype/ctype-xdigit-tests: New file.
38859         * modules/unictype/decimal-digit-tests: New file.
38860         * modules/unictype/digit-tests: New file.
38861         * modules/unictype/mirror-tests: New file.
38862         * modules/unictype/numeric-tests: New file.
38863         * modules/unictype/property-alphabetic-tests: New file.
38864         * modules/unictype/property-ascii-hex-digit-tests: New file.
38865         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38866         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38867         * modules/unictype/property-bidi-block-separator-tests: New file.
38868         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38869         * modules/unictype/property-bidi-common-separator-tests: New file.
38870         * modules/unictype/property-bidi-control-tests: New file.
38871         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38872         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38873         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38874         * modules/unictype/property-bidi-european-digit-tests: New file.
38875         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38876         * modules/unictype/property-bidi-left-to-right-tests: New file.
38877         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38878         * modules/unictype/property-bidi-other-neutral-tests: New file.
38879         * modules/unictype/property-bidi-pdf-tests: New file.
38880         * modules/unictype/property-bidi-segment-separator-tests: New file.
38881         * modules/unictype/property-bidi-whitespace-tests: New file.
38882         * modules/unictype/property-byname-tests: New file.
38883         * modules/unictype/property-combining-tests: New file.
38884         * modules/unictype/property-composite-tests: New file.
38885         * modules/unictype/property-currency-symbol-tests: New file.
38886         * modules/unictype/property-dash-tests: New file.
38887         * modules/unictype/property-decimal-digit-tests: New file.
38888         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38889         * modules/unictype/property-deprecated-tests: New file.
38890         * modules/unictype/property-diacritic-tests: New file.
38891         * modules/unictype/property-extender-tests: New file.
38892         * modules/unictype/property-format-control-tests: New file.
38893         * modules/unictype/property-grapheme-base-tests: New file.
38894         * modules/unictype/property-grapheme-extend-tests: New file.
38895         * modules/unictype/property-grapheme-link-tests: New file.
38896         * modules/unictype/property-hex-digit-tests: New file.
38897         * modules/unictype/property-hyphen-tests: New file.
38898         * modules/unictype/property-id-continue-tests: New file.
38899         * modules/unictype/property-id-start-tests: New file.
38900         * modules/unictype/property-ideographic-tests: New file.
38901         * modules/unictype/property-ids-binary-operator-tests: New file.
38902         * modules/unictype/property-ids-trinary-operator-tests: New file.
38903         * modules/unictype/property-ignorable-control-tests: New file.
38904         * modules/unictype/property-iso-control-tests: New file.
38905         * modules/unictype/property-join-control-tests: New file.
38906         * modules/unictype/property-left-of-pair-tests: New file.
38907         * modules/unictype/property-line-separator-tests: New file.
38908         * modules/unictype/property-logical-order-exception-tests: New file.
38909         * modules/unictype/property-lowercase-tests: New file.
38910         * modules/unictype/property-math-tests: New file.
38911         * modules/unictype/property-non-break-tests: New file.
38912         * modules/unictype/property-not-a-character-tests: New file.
38913         * modules/unictype/property-numeric-tests: New file.
38914         * modules/unictype/property-other-alphabetic-tests: New file.
38915         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38916         * modules/unictype/property-other-grapheme-extend-tests: New file.
38917         * modules/unictype/property-other-id-continue-tests: New file.
38918         * modules/unictype/property-other-id-start-tests: New file.
38919         * modules/unictype/property-other-lowercase-tests: New file.
38920         * modules/unictype/property-other-math-tests: New file.
38921         * modules/unictype/property-other-uppercase-tests: New file.
38922         * modules/unictype/property-paired-punctuation-tests: New file.
38923         * modules/unictype/property-paragraph-separator-tests: New file.
38924         * modules/unictype/property-pattern-syntax-tests: New file.
38925         * modules/unictype/property-pattern-white-space-tests: New file.
38926         * modules/unictype/property-private-use-tests: New file.
38927         * modules/unictype/property-punctuation-tests: New file.
38928         * modules/unictype/property-quotation-mark-tests: New file.
38929         * modules/unictype/property-radical-tests: New file.
38930         * modules/unictype/property-sentence-terminal-tests: New file.
38931         * modules/unictype/property-soft-dotted-tests: New file.
38932         * modules/unictype/property-space-tests: New file.
38933         * modules/unictype/property-terminal-punctuation-tests: New file.
38934         * modules/unictype/property-test-tests: New file.
38935         * modules/unictype/property-titlecase-tests: New file.
38936         * modules/unictype/property-unassigned-code-value-tests: New file.
38937         * modules/unictype/property-unified-ideograph-tests: New file.
38938         * modules/unictype/property-uppercase-tests: New file.
38939         * modules/unictype/property-variation-selector-tests: New file.
38940         * modules/unictype/property-white-space-tests: New file.
38941         * modules/unictype/property-xid-continue-tests: New file.
38942         * modules/unictype/property-xid-start-tests: New file.
38943         * modules/unictype/property-zero-width-tests: New file.
38944         * modules/unictype/scripts-tests: New file.
38945         * modules/unictype/syntax-c-ident-tests: New file.
38946         * modules/unictype/syntax-c-whitespace-tests: New file.
38947         * modules/unictype/syntax-java-ident-tests: New file.
38948         * modules/unictype/syntax-java-whitespace-tests: New file.
38949         * tests/unictype/test-bidi_byname.c: New file.
38950         * tests/unictype/test-bidi_name.c: New file.
38951         * tests/unictype/test-bidi_of.c: New file.
38952         * tests/unictype/test-bidi_test.c: New file.
38953         * tests/unictype/test-block_list.c: New file.
38954         * tests/unictype/test-block_of.c: New file.
38955         * tests/unictype/test-block_test.c: New file.
38956         * tests/unictype/test-categ_and.c: New file.
38957         * tests/unictype/test-categ_and_not.c: New file.
38958         * tests/unictype/test-categ_byname.c: New file.
38959         * tests/unictype/test-categ_name.c: New file.
38960         * tests/unictype/test-categ_none.c: New file.
38961         * tests/unictype/test-categ_of.c: New file.
38962         * tests/unictype/test-categ_or.c: New file.
38963         * tests/unictype/test-categ_test_withtable.c: New file.
38964         * tests/unictype/test-combining.c: New file.
38965         * tests/unictype/test-decdigit.c: New file.
38966         * tests/unictype/test-digit.c: New file.
38967         * tests/unictype/test-mirror.c: New file.
38968         * tests/unictype/test-numeric.c: New file.
38969         * tests/unictype/test-pr_byname.c: New file.
38970         * tests/unictype/test-pr_test.c: New file.
38971         * tests/unictype/test-predicate-part1.h: New file.
38972         * tests/unictype/test-predicate-part2.h: New file.
38973         * tests/unictype/test-scripts.c: New file.
38974         * tests/unictype/test-sy_c_ident.c: New file.
38975         * tests/unictype/test-sy_java_ident.c: New file.
38976
38977         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38978         for Unicode 5.0.0.
38979         * tests/unictype/test-categ_Cc.c: Likewise.
38980         * tests/unictype/test-categ_Cf.c: Likewise.
38981         * tests/unictype/test-categ_Cn.c: Likewise.
38982         * tests/unictype/test-categ_Co.c: Likewise.
38983         * tests/unictype/test-categ_Cs.c: Likewise.
38984         * tests/unictype/test-categ_L.c: Likewise.
38985         * tests/unictype/test-categ_Ll.c: Likewise.
38986         * tests/unictype/test-categ_Lm.c: Likewise.
38987         * tests/unictype/test-categ_Lo.c: Likewise.
38988         * tests/unictype/test-categ_Lt.c: Likewise.
38989         * tests/unictype/test-categ_Lu.c: Likewise.
38990         * tests/unictype/test-categ_M.c: Likewise.
38991         * tests/unictype/test-categ_Mc.c: Likewise.
38992         * tests/unictype/test-categ_Me.c: Likewise.
38993         * tests/unictype/test-categ_Mn.c: Likewise.
38994         * tests/unictype/test-categ_N.c: Likewise.
38995         * tests/unictype/test-categ_Nd.c: Likewise.
38996         * tests/unictype/test-categ_Nl.c: Likewise.
38997         * tests/unictype/test-categ_No.c: Likewise.
38998         * tests/unictype/test-categ_P.c: Likewise.
38999         * tests/unictype/test-categ_Pc.c: Likewise.
39000         * tests/unictype/test-categ_Pd.c: Likewise.
39001         * tests/unictype/test-categ_Pe.c: Likewise.
39002         * tests/unictype/test-categ_Pf.c: Likewise.
39003         * tests/unictype/test-categ_Pi.c: Likewise.
39004         * tests/unictype/test-categ_Po.c: Likewise.
39005         * tests/unictype/test-categ_Ps.c: Likewise.
39006         * tests/unictype/test-categ_S.c: Likewise.
39007         * tests/unictype/test-categ_Sc.c: Likewise.
39008         * tests/unictype/test-categ_Sk.c: Likewise.
39009         * tests/unictype/test-categ_Sm.c: Likewise.
39010         * tests/unictype/test-categ_So.c: Likewise.
39011         * tests/unictype/test-categ_Z.c: Likewise.
39012         * tests/unictype/test-categ_Zl.c: Likewise.
39013         * tests/unictype/test-categ_Zp.c: Likewise.
39014         * tests/unictype/test-categ_Zs.c: Likewise.
39015         * tests/unictype/test-ctype_alnum.c: Likewise.
39016         * tests/unictype/test-ctype_alpha.c: Likewise.
39017         * tests/unictype/test-ctype_blank.c: Likewise.
39018         * tests/unictype/test-ctype_cntrl.c: Likewise.
39019         * tests/unictype/test-ctype_digit.c: Likewise.
39020         * tests/unictype/test-ctype_graph.c: Likewise.
39021         * tests/unictype/test-ctype_lower.c: Likewise.
39022         * tests/unictype/test-ctype_print.c: Likewise.
39023         * tests/unictype/test-ctype_punct.c: Likewise.
39024         * tests/unictype/test-ctype_space.c: Likewise.
39025         * tests/unictype/test-ctype_upper.c: Likewise.
39026         * tests/unictype/test-ctype_xdigit.c: Likewise.
39027         * tests/unictype/test-decdigit.h: Likewise.
39028         * tests/unictype/test-digit.h: Likewise.
39029         * tests/unictype/test-numeric.h: Likewise.
39030         * tests/unictype/test-pr_alphabetic.c: Likewise.
39031         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39032         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39033         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39034         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39035         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39036         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39037         * tests/unictype/test-pr_bidi_control.c: Likewise.
39038         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39039         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39040         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39041         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39042         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39043         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39045         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39046         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39047         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39048         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39049         * tests/unictype/test-pr_combining.c: Likewise.
39050         * tests/unictype/test-pr_composite.c: Likewise.
39051         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39052         * tests/unictype/test-pr_dash.c: Likewise.
39053         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39054         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39055         * tests/unictype/test-pr_deprecated.c: Likewise.
39056         * tests/unictype/test-pr_diacritic.c: Likewise.
39057         * tests/unictype/test-pr_extender.c: Likewise.
39058         * tests/unictype/test-pr_format_control.c: Likewise.
39059         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39060         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39061         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39062         * tests/unictype/test-pr_hex_digit.c: Likewise.
39063         * tests/unictype/test-pr_hyphen.c: Likewise.
39064         * tests/unictype/test-pr_id_continue.c: Likewise.
39065         * tests/unictype/test-pr_id_start.c: Likewise.
39066         * tests/unictype/test-pr_ideographic.c: Likewise.
39067         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39068         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39069         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39070         * tests/unictype/test-pr_iso_control.c: Likewise.
39071         * tests/unictype/test-pr_join_control.c: Likewise.
39072         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39073         * tests/unictype/test-pr_line_separator.c: Likewise.
39074         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39075         * tests/unictype/test-pr_lowercase.c: Likewise.
39076         * tests/unictype/test-pr_math.c: Likewise.
39077         * tests/unictype/test-pr_non_break.c: Likewise.
39078         * tests/unictype/test-pr_not_a_character.c: Likewise.
39079         * tests/unictype/test-pr_numeric.c: Likewise.
39080         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39081         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39082         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39083         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39084         * tests/unictype/test-pr_other_id_start.c: Likewise.
39085         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39086         * tests/unictype/test-pr_other_math.c: Likewise.
39087         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39088         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39089         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39090         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39091         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39092         * tests/unictype/test-pr_private_use.c: Likewise.
39093         * tests/unictype/test-pr_punctuation.c: Likewise.
39094         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39095         * tests/unictype/test-pr_radical.c: Likewise.
39096         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39097         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39098         * tests/unictype/test-pr_space.c: Likewise.
39099         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39100         * tests/unictype/test-pr_titlecase.c: Likewise.
39101         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39102         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39103         * tests/unictype/test-pr_uppercase.c: Likewise.
39104         * tests/unictype/test-pr_variation_selector.c: Likewise.
39105         * tests/unictype/test-pr_white_space.c: Likewise.
39106         * tests/unictype/test-pr_xid_continue.c: Likewise.
39107         * tests/unictype/test-pr_xid_start.c: Likewise.
39108         * tests/unictype/test-pr_zero_width.c: Likewise.
39109         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39110         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39111
39112 2007-11-12  Bruno Haible  <bruno@clisp.org>
39113
39114         Unicode character classification functions.
39115         * lib/unictype.h: New file.
39116         * modules/unictype/base: New file.
39117         * modules/unictype/category-L: New file.
39118         * modules/unictype/category-Lu: New file.
39119         * modules/unictype/category-Ll: New file.
39120         * modules/unictype/category-Lt: New file.
39121         * modules/unictype/category-Lm: New file.
39122         * modules/unictype/category-Lo: New file.
39123         * modules/unictype/category-M: New file.
39124         * modules/unictype/category-Mn: New file.
39125         * modules/unictype/category-Mc: New file.
39126         * modules/unictype/category-Me: New file.
39127         * modules/unictype/category-N: New file.
39128         * modules/unictype/category-Nd: New file.
39129         * modules/unictype/category-Nl: New file.
39130         * modules/unictype/category-No: New file.
39131         * modules/unictype/category-P: New file.
39132         * modules/unictype/category-Pc: New file.
39133         * modules/unictype/category-Pd: New file.
39134         * modules/unictype/category-Ps: New file.
39135         * modules/unictype/category-Pe: New file.
39136         * modules/unictype/category-Pi: New file.
39137         * modules/unictype/category-Pf: New file.
39138         * modules/unictype/category-Po: New file.
39139         * modules/unictype/category-S: New file.
39140         * modules/unictype/category-Sm: New file.
39141         * modules/unictype/category-Sc: New file.
39142         * modules/unictype/category-Sk: New file.
39143         * modules/unictype/category-So: New file.
39144         * modules/unictype/category-Z: New file.
39145         * modules/unictype/category-Zs: New file.
39146         * modules/unictype/category-Zl: New file.
39147         * modules/unictype/category-Zp: New file.
39148         * modules/unictype/category-C: New file.
39149         * modules/unictype/category-Cc: New file.
39150         * modules/unictype/category-Cf: New file.
39151         * modules/unictype/category-Cs: New file.
39152         * modules/unictype/category-Co: New file.
39153         * modules/unictype/category-Cn: New file.
39154         * modules/unictype/category-or: New file.
39155         * modules/unictype/category-of: New file.
39156         * modules/unictype/category-test: New file.
39157         * modules/unictype/category-test-withtable: New file.
39158         * modules/unictype/category-byname: New file.
39159         * modules/unictype/category-none: New file.
39160         * modules/unictype/category-and: New file.
39161         * modules/unictype/category-and-not: New file.
39162         * modules/unictype/category-name: New file.
39163         * modules/unictype/combining-class: New file.
39164         * modules/unictype/category-all: New file.
39165         * modules/unictype/bidicategory-all: New file.
39166         * modules/unictype/bidicategory-byname: New file.
39167         * modules/unictype/bidicategory-name: New file.
39168         * modules/unictype/bidicategory-of: New file.
39169         * modules/unictype/bidicategory-test: New file.
39170         * modules/unictype/decimal-digit: New file.
39171         * modules/unictype/digit: New file.
39172         * modules/unictype/numeric: New file.
39173         * modules/unictype/mirror: New file.
39174         * modules/unictype/property-white-space: New file.
39175         * modules/unictype/property-alphabetic: New file.
39176         * modules/unictype/property-other-alphabetic: New file.
39177         * modules/unictype/property-not-a-character: New file.
39178         * modules/unictype/property-default-ignorable-code-point: New file.
39179         * modules/unictype/property-other-default-ignorable-code-point: New
39180         file.
39181         * modules/unictype/property-deprecated: New file.
39182         * modules/unictype/property-logical-order-exception: New file.
39183         * modules/unictype/property-variation-selector: New file.
39184         * modules/unictype/property-private-use: New file.
39185         * modules/unictype/property-unassigned-code-value: New file.
39186         * modules/unictype/property-uppercase: New file.
39187         * modules/unictype/property-other-uppercase: New file.
39188         * modules/unictype/property-lowercase: New file.
39189         * modules/unictype/property-other-lowercase: New file.
39190         * modules/unictype/property-titlecase: New file.
39191         * modules/unictype/property-soft-dotted: New file.
39192         * modules/unictype/property-id-start: New file.
39193         * modules/unictype/property-other-id-start: New file.
39194         * modules/unictype/property-id-continue: New file.
39195         * modules/unictype/property-other-id-continue: New file.
39196         * modules/unictype/property-xid-start: New file.
39197         * modules/unictype/property-xid-continue: New file.
39198         * modules/unictype/property-pattern-white-space: New file.
39199         * modules/unictype/property-pattern-syntax: New file.
39200         * modules/unictype/property-join-control: New file.
39201         * modules/unictype/property-grapheme-base: New file.
39202         * modules/unictype/property-grapheme-extend: New file.
39203         * modules/unictype/property-other-grapheme-extend: New file.
39204         * modules/unictype/property-grapheme-link: New file.
39205         * modules/unictype/property-bidi-control: New file.
39206         * modules/unictype/property-bidi-left-to-right: New file.
39207         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39208         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39209         * modules/unictype/property-bidi-european-digit: New file.
39210         * modules/unictype/property-bidi-eur-num-separator: New file.
39211         * modules/unictype/property-bidi-eur-num-terminator: New file.
39212         * modules/unictype/property-bidi-arabic-digit: New file.
39213         * modules/unictype/property-bidi-common-separator: New file.
39214         * modules/unictype/property-bidi-block-separator: New file.
39215         * modules/unictype/property-bidi-segment-separator: New file.
39216         * modules/unictype/property-bidi-whitespace: New file.
39217         * modules/unictype/property-bidi-non-spacing-mark: New file.
39218         * modules/unictype/property-bidi-boundary-neutral: New file.
39219         * modules/unictype/property-bidi-pdf: New file.
39220         * modules/unictype/property-bidi-embedding-or-override: New file.
39221         * modules/unictype/property-bidi-other-neutral: New file.
39222         * modules/unictype/property-hex-digit: New file.
39223         * modules/unictype/property-ascii-hex-digit: New file.
39224         * modules/unictype/property-ideographic: New file.
39225         * modules/unictype/property-unified-ideograph: New file.
39226         * modules/unictype/property-radical: New file.
39227         * modules/unictype/property-ids-binary-operator: New file.
39228         * modules/unictype/property-ids-trinary-operator: New file.
39229         * modules/unictype/property-zero-width: New file.
39230         * modules/unictype/property-space: New file.
39231         * modules/unictype/property-non-break: New file.
39232         * modules/unictype/property-iso-control: New file.
39233         * modules/unictype/property-format-control: New file.
39234         * modules/unictype/property-dash: New file.
39235         * modules/unictype/property-hyphen: New file.
39236         * modules/unictype/property-punctuation: New file.
39237         * modules/unictype/property-line-separator: New file.
39238         * modules/unictype/property-paragraph-separator: New file.
39239         * modules/unictype/property-quotation-mark: New file.
39240         * modules/unictype/property-sentence-terminal: New file.
39241         * modules/unictype/property-terminal-punctuation: New file.
39242         * modules/unictype/property-currency-symbol: New file.
39243         * modules/unictype/property-math: New file.
39244         * modules/unictype/property-other-math: New file.
39245         * modules/unictype/property-paired-punctuation: New file.
39246         * modules/unictype/property-left-of-pair: New file.
39247         * modules/unictype/property-combining: New file.
39248         * modules/unictype/property-composite: New file.
39249         * modules/unictype/property-decimal-digit: New file.
39250         * modules/unictype/property-numeric: New file.
39251         * modules/unictype/property-diacritic: New file.
39252         * modules/unictype/property-extender: New file.
39253         * modules/unictype/property-ignorable-control: New file.
39254         * modules/unictype/property-test: New file.
39255         * modules/unictype/property-byname: New file.
39256         * modules/unictype/property-all: New file.
39257         * modules/unictype/scripts: New file.
39258         * modules/unictype/scripts-all: New file.
39259         * modules/unictype/block-of: New file.
39260         * modules/unictype/block-test: New file.
39261         * modules/unictype/block-list: New file.
39262         * modules/unictype/block-all: New file.
39263         * modules/unictype/syntax-c-whitespace: New file.
39264         * modules/unictype/syntax-java-whitespace: New file.
39265         * modules/unictype/syntax-c-ident: New file.
39266         * modules/unictype/syntax-java-ident: New file.
39267         * modules/unictype/ctype-alnum: New file.
39268         * modules/unictype/ctype-alpha: New file.
39269         * modules/unictype/ctype-cntrl: New file.
39270         * modules/unictype/ctype-digit: New file.
39271         * modules/unictype/ctype-graph: New file.
39272         * modules/unictype/ctype-lower: New file.
39273         * modules/unictype/ctype-print: New file.
39274         * modules/unictype/ctype-punct: New file.
39275         * modules/unictype/ctype-space: New file.
39276         * modules/unictype/ctype-upper: New file.
39277         * modules/unictype/ctype-xdigit: New file.
39278         * modules/unictype/ctype-blank: New file.
39279         * lib/unictype/bidi_byname.c: New file.
39280         * lib/unictype/bidi_name.c: New file.
39281         * lib/unictype/bidi_of.c: New file.
39282         * lib/unictype/bidi_test.c: New file.
39283         * lib/unictype/bitmap.h: New file.
39284         * lib/unictype/block_test.c: New file.
39285         * lib/unictype/blocks.c: New file.
39286         * lib/unictype/categ_C.c: New file.
39287         * lib/unictype/categ_Cc.c: New file.
39288         * lib/unictype/categ_Cf.c: New file.
39289         * lib/unictype/categ_Cn.c: New file.
39290         * lib/unictype/categ_Co.c: New file.
39291         * lib/unictype/categ_Cs.c: New file.
39292         * lib/unictype/categ_L.c: New file.
39293         * lib/unictype/categ_Ll.c: New file.
39294         * lib/unictype/categ_Lm.c: New file.
39295         * lib/unictype/categ_Lo.c: New file.
39296         * lib/unictype/categ_Lt.c: New file.
39297         * lib/unictype/categ_Lu.c: New file.
39298         * lib/unictype/categ_M.c: New file.
39299         * lib/unictype/categ_Mc.c: New file.
39300         * lib/unictype/categ_Me.c: New file.
39301         * lib/unictype/categ_Mn.c: New file.
39302         * lib/unictype/categ_N.c: New file.
39303         * lib/unictype/categ_Nd.c: New file.
39304         * lib/unictype/categ_Nl.c: New file.
39305         * lib/unictype/categ_No.c: New file.
39306         * lib/unictype/categ_P.c: New file.
39307         * lib/unictype/categ_Pc.c: New file.
39308         * lib/unictype/categ_Pd.c: New file.
39309         * lib/unictype/categ_Pe.c: New file.
39310         * lib/unictype/categ_Pf.c: New file.
39311         * lib/unictype/categ_Pi.c: New file.
39312         * lib/unictype/categ_Po.c: New file.
39313         * lib/unictype/categ_Ps.c: New file.
39314         * lib/unictype/categ_S.c: New file.
39315         * lib/unictype/categ_Sc.c: New file.
39316         * lib/unictype/categ_Sk.c: New file.
39317         * lib/unictype/categ_Sm.c: New file.
39318         * lib/unictype/categ_So.c: New file.
39319         * lib/unictype/categ_Z.c: New file.
39320         * lib/unictype/categ_Zl.c: New file.
39321         * lib/unictype/categ_Zp.c: New file.
39322         * lib/unictype/categ_Zs.c: New file.
39323         * lib/unictype/categ_and.c: New file.
39324         * lib/unictype/categ_and_not.c: New file.
39325         * lib/unictype/categ_byname.c: New file.
39326         * lib/unictype/categ_name.c: New file.
39327         * lib/unictype/categ_none.c: New file.
39328         * lib/unictype/categ_of.c: New file.
39329         * lib/unictype/categ_or.c: New file.
39330         * lib/unictype/categ_test.c: New file.
39331         * lib/unictype/combining.c: New file.
39332         * lib/unictype/ctype_alnum.c: New file.
39333         * lib/unictype/ctype_alpha.c: New file.
39334         * lib/unictype/ctype_blank.c: New file.
39335         * lib/unictype/ctype_cntrl.c: New file.
39336         * lib/unictype/ctype_digit.c: New file.
39337         * lib/unictype/ctype_graph.c: New file.
39338         * lib/unictype/ctype_lower.c: New file.
39339         * lib/unictype/ctype_print.c: New file.
39340         * lib/unictype/ctype_punct.c: New file.
39341         * lib/unictype/ctype_space.c: New file.
39342         * lib/unictype/ctype_upper.c: New file.
39343         * lib/unictype/ctype_xdigit.c: New file.
39344         * lib/unictype/decdigit.c: New file.
39345         * lib/unictype/digit.c: New file.
39346         * lib/unictype/identsyntaxmap.h: New file.
39347         * lib/unictype/mirror.c: New file.
39348         * lib/unictype/numeric.c: New file.
39349         * lib/unictype/pr_alphabetic.c: New file.
39350         * lib/unictype/pr_ascii_hex_digit.c: New file.
39351         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39352         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39353         * lib/unictype/pr_bidi_block_separator.c: New file.
39354         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39355         * lib/unictype/pr_bidi_common_separator.c: New file.
39356         * lib/unictype/pr_bidi_control.c: New file.
39357         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39358         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39359         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39360         * lib/unictype/pr_bidi_european_digit.c: New file.
39361         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39362         * lib/unictype/pr_bidi_left_to_right.c: New file.
39363         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39364         * lib/unictype/pr_bidi_other_neutral.c: New file.
39365         * lib/unictype/pr_bidi_pdf.c: New file.
39366         * lib/unictype/pr_bidi_segment_separator.c: New file.
39367         * lib/unictype/pr_bidi_whitespace.c: New file.
39368         * lib/unictype/pr_byname.c: New file.
39369         * lib/unictype/pr_byname.gperf: New file.
39370         * lib/unictype/pr_combining.c: New file.
39371         * lib/unictype/pr_composite.c: New file.
39372         * lib/unictype/pr_currency_symbol.c: New file.
39373         * lib/unictype/pr_dash.c: New file.
39374         * lib/unictype/pr_decimal_digit.c: New file.
39375         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39376         * lib/unictype/pr_deprecated.c: New file.
39377         * lib/unictype/pr_diacritic.c: New file.
39378         * lib/unictype/pr_extender.c: New file.
39379         * lib/unictype/pr_format_control.c: New file.
39380         * lib/unictype/pr_grapheme_base.c: New file.
39381         * lib/unictype/pr_grapheme_extend.c: New file.
39382         * lib/unictype/pr_grapheme_link.c: New file.
39383         * lib/unictype/pr_hex_digit.c: New file.
39384         * lib/unictype/pr_hyphen.c: New file.
39385         * lib/unictype/pr_id_continue.c: New file.
39386         * lib/unictype/pr_id_start.c: New file.
39387         * lib/unictype/pr_ideographic.c: New file.
39388         * lib/unictype/pr_ids_binary_operator.c: New file.
39389         * lib/unictype/pr_ids_trinary_operator.c: New file.
39390         * lib/unictype/pr_ignorable_control.c: New file.
39391         * lib/unictype/pr_iso_control.c: New file.
39392         * lib/unictype/pr_join_control.c: New file.
39393         * lib/unictype/pr_left_of_pair.c: New file.
39394         * lib/unictype/pr_line_separator.c: New file.
39395         * lib/unictype/pr_logical_order_exception.c: New file.
39396         * lib/unictype/pr_lowercase.c: New file.
39397         * lib/unictype/pr_math.c: New file.
39398         * lib/unictype/pr_non_break.c: New file.
39399         * lib/unictype/pr_not_a_character.c: New file.
39400         * lib/unictype/pr_numeric.c: New file.
39401         * lib/unictype/pr_other_alphabetic.c: New file.
39402         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39403         * lib/unictype/pr_other_grapheme_extend.c: New file.
39404         * lib/unictype/pr_other_id_continue.c: New file.
39405         * lib/unictype/pr_other_id_start.c: New file.
39406         * lib/unictype/pr_other_lowercase.c: New file.
39407         * lib/unictype/pr_other_math.c: New file.
39408         * lib/unictype/pr_other_uppercase.c: New file.
39409         * lib/unictype/pr_paired_punctuation.c: New file.
39410         * lib/unictype/pr_paragraph_separator.c: New file.
39411         * lib/unictype/pr_pattern_syntax.c: New file.
39412         * lib/unictype/pr_pattern_white_space.c: New file.
39413         * lib/unictype/pr_private_use.c: New file.
39414         * lib/unictype/pr_punctuation.c: New file.
39415         * lib/unictype/pr_quotation_mark.c: New file.
39416         * lib/unictype/pr_radical.c: New file.
39417         * lib/unictype/pr_sentence_terminal.c: New file.
39418         * lib/unictype/pr_soft_dotted.c: New file.
39419         * lib/unictype/pr_space.c: New file.
39420         * lib/unictype/pr_terminal_punctuation.c: New file.
39421         * lib/unictype/pr_test.c: New file.
39422         * lib/unictype/pr_titlecase.c: New file.
39423         * lib/unictype/pr_unassigned_code_value.c: New file.
39424         * lib/unictype/pr_unified_ideograph.c: New file.
39425         * lib/unictype/pr_uppercase.c: New file.
39426         * lib/unictype/pr_variation_selector.c: New file.
39427         * lib/unictype/pr_white_space.c: New file.
39428         * lib/unictype/pr_xid_continue.c: New file.
39429         * lib/unictype/pr_xid_start.c: New file.
39430         * lib/unictype/pr_zero_width.c: New file.
39431         * lib/unictype/scripts.c: New file.
39432         * lib/unictype/sy_c_ident.c: New file.
39433         * lib/unictype/sy_c_whitespace.c: New file.
39434         * lib/unictype/sy_java_ident.c: New file.
39435         * lib/unictype/sy_java_whitespace.c: New file.
39436
39437         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39438         Unicode 5.0.0.
39439         * lib/unictype/blocks.h: Likewise.
39440         * lib/unictype/categ_C.h: Likewise.
39441         * lib/unictype/categ_Cc.h: Likewise.
39442         * lib/unictype/categ_Cf.h: Likewise.
39443         * lib/unictype/categ_Cn.h: Likewise.
39444         * lib/unictype/categ_Co.h: Likewise.
39445         * lib/unictype/categ_Cs.h: Likewise.
39446         * lib/unictype/categ_L.h: Likewise.
39447         * lib/unictype/categ_Ll.h: Likewise.
39448         * lib/unictype/categ_Lm.h: Likewise.
39449         * lib/unictype/categ_Lo.h: Likewise.
39450         * lib/unictype/categ_Lt.h: Likewise.
39451         * lib/unictype/categ_Lu.h: Likewise.
39452         * lib/unictype/categ_M.h: Likewise.
39453         * lib/unictype/categ_Mc.h: Likewise.
39454         * lib/unictype/categ_Me.h: Likewise.
39455         * lib/unictype/categ_Mn.h: Likewise.
39456         * lib/unictype/categ_N.h: Likewise.
39457         * lib/unictype/categ_Nd.h: Likewise.
39458         * lib/unictype/categ_Nl.h: Likewise.
39459         * lib/unictype/categ_No.h: Likewise.
39460         * lib/unictype/categ_P.h: Likewise.
39461         * lib/unictype/categ_Pc.h: Likewise.
39462         * lib/unictype/categ_Pd.h: Likewise.
39463         * lib/unictype/categ_Pe.h: Likewise.
39464         * lib/unictype/categ_Pf.h: Likewise.
39465         * lib/unictype/categ_Pi.h: Likewise.
39466         * lib/unictype/categ_Po.h: Likewise.
39467         * lib/unictype/categ_Ps.h: Likewise.
39468         * lib/unictype/categ_S.h: Likewise.
39469         * lib/unictype/categ_Sc.h: Likewise.
39470         * lib/unictype/categ_Sk.h: Likewise.
39471         * lib/unictype/categ_Sm.h: Likewise.
39472         * lib/unictype/categ_So.h: Likewise.
39473         * lib/unictype/categ_Z.h: Likewise.
39474         * lib/unictype/categ_Zl.h: Likewise.
39475         * lib/unictype/categ_Zp.h: Likewise.
39476         * lib/unictype/categ_Zs.h: Likewise.
39477         * lib/unictype/categ_of.h: Likewise.
39478         * lib/unictype/combining.h: Likewise.
39479         * lib/unictype/ctype_alnum.h: Likewise.
39480         * lib/unictype/ctype_alpha.h: Likewise.
39481         * lib/unictype/ctype_blank.h: Likewise.
39482         * lib/unictype/ctype_cntrl.h: Likewise.
39483         * lib/unictype/ctype_digit.h: Likewise.
39484         * lib/unictype/ctype_graph.h: Likewise.
39485         * lib/unictype/ctype_lower.h: Likewise.
39486         * lib/unictype/ctype_print.h: Likewise.
39487         * lib/unictype/ctype_punct.h: Likewise.
39488         * lib/unictype/ctype_space.h: Likewise.
39489         * lib/unictype/ctype_upper.h: Likewise.
39490         * lib/unictype/ctype_xdigit.h: Likewise.
39491         * lib/unictype/decdigit.h: Likewise.
39492         * lib/unictype/digit.h: Likewise.
39493         * lib/unictype/mirror.h: Likewise.
39494         * lib/unictype/numeric.h: Likewise.
39495         * lib/unictype/pr_alphabetic.h: Likewise.
39496         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39497         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39498         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39499         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39500         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39501         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39502         * lib/unictype/pr_bidi_control.h: Likewise.
39503         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39504         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39505         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39506         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39507         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39508         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39509         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39510         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39511         * lib/unictype/pr_bidi_pdf.h: Likewise.
39512         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39513         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39514         * lib/unictype/pr_combining.h: Likewise.
39515         * lib/unictype/pr_composite.h: Likewise.
39516         * lib/unictype/pr_currency_symbol.h: Likewise.
39517         * lib/unictype/pr_dash.h: Likewise.
39518         * lib/unictype/pr_decimal_digit.h: Likewise.
39519         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39520         * lib/unictype/pr_deprecated.h: Likewise.
39521         * lib/unictype/pr_diacritic.h: Likewise.
39522         * lib/unictype/pr_extender.h: Likewise.
39523         * lib/unictype/pr_format_control.h: Likewise.
39524         * lib/unictype/pr_grapheme_base.h: Likewise.
39525         * lib/unictype/pr_grapheme_extend.h: Likewise.
39526         * lib/unictype/pr_grapheme_link.h: Likewise.
39527         * lib/unictype/pr_hex_digit.h: Likewise.
39528         * lib/unictype/pr_hyphen.h: Likewise.
39529         * lib/unictype/pr_id_continue.h: Likewise.
39530         * lib/unictype/pr_id_start.h: Likewise.
39531         * lib/unictype/pr_ideographic.h: Likewise.
39532         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39533         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39534         * lib/unictype/pr_ignorable_control.h: Likewise.
39535         * lib/unictype/pr_iso_control.h: Likewise.
39536         * lib/unictype/pr_join_control.h: Likewise.
39537         * lib/unictype/pr_left_of_pair.h: Likewise.
39538         * lib/unictype/pr_line_separator.h: Likewise.
39539         * lib/unictype/pr_logical_order_exception.h: Likewise.
39540         * lib/unictype/pr_lowercase.h: Likewise.
39541         * lib/unictype/pr_math.h: Likewise.
39542         * lib/unictype/pr_non_break.h: Likewise.
39543         * lib/unictype/pr_not_a_character.h: Likewise.
39544         * lib/unictype/pr_numeric.h: Likewise.
39545         * lib/unictype/pr_other_alphabetic.h: Likewise.
39546         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39547         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39548         * lib/unictype/pr_other_id_continue.h: Likewise.
39549         * lib/unictype/pr_other_id_start.h: Likewise.
39550         * lib/unictype/pr_other_lowercase.h: Likewise.
39551         * lib/unictype/pr_other_math.h: Likewise.
39552         * lib/unictype/pr_other_uppercase.h: Likewise.
39553         * lib/unictype/pr_paired_punctuation.h: Likewise.
39554         * lib/unictype/pr_paragraph_separator.h: Likewise.
39555         * lib/unictype/pr_pattern_syntax.h: Likewise.
39556         * lib/unictype/pr_pattern_white_space.h: Likewise.
39557         * lib/unictype/pr_private_use.h: Likewise.
39558         * lib/unictype/pr_punctuation.h: Likewise.
39559         * lib/unictype/pr_quotation_mark.h: Likewise.
39560         * lib/unictype/pr_radical.h: Likewise.
39561         * lib/unictype/pr_sentence_terminal.h: Likewise.
39562         * lib/unictype/pr_soft_dotted.h: Likewise.
39563         * lib/unictype/pr_space.h: Likewise.
39564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39565         * lib/unictype/pr_titlecase.h: Likewise.
39566         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39567         * lib/unictype/pr_unified_ideograph.h: Likewise.
39568         * lib/unictype/pr_uppercase.h: Likewise.
39569         * lib/unictype/pr_variation_selector.h: Likewise.
39570         * lib/unictype/pr_white_space.h: Likewise.
39571         * lib/unictype/pr_xid_continue.h: Likewise.
39572         * lib/unictype/pr_xid_start.h: Likewise.
39573         * lib/unictype/pr_zero_width.h: Likewise.
39574         * lib/unictype/scripts.h: Likewise.
39575         * lib/unictype/scripts_byname.gperf: Likewise.
39576         * lib/unictype/sy_c_ident.h: Likewise.
39577         * lib/unictype/sy_c_whitespace.h: Likewise.
39578         * lib/unictype/sy_java_ident.h: Likewise.
39579         * lib/unictype/sy_java_whitespace.h: Likewise.
39580
39581         * lib/unictype/Makefile: New file.
39582         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39583         glibc.
39584         * lib/unictype/3level.h: New file, copied from glibc.
39585         * lib/unictype/3levelbit.h: New file.
39586
39587 2007-11-11  Bruno Haible  <bruno@clisp.org>
39588
39589         * modules/gperf: New file.
39590         * modules/iconv_open (Depends-on): Add it.
39591         (Makefile.am): Remove the GPERF definition.
39592
39593 2007-11-11  Bruno Haible  <bruno@clisp.org>
39594
39595         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39596         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39597
39598 2007-11-11  Bruno Haible  <bruno@clisp.org>
39599
39600         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39601         (usage): Remove function.
39602
39603 2007-11-11  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39606         gl_FUNC_CEILF_LIBS.
39607         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39608         gl_FUNC_CEIL_LIBS.
39609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39610         gl_FUNC_CEILL_LIBS.
39611         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39612         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39613         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39614
39615 2007-11-11  Bruno Haible  <bruno@clisp.org>
39616
39617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39618         roundf were declared but do not exist on functions.
39619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39620         roundl were declared but do not exist on functions.
39621         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39622         HAVE_FLOORL_AND_CEILL, respectively.
39623         Needed for Sun C on Solaris 10.
39624
39625 2007-11-11  Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39628         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39629         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39630         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39632         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39633         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39634         HAVE_DECL_ROUNDF.
39635         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39636         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39638         of HAVE_DECL_ROUND*.
39639         * modules/math (Makefile.am): Update.
39640
39641 2007-11-10  Bruno Haible  <bruno@clisp.org>
39642
39643         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39644         ptrdiff_t as m4/intl.m4.
39645
39646 2007-11-10  Jim Meyering  <meyering@redhat.com>
39647
39648         Avoid link failure for the argmatch test.
39649         * tests/test-argmatch.c (usage): Define function to avoid a link
39650         failure: argmatch_die requires a usage function.
39651
39652 2007-11-09  Bruno Haible  <bruno@clisp.org>
39653
39654         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39655         * doc/functions/vsnprintf.texi: Likewise.
39656         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39657         with a size argument < 2.
39658
39659 2007-11-09  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39662         buffer. Fixes an inefficiency introduced on 2007-11-03.
39663
39664 2007-11-09  Bruno Haible  <bruno@clisp.org>
39665
39666         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39667         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39668
39669 2007-11-08  Jim Meyering  <meyering@redhat.com>
39670
39671         Change cache variable name prefix "jm_" to "gl_" everywhere.
39672         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39673         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39674         * m4/uptime.m4: s/gl_/jm_/
39675
39676 2007-11-07  Bruno Haible  <bruno@clisp.org>
39677
39678         Update to GNU gettext 0.17.
39679         * m4/intl.m4: Update to GNU gettext 0.17.
39680         * m4/po.m4: Likewise.
39681         * modules/gettext (Files): Remove m4/ulonglong.m4.
39682         (configure.ac): Require gettext infrastructure from version 0.17.
39683
39684 2007-11-06  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39687         symbolic values are not defined in a public header.
39688         * lib/freadable.c (freadable) [QNX]: Likewise.
39689         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39690         * lib/freading.c (freading) [QNX]: Likewise.
39691         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39692         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39693         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39694         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39695         Reported by Alain Magloire.
39696
39697         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39698
39699 2007-11-05  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39702         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39703         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39704         Reported by Eric Blake.
39705
39706 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39707             Bruno Haible  <bruno@clisp.org>
39708
39709         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39710         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39711         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39712         (malloc): Undefine also before including <stdlib.h>.
39713         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39714         Needed on OSF/1 4.0.
39715
39716 2007-11-05  Jim Meyering  <meyering@redhat.com>
39717
39718         git-version-gen: sync from coreutils.
39719         * build-aux/git-version-gen: Add comments.
39720         Change the first '-' to '.' in the snapshot version string,
39721         e.g., 6.9-377-08144 -> 6.9.377-08144
39722         Remove first parameter.
39723         Don't declare a version "-dirty" merely because a time
39724         stamp has changed.
39725
39726 2007-11-04  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/lock.h: Protect all macro definitions containing an 'if'
39729         statement through a "do { ... } while (0)".
39730         * lib/tls.h: Likewise.
39731
39732 2007-11-04  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39735
39736 2007-11-04  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39739         * modules/fprintf-posix (Depends-on): Add nocrash.
39740         * modules/snprintf-posix (Depends-on): Likewise.
39741         * modules/sprintf-posix (Depends-on): Likewise.
39742         * modules/vasnprintf-posix (Depends-on): Likewise.
39743         * modules/vasprintf-posix (Depends-on): Likewise.
39744         * modules/vfprintf-posix (Depends-on): Likewise.
39745         * modules/vsnprintf-posix (Depends-on): Likewise.
39746         * modules/vsprintf-posix (Depends-on): Likewise.
39747         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39748         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39749         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39750         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39751         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39752         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39753         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39754
39755 2007-11-04  Bruno Haible  <bruno@clisp.org>
39756
39757         * modules/nocrash: New file.
39758         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39759         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39760
39761 2007-11-04  Bruno Haible  <bruno@clisp.org>
39762
39763         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39764         precision handling.
39765         * tests/test-vasprintf-posix.c (test_function): Likewise.
39766         * tests/test-snprintf-posix.h (test_function): Likewise.
39767         * tests/test-sprintf-posix.h (test_function): Likewise.
39768
39769         Fix *printf behaviour for large precisions on mingw and BeOS.
39770         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39771         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39773         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39775         gl_PRINTF_PRECISION and test its result. Invoke
39776         gl_PREREQ_VASNPRINTF_PRECISION.
39777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39784         * doc/functions/fprintf.texi: Update.
39785         * doc/functions/printf.texi: Update.
39786         * doc/functions/snprintf.texi: Update.
39787         * doc/functions/sprintf.texi: Update.
39788         * doc/functions/vfprintf.texi: Update.
39789         * doc/functions/vprintf.texi: Update.
39790         * doc/functions/vsnprintf.texi: Update.
39791         * doc/functions/vsprintf.texi: Update.
39792
39793 2007-11-04  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39796
39797 2007-11-04  Bruno Haible  <bruno@clisp.org>
39798
39799         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39800         Reported by Sylvain Beucler <beuc@gnu.org>.
39801
39802 2007-11-03  Bruno Haible  <bruno@clisp.org>
39803
39804         * tests/test-fprintf-posix2.sh: New file.
39805         * tests/test-fprintf-posix2.c: New file.
39806         * modules/fprintf-posix-tests (Files): Add them.
39807         (TESTS): Add test-fprintf-posix2.sh.
39808         (configure.ac): Check for getrlimit and setrlimit.
39809         (check_PROGRAMS): Add test-fprintf-posix2.
39810
39811         * tests/test-printf-posix2.sh: New file.
39812         * tests/test-printf-posix2.c: New file.
39813         * modules/printf-posix-tests (Files): Add them.
39814         (TESTS): Add test-printf-posix2.sh.
39815         (configure.ac): Check for getrlimit and setrlimit.
39816         (check_PROGRAMS): Add test-printf-posix2.
39817
39818         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39819         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39820         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39821         (decode_double): New function, copied from decode_long_double.
39822         (scale10_round_decimal_decoded): New function, extracted from
39823         scale10_round_decimal_long_double.
39824         (scale10_round_decimal_long_double): Use it.
39825         (scale10_round_decimal_double): New function.
39826         (floorlog10): New function.
39827         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39829         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39831         gl_PRINTF_ENOMEM and test its result. Invoke
39832         gl_PREREQ_VASNPRINTF_ENOMEM.
39833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39840         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39841         * modules/snprintf-posix (Depends-on): Likewise.
39842         * modules/sprintf-posix (Depends-on): Likewise.
39843         * modules/vasnprintf-posix (Depends-on): Likewise.
39844         * modules/vasprintf-posix (Depends-on): Likewise.
39845         * modules/vfprintf-posix (Depends-on): Likewise.
39846         * modules/vsnprintf-posix (Depends-on): Likewise.
39847         * modules/vsprintf-posix (Depends-on): Likewise.
39848         * doc/functions/fprintf.texi: Update.
39849         * doc/functions/printf.texi: Update.
39850         * doc/functions/snprintf.texi: Update.
39851         * doc/functions/sprintf.texi: Update.
39852         * doc/functions/vfprintf.texi: Update.
39853         * doc/functions/vprintf.texi: Update.
39854         * doc/functions/vsnprintf.texi: Update.
39855         * doc/functions/vsprintf.texi: Update.
39856
39857 2007-11-03  Bruno Haible  <bruno@clisp.org>
39858
39859         * modules/frexp-nolibm-tests: New file.
39860
39861         * modules/frexp-nolibm: New file.
39862         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39863
39864 2007-11-03  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39867         value is C99 compliant.
39868         Needed for OSF/1 5.1.
39869
39870 2007-11-03  Bruno Haible  <bruno@clisp.org>
39871
39872         Fix out-of-memory handling of vasnprintf.
39873         * lib/printf-parse.c: Include <errno.h>.
39874         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39875         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39876         is already set.
39877
39878 2007-11-02  Eric Blake  <ebb9@byu.net>
39879
39880         Fix tests on cygwin.
39881         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39882
39883 2007-11-01  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39886         warning.
39887         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39888         needed for POSIX compatibility.
39889
39890 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39891
39892         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39893         for compatibility with GNU.
39894
39895 2007-11-01  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39898         (putenv): Renamed from rpl_putenv. Change argument type from
39899         'const char *' to 'char *'.
39900         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39901         of defining putenv in config.h, just set REPLACE_PUTENV.
39902         * modules/putenv (Depends-on): Add stdlib.
39903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39904         (Include): Use <stdlib.h>.
39905         * lib/stdlib.in.h (putenv): New declaration.
39906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39907         REPLACE_PUTENV.
39908         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39909         REPLACE_PUTENV.
39910         Needed for MacOS X 10.5.0.
39911         Reported by Peter O'Gorman <peter@pogma.com>.
39912
39913 2007-11-01  Jim Meyering  <meyering@redhat.com>
39914
39915         Treat an empty date string exactly like "0".
39916         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39917         if the remaining date string (to be parsed) is empty, use "0".
39918         Reported by Mischa Molhoek and discussed in this thread:
39919         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39920
39921 2007-10-31  Bruno Haible  <bruno@clisp.org>
39922
39923         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39924         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39925         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39926         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39928         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39929
39930 2007-10-31  Bruno Haible  <bruno@clisp.org>
39931
39932         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39933         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39934         (AC_TYPE_LONG_LONG_INT): Use it.
39935         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39936         it as well.
39937         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39938         to m4/longlong.m4.
39939         * modules/stdint (Files): Remove m4/ulonglong.m4.
39940         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39941         m4/ulonglong.m4.
39942         * modules/strtoumax (Files): Likewise.
39943
39944 2007-10-30  Bruno Haible  <bruno@clisp.org>
39945
39946         * modules/xvasprintf-posix: New file.
39947         Suggested by Eric Blake.
39948
39949 2007-10-30  Bruno Haible  <bruno@clisp.org>
39950
39951         * modules/xprintf-posix-tests: New file.
39952         * tests/test-xprintf-posix.sh: New file.
39953         * tests/test-xprintf-posix.c: New file.
39954         * tests/test-xfprintf-posix.c: New file.
39955
39956         * modules/xprintf-posix: New file.
39957
39958 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39959
39960         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39961         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39962         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39963
39964 2007-10-29  Bruno Haible  <bruno@clisp.org>
39965
39966         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39967         contain the special marker '_cv_'.
39968         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39969         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39972         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39973         Reported by Ralf Wildenhues.
39974
39975 2007-10-29  Bruno Haible  <bruno@clisp.org>
39976
39977         * gnulib-tool (func_import): When --lgpl is not specified, set
39978         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39979         GPLv3.
39980         Reported by Simon Josefsson.
39981
39982 2007-10-28  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39985         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39986         HAVE_DECL_ISFINITE.
39987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39988         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39989         HAVE_DECL_ISFINITE.
39990
39991 2007-10-28  Bruno Haible  <bruno@clisp.org>
39992
39993         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39994         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39995
39996 2007-10-28  Bruno Haible  <bruno@clisp.org>
39997
39998         Fix link errors with Sun C 5.0 on Solaris 10.
39999         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40000         function is declared but not present in the compiler's libm.
40001         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40002         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40003         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40004         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40005         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40006         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40007         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40009         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40010         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40011         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40012         HAVE_DECL_FLOORL.
40013
40014 2007-10-28  Bruno Haible  <bruno@clisp.org>
40015
40016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40017         gl_FUNC_FLOORL. Cache the result.
40018         (gl_FUNC_FLOORL): Use it.
40019         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40020         gl_FUNC_CEILL. Cache the result.
40021         (gl_FUNC_CEILL): Use it.
40022
40023         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40024         gl_FUNC_FLOOR. Cache the result.
40025         (gl_FUNC_FLOOR): Use it.
40026         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40027         gl_FUNC_CEIL. Cache the result.
40028         (gl_FUNC_CEIL): Use it.
40029
40030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40031         gl_FUNC_FLOORF. Cache the result.
40032         (gl_FUNC_FLOORF): Use it.
40033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40034         gl_FUNC_CEILF. Cache the result.
40035         (gl_FUNC_CEILF): Use it.
40036
40037 2007-10-28  Bruno Haible  <bruno@clisp.org>
40038
40039         * gnulib-tool: Allow specifying the LGPL version number through
40040         --lgpl=2 or --lgpl=3.
40041         (func_usage): Document --lgpl with argument.
40042         Handle --lgpl=... arguments.
40043         (func_import): Recognize also gl_LGPL calls with an argument. When
40044         --lgpl=2 is used and the module's license is just LGPL, report an
40045         error. Set sed_transform_lib_file according to the lgpl variable. In
40046         the generated files, use --lgpl or gl_LGPL invocations with argument,
40047         if necessary.
40048         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40049         an LGPv2+ license.
40050         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40051         gl_LGPL macro.
40052
40053 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40054             Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40057         (u16_uctomb_aux): Likewise.
40058         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40059         !HAVE_INLINE.
40060         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40061
40062 2007-10-28  Bruno Haible  <bruno@clisp.org>
40063
40064         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40065         Invoke AM_GETTEXT_OPTION if it exists.
40066         * modules/vasprintf: Likewise.
40067         * modules/verror: Likewise.
40068         * modules/xprintf: Likewise.
40069         * modules/xvasprintf: Likewise.
40070
40071 2007-10-27  Ben Pfaff  <blp@gnu.org>
40072
40073         * lib/math.in.h: Define isfinite macro and prototypes for
40074         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40075         implementations.
40076         * m4/math_h.m4: New substitutions for isfinite module.
40077         * lib/isfinite.c: New file.
40078         * m4/isfinite.m4: New file.
40079         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40080         * modules/isfinite: New file.
40081         * modules/isfinite-tests: New file.
40082         * tests/tests-isfinite.c: New file.
40083         * doc/functions/isfinite.texi: Mention isfinite module.
40084         * MODULES.html.sh: Mention new module.
40085
40086 2007-10-27  Ben Pfaff  <blp@gnu.org>
40087
40088         Ralf Wildenhues reported that Tru64 4.0D declares the round
40089         functions but does not have definitions.
40090         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40091         cannot be found in any library, set the output variable to
40092         "missing" instead of "".
40093         * m4/round.m4: Also use our substitute if we cannot find round in
40094         any library, even if it is declared.
40095         * m4/roundf.m4: Likewise for roundf.
40096         * m4/roundl.m4: Likewise for roundl.
40097         * lib/math.in.h: Undefine roundf, round, roundl before defining
40098         their replacements, to allow for hypothetical systems where these
40099         may be defined as macros but not available in libraries.
40100
40101 2007-10-27  Bruno Haible  <bruno@clisp.org>
40102
40103         * doc/gnulib.texi: Invoke @firstparagraphindent.
40104         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40105         changes in gnulib.
40106         (Source changes): New section.
40107
40108 2007-10-26  Bruno Haible  <bruno@clisp.org>
40109
40110         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40111         borrowed from autoconf.
40112
40113 2007-10-26  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40116         strerror returned the empty string. Needed on HP-UX 11.00.
40117
40118 2007-10-24  Micah Cowan  <micah@cowan.name>
40119
40120         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40121         * build-aux/bootstrap: Remove support for now-unnecessary option,
40122         --cvs-user, and envvars CVS_USER, CVS_RSH.
40123
40124 2007-10-24  Jim Meyering  <meyering@redhat.com>
40125
40126         Avoid diagnostics from sha1sum when there is no cached checksum.
40127         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40128         if the po.s1 file hasn't been created yet.
40129
40130         * build-aux/bootstrap: Sync from coreutils:
40131         2007-10-24  Jim Meyering  <meyering@redhat.com>
40132         Get gnulib from the git repository, not from an obsolete cvs one.
40133         * build-aux/bootstrap: Suggestion from Micah Cowan.
40134         2007-10-04  Jim Meyering  <jim@meyering.net>
40135         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40136         (update_po_files): Work also when there are no .po files in po/.
40137
40138 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         * README: Append ".git" to git and cg examples.
40141         Problem reported by Benoit Sigoure.
40142
40143 2007-10-23  Micah Cowan  <micah@cowan.name>
40144
40145         * users.txt: Add wget.
40146
40147 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40148
40149         Fix linking of some unistdio tests on FreeBSD.
40150         * modules/unistdio/u16-vsnprintf-tests
40151         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40152         * modules/unistdio/u16-vsprintf-tests
40153         (test_u16_vsnprintf1_LDADD): Likewise.
40154         * modules/unistdio/u32-vsnprintf-tests
40155         (test_u32_vsnprintf1_LDADD): Likewise.
40156         * modules/unistdio/u32-vsprintf-tests
40157         (test_u32_vsprintf1_LDADD): Likewise.
40158         * modules/unistdio/u8-vsnprintf-tests
40159         (test_u8_vsnprintf1_LDADD): Likewise.
40160         * modules/unistdio/u8-vsprintf-tests
40161         (test_u8_vsprintf1_LDADD): Likewise.
40162         * modules/unistdio/ulc-vsnprintf-tests
40163         (test_ulc_vsnprintf1_LDADD): Likewise.
40164         * modules/unistdio/ulc-vsprintf-tests
40165         (test_ulc_vsprintf1_LDADD): Likewise.
40166
40167         Fix linking of some uniconv tests on FreeBSD.
40168         * modules/uniconv/u16-conv-from-enc-tests
40169         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40170         * modules/uniconv/u16-conv-to-enc-tests
40171         (test_u16_conv_to_enc_LDADD): Likewise.
40172         * modules/uniconv/u16-strconv-from-enc-tests
40173         (test_u16_strconv_from_enc_LDADD): Likewise.
40174         * modules/uniconv/u16-strconv-to-enc-tests
40175         (test_u16_strconv_to_enc_LDADD): Likewise.
40176         * modules/uniconv/u32-conv-from-enc-tests
40177         (test_u32_conv_from_enc_LDADD): Likewise.
40178         * modules/uniconv/u32-conv-to-enc-tests
40179         (test_u32_conv_to_enc_LDADD): Likewise.
40180         * modules/uniconv/u32-strconv-from-enc-tests
40181         (test_u32_strconv_from_enc_LDADD): Likewise.
40182         * modules/uniconv/u32-strconv-to-enc-tests
40183         (test_u32_strconv_to_enc_LDADD): Likewise.
40184         * modules/uniconv/u8-conv-from-enc-tests
40185         (test_u8_conv_from_enc_LDADD): Likewise.
40186         * modules/uniconv/u8-conv-to-enc-tests
40187         (test_u8_conv_to_enc_LDADD): Likewise.
40188         * modules/uniconv/u8-strconv-from-enc-tests
40189         (test_u8_strconv_from_enc_LDADD): Likewise.
40190         * modules/uniconv/u8-strconv-to-enc-tests
40191         (test_u8_strconv_to_enc_LDADD): Likewise.
40192
40193 2007-10-22  Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40196         size.
40197
40198 2007-10-22  Eric Blake  <ebb9@byu.net>
40199
40200         Tweak x*printf documentation.
40201         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40202         variable name and comments.
40203         Suggested by Bruno Haible.
40204
40205 2007-10-22  Bruno Haible  <bruno@clisp.org>
40206
40207         * lib/acl.c (copy_acl): Fix file name in comment.
40208
40209 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40210
40211         Fix Tru64 problem with stdbool.h.
40212         * lib/stdbool.in.h (false, true):
40213         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40214         Don't declare as an enum in this situation; it runs afoul of Tru64.
40215         Problem reported by Steven M. Schweda in
40216         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40217
40218 2007-10-22  Eric Blake  <ebb9@byu.net>
40219
40220         Also wrap vf?printf.
40221         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40222         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40223         (xvprintf, xvfprintf): New functions.
40224
40225 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40226
40227         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40228         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40229
40230         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40231         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40232
40233 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40234
40235         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40236         by Bruno Haible.
40237
40238 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40239
40240         * lib/getloadavg.c
40241         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40242         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40243
40244         * tests/test-i-ring.c: Work for C89.
40245
40246 2007-10-22  Bruno Haible  <bruno@clisp.org>
40247
40248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40249         -1u, in preprocessor expression, so that we don't test for the bug
40250         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40252
40253 2007-10-22  Eric Blake  <ebb9@byu.net>
40254
40255         * tests/test-yesno.sh: Silence stderr during test.
40256
40257 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40258
40259         * modules/crypto/gc-camellia: New file.
40260
40261         * m4/gc-camellia.m4: New file.
40262
40263         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40264
40265         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40266
40267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40268
40269         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40270         --help to stdout.  Reported by sms@antinode.org (Steven
40271         M. Schweda).
40272
40273 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40274
40275         * users.txt: Fix link to libksba.
40276
40277 2007-10-21  Ben Pfaff  <blp@gnu.org>
40278
40279         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40280         round.c roundf implementation that depends on floorf and ceilf to
40281         be tested unconditionally.
40282
40283 2007-10-21  Ben Pfaff  <blp@gnu.org>
40284
40285         * m4/check-libm-func.m4: Removed.
40286         * m4/check-math-lib.m4: New file.
40287         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40288         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40289         definition and lack of AC_LIBOBJ([roundf]).
40290         * m4/roundl.m4: Ditto, and similarly for roundl.
40291         * modules/round: Reference new m4 file.
40292         * modules/roundf: Ditto.
40293         * modules/roundl: Ditto.
40294         * tests/test-round2.c (main): Use ROUND instead of round.
40295         Bug report from Bruno Haible.
40296
40297 2007-10-21  Bruno Haible  <bruno@clisp.org>
40298
40299         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
40300         context.
40301
40302 2007-10-21  Bruno Haible  <bruno@clisp.org>
40303
40304         * tests/test-wcwidth.c (main): Allow negative result for some control
40305         characters.
40306
40307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
40308         Needed on OSF/1 5.1.
40309
40310 2007-10-21  Bruno Haible  <bruno@clisp.org>
40311
40312         * tests/test-floorf1.c: Include isnanf.h.
40313         (main): Use isnanf() instead of isnan().
40314         * tests/test-ceilf1.c: Include isnanf.h.
40315         (main): Use isnanf() instead of isnan().
40316         * tests/test-truncf1.c: Include isnanf.h.
40317         (main): Use isnanf() instead of isnan().
40318         * tests/test-roundf1.c: Include isnanf.h.
40319         (main): Use isnanf() instead of isnan().
40320
40321 2007-10-21  Eric Blake  <ebb9@byu.net>
40322
40323         * users.txt: Update URL for m4.
40324
40325 2007-10-21  Bruno Haible  <bruno@clisp.org>
40326
40327         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
40328
40329 2007-10-21  Bruno Haible  <bruno@clisp.org>
40330
40331         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
40332         Git's management files if the CVS files are not present.
40333
40334 2007-10-20  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40337         gcc-3.4.x.
40338
40339 2007-10-20  Ben Pfaff  <blp@gnu.org>
40340
40341         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40342         implementations.
40343         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40344         * lib/round.c: New file.
40345         * lib/roundf.c: New file.
40346         * lib/roundl.c: New file.
40347         * m4/round.m4: New file.
40348         * m4/roundf.m4: New file.
40349         * m4/roundl.m4: New file.
40350         * m4/check-libm-func-m4: New file.
40351         * modules/math: Replace round, roundf, roundl related @VARS@ in
40352         math.in.h.
40353         * modules/round: New file.
40354         * modules/round-tests: New file.
40355         * modules/roundf: New file.
40356         * modules/roundf-tests: New file.
40357         * modules/roundl: New file.
40358         * modules/roundl-tests: New file.
40359         * tests/test-round1.c: New file.
40360         * tests/test-round2.c: New file.
40361         * tests/test-roundf1.c: New file.
40362         * tests/test-roundf2.c: New file.
40363         * tests/test-roundl.c: New file.
40364         * doc/functions/round.texi: Mention round module.
40365         * doc/functions/roundf.texi: Mention roundf module.
40366         * doc/functions/roundl.texi: Mention roundl module.
40367         * MODULES.html.sh: Mention new modules.
40368         Thanks to Bruno Haible for suggestions.
40369
40370 2007-10-20  Jim Meyering  <meyering@redhat.com>
40371
40372         * lib/xprintf.c: Include <config.h> unconditionally.
40373
40374         Change xprintf's license to GPL.
40375         * modules/xprintf (License): s/LGPL/GPL/, since this module
40376         depends on modules (exit and exitfail) which are GPL.
40377         Suggestion from Bruno Haible.
40378
40379         xprintf fixes.
40380         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40381         Use a clearer diagnostic.
40382         Patch from Bruno Haible.
40383
40384 2007-10-20  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40387         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40389
40390 2007-10-20  Bruno Haible  <bruno@clisp.org>
40391
40392         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40393         precision in the comparison result > x - 1 or similar.
40394         * tests/test-ceilf2.c (correct_result_p): Likewise.
40395         * tests/test-truncf2.c (correct_result_p): Likewise.
40396         * tests/test-trunc2.c (correct_result_p): Likewise.
40397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40398
40399 2007-10-20  Bruno Haible  <bruno@clisp.org>
40400
40401         * modules/ceil: New file.
40402         * m4/ceil.m4: New file.
40403         * doc/functions/ceil.texi: Mention the 'ceil' module.
40404
40405 2007-10-20  Bruno Haible  <bruno@clisp.org>
40406
40407         * modules/floor: New file.
40408         * m4/floor.m4: New file.
40409         * doc/functions/floor.texi: Mention the 'floor' module.
40410
40411 2007-10-20  Bruno Haible  <bruno@clisp.org>
40412
40413         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40414         of %a.
40415         * modules/floorf-tests (Depends-on): Likewise.
40416         * modules/truncf-tests (Depends-on): Likewise.
40417         * modules/trunc-tests (Depends-on): Likewise.
40418         Reported by Ben Pfaff.
40419
40420 2007-10-19  Jim Meyering  <meyering@redhat.com>
40421
40422         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40423         Don't bother testing specific errno values.  Just test ferror.
40424
40425         New module: xprintf
40426         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40427
40428 2007-10-19  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40431         syntax.
40432         * modules/javaexec (Makefile.am): Likewise.
40433         * modules/relocatable-prog (Makefile.am): Likewise.
40434         Suggested by Jim Meyering.
40435
40436 2007-10-18  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40439         Reported by Jim Meyering.
40440
40441 2007-10-18  Eric Blake  <ebb9@byu.net>
40442
40443         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40444
40445 2007-10-18  Bruno Haible  <bruno@clisp.org>
40446
40447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40448         the format string into writable memory. Needed in Fortify conditions.
40449
40450 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40451             Bruno Haible  <bruno@clisp.org>
40452
40453         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40454         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40455         * modules/trim (Depends-on): Add mbchar.
40456         (configure.ac): Add gl_FUNC_MBRTOWC.
40457         (Makefile.am): Augment lib_SOURCES.
40458
40459 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40460
40461         Modify glob.c to use fstatat and dirfd, to simplify it.
40462         Suggested by Eric Blake.
40463         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40464         Don't include <stdbool.h>; not used.
40465         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40466         (link_exists_p): Simplify implementation, since we can now assume
40467         dirfd and fstatat.
40468         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40469
40470 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40471
40472         * gnulib-tool (func_get_dependencies): Fix sed script to
40473         match only tests.
40474
40475 2007-10-17  Bruno Haible  <bruno@clisp.org>
40476
40477         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40478         allow locale names without encoding suffix.
40479         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40481
40482 2007-10-16  Bruno Haible  <bruno@clisp.org>
40483
40484         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40485         * lib/getgroups.c (getgroups): Likewise.
40486         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40487
40488 2007-10-16  Bruno Haible  <bruno@clisp.org>
40489
40490         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40491         * modules/malloc-posix (License): Likewise.
40492         * modules/realloc-posix (License): Likewise.
40493         * modules/calloc-posix (License): Likewise.
40494         * modules/intprops (License): Change from GPL to LGPL, with
40495         Paul Eggert's approval.
40496
40497 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40498
40499         Merge glibc changes into lib/glob.c.
40500
40501         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40502         2007-10-15 04:59:03 UTC.  Here are the changes:
40503
40504         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40505
40506         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40507
40508         * lib/glob.c: Add some branch prediction throughout.
40509
40510         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40511
40512         [BZ #5103]
40513         * lib/glob.c (glob): Recognize patterns starting \/.
40514
40515         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40516
40517         [BZ #3996]
40518         * lib/glob.c (attribute_hidden): Define if not defined.
40519         (glob): Unescape dirname, filename or username when needed and not
40520         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40521         is NULL.  Handle unescaped [ in pattern without closing ].
40522         Don't pass GLOB_CHECK down to recursive glob for directories.
40523         (__glob_pattern_type): New function.
40524         (__glob_pattern_p): Implement using __glob_pattern_type.
40525         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40526         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40527         Remove unreachable code.
40528
40529         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40530
40531         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40532         explain why there are no leaks.
40533
40534         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40535
40536         [BZ #3253]
40537         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40538         time, rather allocate increasingly bigger arrays of pointers, if
40539         possible with alloca, if too large with malloc.
40540
40541 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40542
40543         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40544         Problem reported by H.Merijn Brand in
40545         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40546         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40548
40549 2007-10-15  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40552         with explicit rpl_ prefix.
40553         * lib/fopen.c (fopen): Likewise.
40554         * lib/freopen.c (freopen): Likewise.
40555         * lib/iconv.c (iconv): Likewise.
40556         * lib/iconv_close.c (iconv_close): Likewise.
40557
40558 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40559
40560         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40561
40562 2007-10-15  Bruno Haible  <bruno@clisp.org>
40563
40564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40565         <stddef.h> instead of <stdlib.h> since we only need NULL.
40566         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40567
40568 2007-10-15  Bruno Haible  <bruno@clisp.org>
40569
40570         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40571         Replace paragraph talking about LIBOBJS.
40572         Reported by Colin Watson <cjwatson@debian.org>.
40573
40574 2007-10-15  Bruno Haible  <bruno@clisp.org>
40575
40576         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40577         <stdlib.h> before using NULL.
40578
40579 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40580
40581         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40582         Reported by Albert Chin <china@thewrittenword.com>.
40583
40584 2007-10-14  Bruno Haible  <bruno@clisp.org>
40585
40586         * modules/iconv_open-utf-tests: New file.
40587         * tests/test-iconv-utf.c: New file.
40588
40589         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40590         * modules/iconv_open-utf: New file.
40591         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40592         (iconv, iconv_close): New declarations.
40593         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40594         be defined.
40595         (iconv_open): Add special handling of conversion between UTF-8 and
40596         UTF-{16,32}{BE,LE}.
40597         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40598         * lib/iconv_close.c: New file.
40599         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40600         gl_FUNC_ICONV_OPEN.
40601         (gl_FUNC_ICONV_OPEN): Use it.
40602         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40603         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40604         and REPLACE_ICONV_UTF.
40605         * modules/iconv_open (Depends-on): Add c-strcase.
40606         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40607         ICONV_CONST.
40608         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40609
40610 2007-10-13  Albert Chin  <china@thewrittenword.com>
40611             Bruno Haible  <bruno@clisp.org>
40612
40613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40614         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40615
40616 2007-10-13  Bruno Haible  <bruno@clisp.org>
40617
40618         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40619         defined, use the ISO C99 inline semantics.
40620         * lib/argp.h (ARGP_EI): Likewise.
40621
40622 2007-10-13  Bruno Haible  <bruno@clisp.org>
40623
40624         Handle 'inline' change in gcc 4.3.0.
40625         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40626         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40627         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40628         argp_fmtstream_point): Disable 'extern' declaration if the function
40629         definition is going to be provided inline.
40630         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40631         semantics, not the ISO C99 inline semantics.
40632         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40633         'extern' declaration if the function definition is going to be provided
40634         inline.
40635         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40636         the GNU C inline semantics, not the ISO C99 inline semantics. With
40637         GCC 4.2, avoid a warning.
40638
40639 2007-10-13  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/freading.h (freading): Enable the use of __freading for
40642         glibc >= 2.7.
40643         * lib/freading.c (freading): Likewise.
40644
40645 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40646
40647         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40648         "warning: C99 inline functions are not supported; using GNU89".
40649
40650 2007-10-12  Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40653         of 2.
40654         * tests/test-ceilf2.c: New file.
40655         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40656
40657         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40658         * modules/ceilf-tests: Update.
40659
40660 2007-10-12  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40663         of 2.
40664         * tests/test-floorf2.c: New file.
40665         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40666
40667         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40668         * modules/floorf-tests: Update.
40669
40670 2007-10-12  Bruno Haible  <bruno@clisp.org>
40671
40672         * tests/test-trunc2.c: New file.
40673         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40674
40675         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40676         * modules/trunc-tests: Update.
40677
40678 2007-10-12  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40681         of 2.
40682         * tests/test-truncf2.c: New file.
40683         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40684
40685         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40686         * modules/truncf-tests: Update.
40687
40688 2007-10-11  Eric Blake  <ebb9@byu.net>
40689
40690         Don't claim strerror is broken on Interix.
40691         * doc/functions/strerror.texi (strerror): Known broken systems are
40692         now Solaris 8, and not Interix.
40693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40694         Interix on cross-compile.
40695         Reported by Martin Koeppe in
40696         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40697
40698 2007-10-11  Bruno Haible  <bruno@clisp.org>
40699
40700         * modules/i-ring-tests: New file.
40701         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40702         instead of assert.
40703
40704 2007-10-11  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/filenamecat-tests: New file.
40707         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40708         * lib/filenamecat.c: Remove test code.
40709
40710 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40713
40714         * lib/strerror.c: Include <string.h> always, to test interface,
40715         and to remove the need for the dummy.
40716         Include intprops.h to compute width instead of doing it ourselves
40717         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40718         (strerror): Define it to return NULL if there's no system strerror.
40719         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40720         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40721         ancient pre-strerror Unix systems well any more.  Saying "unknown
40722         system error" is enough.
40723         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40724         simpler strerror.c implementation.
40725         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40726         Simplify the tests to reflect the simpler strerror implementation.
40727         * modules/strerror (Depends-on): Add intprops.
40728
40729 2007-10-09  Eric Blake  <ebb9@byu.net>
40730
40731         Silence test-fpending.
40732         * modules/fpending-tests (Files): Add wrapper script.
40733         * tests/test-fpending.sh: New file.
40734
40735 2007-10-09  Bruno Haible  <bruno@clisp.org>
40736
40737         * MODULES.html.sh (func_module): Don't create a hyperlink for
40738         function names like 'printf_frexp'.
40739         (Misc): Add crc, memxor.
40740         (Characteristics of floating types): New section.
40741         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40742         isnanf-nolibm, signbit, trunc, truncf, truncl.
40743         (Enhancements for ISO C 99 functions): New subsection Input/output.
40744         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40745         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40746         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40747         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40748         (Enhancements for POSIX:2001 functions): Add chdir-long.
40749         (File system functions): Add areadlink, chdir-safer, read-file.
40750         Remove cycle-check.
40751         (File system as inode set): New section.
40752         (Date and time): Add gethrxtime.
40753         (Multithreading): Add openmp.
40754         (Internationalization functions): Add localename.
40755         (Unicode string functions): Add unistr/u*-mbsnlen.
40756         (Support for maintaining and releasing projects): Add git-version-gen.
40757         (Lone files): Remove directories.
40758
40759 2007-10-08  Ben Pfaff  <blp@gnu.org>
40760
40761         * lib/xmalloca.h: Fix typo in comment.
40762
40763 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40764
40765         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40766         when avoiding problems with integer overflow.  Use a portable test
40767         instead.
40768
40769 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40770
40771         * modules/dummy (License): Change to LGPLv2+.
40772         * modules/float (License): Likewise
40773         * modules/realloc (License): Likewise
40774         * modules/stdlib (License): Likewise
40775
40776 2007-10-07  Bruno Haible  <bruno@clisp.org>
40777
40778         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40779         * floor.c (TWO_MANT_DIG): Likewise.
40780         * ceil.c (TWO_MANT_DIG): Likewise.
40781         Reported by Ben Pfaff.
40782
40783 2007-10-07  Bruno Haible  <bruno@clisp.org>
40784
40785         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40786         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40787         * lib/frexp.c (FUNC): Likewise.
40788         * lib/printf-frexp.h (printf_frexp): Likewise.
40789         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40790         * lib/printf-frexp.c (FUNC): Likewise.
40791         Suggested by Jim Meyering.
40792
40793 2007-10-07  Jim Meyering  <meyering@redhat.com>
40794
40795         Make xnanosleep's integer overflow test more robust.
40796         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40797         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40798
40799 2007-10-07  Bruno Haible  <bruno@clisp.org>
40800
40801         * NEWS: Mention the license change.
40802
40803         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40804         abbreviations in the modules files.
40805
40806         Change copyright notice from GPLv2+ to GPLv3+.
40807         * README: Change copyright notice.
40808         * MODULES.html.sh: Likewise.
40809         * build-aux/bootstrap.conf: Likewise.
40810         * build-aux/config.libpath: Likewise.
40811         * build-aux/csharpcomp.sh.in: Likewise.
40812         * build-aux/csharpexec.sh.in: Likewise.
40813         * build-aux/install-reloc: Likewise.
40814         * build-aux/javacomp.sh.in: Likewise.
40815         * build-aux/javaexec.sh.in: Likewise.
40816         * build-aux/ldd.sh.in: Likewise.
40817         * build-aux/reloc-ldflags: Likewise.
40818         * build-aux/relocatable.sh.in: Likewise.
40819         * build-aux/x-to-1.in: Likewise.
40820         * check-module: Likewise.
40821         * config/srclistvars.sh: Likewise.
40822         * gnulib-tool: Likewise.
40823         * lib/acl-internal.h: Likewise.
40824         * lib/acl.c: Likewise.
40825         * lib/acl.h: Likewise.
40826         * lib/acl_entries.c: Likewise.
40827         * lib/areadlink-with-size.c: Likewise.
40828         * lib/areadlink.c: Likewise.
40829         * lib/areadlink.h: Likewise.
40830         * lib/argmatch.c: Likewise.
40831         * lib/argmatch.h: Likewise.
40832         * lib/argp-ba.c: Likewise.
40833         * lib/argp-eexst.c: Likewise.
40834         * lib/argp-fmtstream.c: Likewise.
40835         * lib/argp-fmtstream.h: Likewise.
40836         * lib/argp-fs-xinl.c: Likewise.
40837         * lib/argp-help.c: Likewise.
40838         * lib/argp-namefrob.h: Likewise.
40839         * lib/argp-parse.c: Likewise.
40840         * lib/argp-pin.c: Likewise.
40841         * lib/argp-pv.c: Likewise.
40842         * lib/argp-pvh.c: Likewise.
40843         * lib/argp-xinl.c: Likewise.
40844         * lib/argp.h: Likewise.
40845         * lib/at-func.c: Likewise.
40846         * lib/atanl.c: Likewise.
40847         * lib/backupfile.c: Likewise.
40848         * lib/backupfile.h: Likewise.
40849         * lib/basename.c: Likewise.
40850         * lib/binary-io.h: Likewise.
40851         * lib/byteswap.in.h: Likewise.
40852         * lib/c-stack.c: Likewise.
40853         * lib/c-stack.h: Likewise.
40854         * lib/c-strcasestr.c: Likewise.
40855         * lib/c-strcasestr.h: Likewise.
40856         * lib/c-strstr.c: Likewise.
40857         * lib/c-strstr.h: Likewise.
40858         * lib/c-strtod.c: Likewise.
40859         * lib/calloc.c: Likewise.
40860         * lib/canon-host.c: Likewise.
40861         * lib/canon-host.h: Likewise.
40862         * lib/canonicalize-lgpl.c: Likewise.
40863         * lib/canonicalize.c: Likewise.
40864         * lib/canonicalize.h: Likewise.
40865         * lib/ceil.c: Likewise.
40866         * lib/ceilf.c: Likewise.
40867         * lib/ceill.c: Likewise.
40868         * lib/chdir-long.c: Likewise.
40869         * lib/chdir-long.h: Likewise.
40870         * lib/chdir-safer.c: Likewise.
40871         * lib/chdir-safer.h: Likewise.
40872         * lib/chown.c: Likewise.
40873         * lib/classpath.c: Likewise.
40874         * lib/classpath.h: Likewise.
40875         * lib/clean-temp.c: Likewise.
40876         * lib/clean-temp.h: Likewise.
40877         * lib/cloexec.c: Likewise.
40878         * lib/close-stream.c: Likewise.
40879         * lib/closein.c: Likewise.
40880         * lib/closein.h: Likewise.
40881         * lib/closeout.c: Likewise.
40882         * lib/closeout.h: Likewise.
40883         * lib/concat-filename.c: Likewise.
40884         * lib/copy-file.c: Likewise.
40885         * lib/copy-file.h: Likewise.
40886         * lib/count-one-bits.h: Likewise.
40887         * lib/crc.c: Likewise.
40888         * lib/crc.h: Likewise.
40889         * lib/creat-safer.c: Likewise.
40890         * lib/csharpcomp.c: Likewise.
40891         * lib/csharpcomp.h: Likewise.
40892         * lib/csharpexec.c: Likewise.
40893         * lib/csharpexec.h: Likewise.
40894         * lib/cycle-check.c: Likewise.
40895         * lib/cycle-check.h: Likewise.
40896         * lib/diacrit.c: Likewise.
40897         * lib/diacrit.h: Likewise.
40898         * lib/diffseq.h: Likewise.
40899         * lib/dirchownmod.c: Likewise.
40900         * lib/dirent.in.h: Likewise.
40901         * lib/dirfd.c: Likewise.
40902         * lib/dirfd.h: Likewise.
40903         * lib/dirname.c: Likewise.
40904         * lib/dirname.h: Likewise.
40905         * lib/dummy.c: Likewise.
40906         * lib/dup-safer.c: Likewise.
40907         * lib/dup2.c: Likewise.
40908         * lib/eealloc.h: Likewise.
40909         * lib/error.c: Likewise.
40910         * lib/error.h: Likewise.
40911         * lib/euidaccess.c: Likewise.
40912         * lib/exclude.c: Likewise.
40913         * lib/exclude.h: Likewise.
40914         * lib/execute.c: Likewise.
40915         * lib/execute.h: Likewise.
40916         * lib/exitfail.c: Likewise.
40917         * lib/exitfail.h: Likewise.
40918         * lib/expl.c: Likewise.
40919         * lib/fatal-signal.c: Likewise.
40920         * lib/fatal-signal.h: Likewise.
40921         * lib/fbufmode.c: Likewise.
40922         * lib/fbufmode.h: Likewise.
40923         * lib/fchdir.c: Likewise.
40924         * lib/fchmodat.c: Likewise.
40925         * lib/fchownat.c: Likewise.
40926         * lib/fcntl--.h: Likewise.
40927         * lib/fcntl-safer.h: Likewise.
40928         * lib/fcntl.in.h: Likewise.
40929         * lib/fd-safer.c: Likewise.
40930         * lib/fflush.c: Likewise.
40931         * lib/file-has-acl.c: Likewise.
40932         * lib/file-set.c: Likewise.
40933         * lib/file-type.c: Likewise.
40934         * lib/file-type.h: Likewise.
40935         * lib/fileblocks.c: Likewise.
40936         * lib/filemode.c: Likewise.
40937         * lib/filemode.h: Likewise.
40938         * lib/filename.h: Likewise.
40939         * lib/filenamecat.c: Likewise.
40940         * lib/filenamecat.h: Likewise.
40941         * lib/findprog.c: Likewise.
40942         * lib/findprog.h: Likewise.
40943         * lib/float.in.h: Likewise.
40944         * lib/floor.c: Likewise.
40945         * lib/floorf.c: Likewise.
40946         * lib/floorl.c: Likewise.
40947         * lib/fopen-safer.c: Likewise.
40948         * lib/fopen.c: Likewise.
40949         * lib/fpending.c: Likewise.
40950         * lib/fpending.h: Likewise.
40951         * lib/fprintf.c: Likewise.
40952         * lib/fprintftime.h: Likewise.
40953         * lib/fpucw.h: Likewise.
40954         * lib/fpurge.c: Likewise.
40955         * lib/fpurge.h: Likewise.
40956         * lib/freadable.c: Likewise.
40957         * lib/freadable.h: Likewise.
40958         * lib/freadahead.c: Likewise.
40959         * lib/freadahead.h: Likewise.
40960         * lib/freading.c: Likewise.
40961         * lib/freading.h: Likewise.
40962         * lib/free.c: Likewise.
40963         * lib/freopen.c: Likewise.
40964         * lib/frexp.c: Likewise.
40965         * lib/frexpl.c: Likewise.
40966         * lib/fseek.c: Likewise.
40967         * lib/fseterr.c: Likewise.
40968         * lib/fseterr.h: Likewise.
40969         * lib/fstatat.c: Likewise.
40970         * lib/fstrcmp.c: Likewise.
40971         * lib/fstrcmp.h: Likewise.
40972         * lib/fsusage.c: Likewise.
40973         * lib/fsusage.h: Likewise.
40974         * lib/ftell.c: Likewise.
40975         * lib/ftello.c: Likewise.
40976         * lib/fts-cycle.c: Likewise.
40977         * lib/fts.c: Likewise.
40978         * lib/fts_.h: Likewise.
40979         * lib/full-read.c: Likewise.
40980         * lib/full-read.h: Likewise.
40981         * lib/full-write.c: Likewise.
40982         * lib/full-write.h: Likewise.
40983         * lib/fwritable.c: Likewise.
40984         * lib/fwritable.h: Likewise.
40985         * lib/fwriteerror.c: Likewise.
40986         * lib/fwriteerror.h: Likewise.
40987         * lib/fwriting.c: Likewise.
40988         * lib/fwriting.h: Likewise.
40989         * lib/gcd.c: Likewise.
40990         * lib/gcd.h: Likewise.
40991         * lib/getcwd.c: Likewise.
40992         * lib/getdate.h: Likewise.
40993         * lib/getdate.y: Likewise.
40994         * lib/getdomainname.c: Likewise.
40995         * lib/getdomainname.h: Likewise.
40996         * lib/getgroups.c: Likewise.
40997         * lib/gethostname.c: Likewise.
40998         * lib/gethrxtime.c: Likewise.
40999         * lib/gethrxtime.h: Likewise.
41000         * lib/getloadavg.c: Likewise.
41001         * lib/getndelim2.c: Likewise.
41002         * lib/getndelim2.h: Likewise.
41003         * lib/getnline.c: Likewise.
41004         * lib/getnline.h: Likewise.
41005         * lib/getopt.c: Likewise.
41006         * lib/getopt.in.h: Likewise.
41007         * lib/getopt1.c: Likewise.
41008         * lib/getopt_int.h: Likewise.
41009         * lib/getpagesize.h: Likewise.
41010         * lib/getsubopt.c: Likewise.
41011         * lib/gettime.c: Likewise.
41012         * lib/getugroups.c: Likewise.
41013         * lib/getugroups.h: Likewise.
41014         * lib/getusershell.c: Likewise.
41015         * lib/gl_anyavltree_list1.h: Likewise.
41016         * lib/gl_anyavltree_list2.h: Likewise.
41017         * lib/gl_anyhash_list1.h: Likewise.
41018         * lib/gl_anyhash_list2.h: Likewise.
41019         * lib/gl_anylinked_list1.h: Likewise.
41020         * lib/gl_anylinked_list2.h: Likewise.
41021         * lib/gl_anyrbtree_list1.h: Likewise.
41022         * lib/gl_anyrbtree_list2.h: Likewise.
41023         * lib/gl_anytree_list1.h: Likewise.
41024         * lib/gl_anytree_list2.h: Likewise.
41025         * lib/gl_anytree_oset.h: Likewise.
41026         * lib/gl_anytreehash_list1.h: Likewise.
41027         * lib/gl_anytreehash_list2.h: Likewise.
41028         * lib/gl_array_list.c: Likewise.
41029         * lib/gl_array_list.h: Likewise.
41030         * lib/gl_array_oset.c: Likewise.
41031         * lib/gl_array_oset.h: Likewise.
41032         * lib/gl_avltree_list.c: Likewise.
41033         * lib/gl_avltree_list.h: Likewise.
41034         * lib/gl_avltree_oset.c: Likewise.
41035         * lib/gl_avltree_oset.h: Likewise.
41036         * lib/gl_avltreehash_list.c: Likewise.
41037         * lib/gl_avltreehash_list.h: Likewise.
41038         * lib/gl_carray_list.c: Likewise.
41039         * lib/gl_carray_list.h: Likewise.
41040         * lib/gl_linked_list.c: Likewise.
41041         * lib/gl_linked_list.h: Likewise.
41042         * lib/gl_linkedhash_list.c: Likewise.
41043         * lib/gl_linkedhash_list.h: Likewise.
41044         * lib/gl_list.c: Likewise.
41045         * lib/gl_list.h: Likewise.
41046         * lib/gl_oset.c: Likewise.
41047         * lib/gl_oset.h: Likewise.
41048         * lib/gl_rbtree_list.c: Likewise.
41049         * lib/gl_rbtree_list.h: Likewise.
41050         * lib/gl_rbtree_oset.c: Likewise.
41051         * lib/gl_rbtree_oset.h: Likewise.
41052         * lib/gl_rbtreehash_list.c: Likewise.
41053         * lib/gl_rbtreehash_list.h: Likewise.
41054         * lib/gl_sublist.c: Likewise.
41055         * lib/gl_sublist.h: Likewise.
41056         * lib/group-member.c: Likewise.
41057         * lib/group-member.h: Likewise.
41058         * lib/hard-locale.c: Likewise.
41059         * lib/hard-locale.h: Likewise.
41060         * lib/hash-pjw.c: Likewise.
41061         * lib/hash-pjw.h: Likewise.
41062         * lib/hash-triple.c: Likewise.
41063         * lib/hash.c: Likewise.
41064         * lib/hash.h: Likewise.
41065         * lib/human.c: Likewise.
41066         * lib/human.h: Likewise.
41067         * lib/i-ring.c: Likewise.
41068         * lib/i-ring.h: Likewise.
41069         * lib/idcache.c: Likewise.
41070         * lib/imaxabs.c: Likewise.
41071         * lib/imaxdiv.c: Likewise.
41072         * lib/inet_pton.c: Likewise.
41073         * lib/inet_pton.h: Likewise.
41074         * lib/intprops.h: Likewise.
41075         * lib/inttostr.c: Likewise.
41076         * lib/inttostr.h: Likewise.
41077         * lib/inttypes.in.h: Likewise.
41078         * lib/isapipe.c: Likewise.
41079         * lib/isdir.c: Likewise.
41080         * lib/isnan.c: Likewise.
41081         * lib/isnan.h: Likewise.
41082         * lib/isnanf.c: Likewise.
41083         * lib/isnanf.h: Likewise.
41084         * lib/isnanl-nolibm.h: Likewise.
41085         * lib/isnanl.c: Likewise.
41086         * lib/isnanl.h: Likewise.
41087         * lib/javacomp.c: Likewise.
41088         * lib/javacomp.h: Likewise.
41089         * lib/javaexec.c: Likewise.
41090         * lib/javaexec.h: Likewise.
41091         * lib/javaversion.c: Likewise.
41092         * lib/javaversion.h: Likewise.
41093         * lib/javaversion.java: Likewise.
41094         * lib/lbrkprop.h: Likewise.
41095         * lib/lchmod.h: Likewise.
41096         * lib/lchown.c: Likewise.
41097         * lib/ldexpl.c: Likewise.
41098         * lib/linebreak.c: Likewise.
41099         * lib/linebreak.h: Likewise.
41100         * lib/linebuffer.c: Likewise.
41101         * lib/linebuffer.h: Likewise.
41102         * lib/locale.in.h: Likewise.
41103         * lib/logl.c: Likewise.
41104         * lib/long-options.c: Likewise.
41105         * lib/long-options.h: Likewise.
41106         * lib/lstat.c: Likewise.
41107         * lib/lstat.h: Likewise.
41108         * lib/math.in.h: Likewise.
41109         * lib/mbchar.c: Likewise.
41110         * lib/mbchar.h: Likewise.
41111         * lib/mbfile.h: Likewise.
41112         * lib/mbiter.h: Likewise.
41113         * lib/mbscasecmp.c: Likewise.
41114         * lib/mbscasestr.c: Likewise.
41115         * lib/mbschr.c: Likewise.
41116         * lib/mbscspn.c: Likewise.
41117         * lib/mbslen.c: Likewise.
41118         * lib/mbsncasecmp.c: Likewise.
41119         * lib/mbsnlen.c: Likewise.
41120         * lib/mbspbrk.c: Likewise.
41121         * lib/mbspcasecmp.c: Likewise.
41122         * lib/mbsrchr.c: Likewise.
41123         * lib/mbssep.c: Likewise.
41124         * lib/mbsspn.c: Likewise.
41125         * lib/mbsstr.c: Likewise.
41126         * lib/mbstok_r.c: Likewise.
41127         * lib/mbswidth.c: Likewise.
41128         * lib/mbswidth.h: Likewise.
41129         * lib/mbuiter.h: Likewise.
41130         * lib/memcasecmp.c: Likewise.
41131         * lib/memcasecmp.h: Likewise.
41132         * lib/memchr.c: Likewise.
41133         * lib/memcmp.c: Likewise.
41134         * lib/memcoll.c: Likewise.
41135         * lib/memcoll.h: Likewise.
41136         * lib/memcpy.c: Likewise.
41137         * lib/memrchr.c: Likewise.
41138         * lib/mkancesdirs.c: Likewise.
41139         * lib/mkdir-p.c: Likewise.
41140         * lib/mkdir-p.h: Likewise.
41141         * lib/mkdir.c: Likewise.
41142         * lib/mkdirat.c: Likewise.
41143         * lib/mkdtemp.c: Likewise.
41144         * lib/mkstemp-safer.c: Likewise.
41145         * lib/mkstemp.c: Likewise.
41146         * lib/modechange.c: Likewise.
41147         * lib/modechange.h: Likewise.
41148         * lib/mountlist.c: Likewise.
41149         * lib/mountlist.h: Likewise.
41150         * lib/mpsort.c: Likewise.
41151         * lib/nanosleep.c: Likewise.
41152         * lib/obstack.c: Likewise.
41153         * lib/obstack.h: Likewise.
41154         * lib/open-safer.c: Likewise.
41155         * lib/open.c: Likewise.
41156         * lib/openat-die.c: Likewise.
41157         * lib/openat-priv.h: Likewise.
41158         * lib/openat-proc.c: Likewise.
41159         * lib/openat.c: Likewise.
41160         * lib/openat.h: Likewise.
41161         * lib/pagealign_alloc.c: Likewise.
41162         * lib/pagealign_alloc.h: Likewise.
41163         * lib/physmem.c: Likewise.
41164         * lib/physmem.h: Likewise.
41165         * lib/pipe-safer.c: Likewise.
41166         * lib/pipe.c: Likewise.
41167         * lib/pipe.h: Likewise.
41168         * lib/posixtm.c: Likewise.
41169         * lib/posixtm.h: Likewise.
41170         * lib/posixver.c: Likewise.
41171         * lib/printf-frexp.c: Likewise.
41172         * lib/printf-frexp.h: Likewise.
41173         * lib/printf-frexpl.c: Likewise.
41174         * lib/printf-frexpl.h: Likewise.
41175         * lib/printf.c: Likewise.
41176         * lib/progname.c: Likewise.
41177         * lib/progname.h: Likewise.
41178         * lib/progreloc.c: Likewise.
41179         * lib/putenv.c: Likewise.
41180         * lib/quote.c: Likewise.
41181         * lib/quote.h: Likewise.
41182         * lib/quotearg.c: Likewise.
41183         * lib/quotearg.h: Likewise.
41184         * lib/raise.c: Likewise.
41185         * lib/readline.c: Likewise.
41186         * lib/readline.h: Likewise.
41187         * lib/readlink.c: Likewise.
41188         * lib/readtokens.c: Likewise.
41189         * lib/readtokens.h: Likewise.
41190         * lib/readtokens0.c: Likewise.
41191         * lib/readtokens0.h: Likewise.
41192         * lib/readutmp.c: Likewise.
41193         * lib/readutmp.h: Likewise.
41194         * lib/realloc.c: Likewise.
41195         * lib/relocwrapper.c: Likewise.
41196         * lib/rename-dest-slash.c: Likewise.
41197         * lib/rename.c: Likewise.
41198         * lib/rmdir.c: Likewise.
41199         * lib/rpmatch.c: Likewise.
41200         * lib/safe-read.c: Likewise.
41201         * lib/safe-read.h: Likewise.
41202         * lib/safe-write.c: Likewise.
41203         * lib/safe-write.h: Likewise.
41204         * lib/same-inode.h: Likewise.
41205         * lib/same.c: Likewise.
41206         * lib/same.h: Likewise.
41207         * lib/save-cwd.c: Likewise.
41208         * lib/save-cwd.h: Likewise.
41209         * lib/savedir.c: Likewise.
41210         * lib/savedir.h: Likewise.
41211         * lib/savewd.c: Likewise.
41212         * lib/savewd.h: Likewise.
41213         * lib/search.in.h: Likewise.
41214         * lib/setenv.c: Likewise.
41215         * lib/setenv.h: Likewise.
41216         * lib/settime.c: Likewise.
41217         * lib/sh-quote.c: Likewise.
41218         * lib/sh-quote.h: Likewise.
41219         * lib/sig2str.c: Likewise.
41220         * lib/sig2str.h: Likewise.
41221         * lib/signal.in.h: Likewise.
41222         * lib/signbitd.c: Likewise.
41223         * lib/signbitf.c: Likewise.
41224         * lib/signbitl.c: Likewise.
41225         * lib/sigprocmask.c: Likewise.
41226         * lib/sincosl.c: Likewise.
41227         * lib/sleep.c: Likewise.
41228         * lib/sprintf.c: Likewise.
41229         * lib/sqrtl.c: Likewise.
41230         * lib/stat-time.h: Likewise.
41231         * lib/stdio--.h: Likewise.
41232         * lib/stdio-safer.h: Likewise.
41233         * lib/stdlib--.h: Likewise.
41234         * lib/stdlib-safer.h: Likewise.
41235         * lib/stdlib.in.h: Likewise.
41236         * lib/stpcpy.c: Likewise.
41237         * lib/stpncpy.c: Likewise.
41238         * lib/strchrnul.c: Likewise.
41239         * lib/strcspn.c: Likewise.
41240         * lib/strerror.c: Likewise.
41241         * lib/strftime.c: Likewise.
41242         * lib/strftime.h: Likewise.
41243         * lib/striconveh.c: Likewise.
41244         * lib/striconveh.h: Likewise.
41245         * lib/striconveha.c: Likewise.
41246         * lib/striconveha.h: Likewise.
41247         * lib/stripslash.c: Likewise.
41248         * lib/strnlen1.c: Likewise.
41249         * lib/strnlen1.h: Likewise.
41250         * lib/strtod.c: Likewise.
41251         * lib/strtoimax.c: Likewise.
41252         * lib/strtok_r.c: Likewise.
41253         * lib/strtol.c: Likewise.
41254         * lib/strtoll.c: Likewise.
41255         * lib/strtoul.c: Likewise.
41256         * lib/strtoull.c: Likewise.
41257         * lib/sysexits.in.h: Likewise.
41258         * lib/tempname.c: Likewise.
41259         * lib/tempname.h: Likewise.
41260         * lib/timespec.h: Likewise.
41261         * lib/tls.c: Likewise.
41262         * lib/tls.h: Likewise.
41263         * lib/tmpdir.c: Likewise.
41264         * lib/tmpdir.h: Likewise.
41265         * lib/tmpfile-safer.c: Likewise.
41266         * lib/tmpfile.c: Likewise.
41267         * lib/trigl.c: Likewise.
41268         * lib/trigl.h: Likewise.
41269         * lib/trim.c: Likewise.
41270         * lib/trim.h: Likewise.
41271         * lib/trunc.c: Likewise.
41272         * lib/truncf.c: Likewise.
41273         * lib/truncl.c: Likewise.
41274         * lib/tsearch.c: Likewise.
41275         * lib/unicodeio.c: Likewise.
41276         * lib/unicodeio.h: Likewise.
41277         * lib/unistd--.h: Likewise.
41278         * lib/unistd-safer.h: Likewise.
41279         * lib/unistdio/ulc-fprintf.c: Likewise.
41280         * lib/unistdio/ulc-vfprintf.c: Likewise.
41281         * lib/unlinkdir.c: Likewise.
41282         * lib/unlinkdir.h: Likewise.
41283         * lib/unlocked-io.h: Likewise.
41284         * lib/unsetenv.c: Likewise.
41285         * lib/userspec.c: Likewise.
41286         * lib/utime.c: Likewise.
41287         * lib/utimecmp.c: Likewise.
41288         * lib/utimecmp.h: Likewise.
41289         * lib/utimens.c: Likewise.
41290         * lib/verify.h: Likewise.
41291         * lib/verror.c: Likewise.
41292         * lib/verror.h: Likewise.
41293         * lib/version-etc-fsf.c: Likewise.
41294         * lib/version-etc.c: Likewise.
41295         * lib/version-etc.h: Likewise.
41296         * lib/vfprintf.c: Likewise.
41297         * lib/vprintf.c: Likewise.
41298         * lib/vsprintf.c: Likewise.
41299         * lib/w32spawn.h: Likewise.
41300         * lib/wait-process.c: Likewise.
41301         * lib/wait-process.h: Likewise.
41302         * lib/wcwidth.c: Likewise.
41303         * lib/write-any-file.c: Likewise.
41304         * lib/xalloc-die.c: Likewise.
41305         * lib/xalloc.h: Likewise.
41306         * lib/xasprintf.c: Likewise.
41307         * lib/xgetcwd.c: Likewise.
41308         * lib/xgetcwd.h: Likewise.
41309         * lib/xgetdomainname.c: Likewise.
41310         * lib/xgetdomainname.h: Likewise.
41311         * lib/xgethostname.c: Likewise.
41312         * lib/xmalloc.c: Likewise.
41313         * lib/xmalloca.c: Likewise.
41314         * lib/xmalloca.h: Likewise.
41315         * lib/xmemcoll.c: Likewise.
41316         * lib/xnanosleep.c: Likewise.
41317         * lib/xreadlink.c: Likewise.
41318         * lib/xreadlink.h: Likewise.
41319         * lib/xsetenv.c: Likewise.
41320         * lib/xsetenv.h: Likewise.
41321         * lib/xstriconv.c: Likewise.
41322         * lib/xstriconv.h: Likewise.
41323         * lib/xstrndup.c: Likewise.
41324         * lib/xstrndup.h: Likewise.
41325         * lib/xstrtod.c: Likewise.
41326         * lib/xstrtod.h: Likewise.
41327         * lib/xstrtol-error.c: Likewise.
41328         * lib/xstrtol.c: Likewise.
41329         * lib/xstrtol.h: Likewise.
41330         * lib/xtime.h: Likewise.
41331         * lib/xvasprintf.c: Likewise.
41332         * lib/xvasprintf.h: Likewise.
41333         * lib/yesno.c: Likewise.
41334         * lib/yesno.h: Likewise.
41335         * posix-modules: Likewise.
41336         * tests/test-alloca-opt.c: Likewise.
41337         * tests/test-arcfour.c: Likewise.
41338         * tests/test-arctwo.c: Likewise.
41339         * tests/test-argmatch.c: Likewise.
41340         * tests/test-argp-2.sh: Likewise.
41341         * tests/test-argp.c: Likewise.
41342         * tests/test-arpa_inet.c: Likewise.
41343         * tests/test-array_list.c: Likewise.
41344         * tests/test-array_oset.c: Likewise.
41345         * tests/test-atexit.c: Likewise.
41346         * tests/test-avltree_list.c: Likewise.
41347         * tests/test-avltree_oset.c: Likewise.
41348         * tests/test-avltreehash_list.c: Likewise.
41349         * tests/test-base64.c: Likewise.
41350         * tests/test-binary-io.c: Likewise.
41351         * tests/test-byteswap.c: Likewise.
41352         * tests/test-c-ctype.c: Likewise.
41353         * tests/test-c-strcasecmp.c: Likewise.
41354         * tests/test-c-strcasestr.c: Likewise.
41355         * tests/test-c-strncasecmp.c: Likewise.
41356         * tests/test-c-strstr.c: Likewise.
41357         * tests/test-canonicalize-lgpl.c: Likewise.
41358         * tests/test-canonicalize.c: Likewise.
41359         * tests/test-carray_list.c: Likewise.
41360         * tests/test-ceilf.c: Likewise.
41361         * tests/test-ceill.c: Likewise.
41362         * tests/test-count-one-bits.c: Likewise.
41363         * tests/test-crc.c: Likewise.
41364         * tests/test-dirname.c: Likewise.
41365         * tests/test-fbufmode.c: Likewise.
41366         * tests/test-fcntl.c: Likewise.
41367         * tests/test-fflush.c: Likewise.
41368         * tests/test-floorf.c: Likewise.
41369         * tests/test-floorl.c: Likewise.
41370         * tests/test-fopen.c: Likewise.
41371         * tests/test-fprintf-posix.c: Likewise.
41372         * tests/test-fprintf-posix.h: Likewise.
41373         * tests/test-fpurge.c: Likewise.
41374         * tests/test-freadable.c: Likewise.
41375         * tests/test-freadahead.c: Likewise.
41376         * tests/test-freading.c: Likewise.
41377         * tests/test-freopen.c: Likewise.
41378         * tests/test-frexp.c: Likewise.
41379         * tests/test-frexpl.c: Likewise.
41380         * tests/test-fseek.c: Likewise.
41381         * tests/test-fseeko.c: Likewise.
41382         * tests/test-fseterr.c: Likewise.
41383         * tests/test-fstrcmp.c: Likewise.
41384         * tests/test-ftell.c: Likewise.
41385         * tests/test-ftello.c: Likewise.
41386         * tests/test-fwritable.c: Likewise.
41387         * tests/test-fwriting.c: Likewise.
41388         * tests/test-getaddrinfo.c: Likewise.
41389         * tests/test-getpass.c: Likewise.
41390         * tests/test-gettimeofday.c: Likewise.
41391         * tests/test-hmac-md5.c: Likewise.
41392         * tests/test-hmac-sha1.c: Likewise.
41393         * tests/test-iconv.c: Likewise.
41394         * tests/test-iconvme.c: Likewise.
41395         * tests/test-inttypes.c: Likewise.
41396         * tests/test-isnan.c: Likewise.
41397         * tests/test-isnanf.c: Likewise.
41398         * tests/test-isnanl-nolibm.c: Likewise.
41399         * tests/test-isnanl.c: Likewise.
41400         * tests/test-isnanl.h: Likewise.
41401         * tests/test-ldexpl.c: Likewise.
41402         * tests/test-linked_list.c: Likewise.
41403         * tests/test-linkedhash_list.c: Likewise.
41404         * tests/test-locale.c: Likewise.
41405         * tests/test-localename.c: Likewise.
41406         * tests/test-lock.c: Likewise.
41407         * tests/test-lseek.c: Likewise.
41408         * tests/test-malloca.c: Likewise.
41409         * tests/test-math.c: Likewise.
41410         * tests/test-mbscasecmp.c: Likewise.
41411         * tests/test-mbscasestr1.c: Likewise.
41412         * tests/test-mbscasestr2.c: Likewise.
41413         * tests/test-mbscasestr3.c: Likewise.
41414         * tests/test-mbscasestr4.c: Likewise.
41415         * tests/test-mbschr.c: Likewise.
41416         * tests/test-mbscspn.c: Likewise.
41417         * tests/test-mbsncasecmp.c: Likewise.
41418         * tests/test-mbspbrk.c: Likewise.
41419         * tests/test-mbspcasecmp.c: Likewise.
41420         * tests/test-mbsrchr.c: Likewise.
41421         * tests/test-mbsspn.c: Likewise.
41422         * tests/test-mbsstr1.c: Likewise.
41423         * tests/test-mbsstr2.c: Likewise.
41424         * tests/test-mbsstr3.c: Likewise.
41425         * tests/test-md5.c: Likewise.
41426         * tests/test-memmem.c: Likewise.
41427         * tests/test-netinet_in.c: Likewise.
41428         * tests/test-open.c: Likewise.
41429         * tests/test-printf-frexp.c: Likewise.
41430         * tests/test-printf-frexpl.c: Likewise.
41431         * tests/test-printf-posix.c: Likewise.
41432         * tests/test-printf-posix.h: Likewise.
41433         * tests/test-rbtree_list.c: Likewise.
41434         * tests/test-rbtree_oset.c: Likewise.
41435         * tests/test-rbtreehash_list.c: Likewise.
41436         * tests/test-read-file.c: Likewise.
41437         * tests/test-rijndael.c: Likewise.
41438         * tests/test-search.c: Likewise.
41439         * tests/test-signbit.c: Likewise.
41440         * tests/test-sleep.c: Likewise.
41441         * tests/test-snprintf-posix.c: Likewise.
41442         * tests/test-snprintf-posix.h: Likewise.
41443         * tests/test-snprintf.c: Likewise.
41444         * tests/test-sprintf-posix.c: Likewise.
41445         * tests/test-sprintf-posix.h: Likewise.
41446         * tests/test-stat-time.c: Likewise.
41447         * tests/test-stdbool.c: Likewise.
41448         * tests/test-stdint.c: Likewise.
41449         * tests/test-stdio.c: Likewise.
41450         * tests/test-stdlib.c: Likewise.
41451         * tests/test-stpncpy.c: Likewise.
41452         * tests/test-strcasestr.c: Likewise.
41453         * tests/test-striconv.c: Likewise.
41454         * tests/test-striconveh.c: Likewise.
41455         * tests/test-striconveha.c: Likewise.
41456         * tests/test-string.c: Likewise.
41457         * tests/test-sys_select.c: Likewise.
41458         * tests/test-sys_socket.c: Likewise.
41459         * tests/test-sys_stat.c: Likewise.
41460         * tests/test-sys_time.c: Likewise.
41461         * tests/test-sysexits.c: Likewise.
41462         * tests/test-time.c: Likewise.
41463         * tests/test-tls.c: Likewise.
41464         * tests/test-trunc.c: Likewise.
41465         * tests/test-truncf.c: Likewise.
41466         * tests/test-truncl.c: Likewise.
41467         * tests/test-unistd.c: Likewise.
41468         * tests/test-vasnprintf-posix.c: Likewise.
41469         * tests/test-vasnprintf-posix2.c: Likewise.
41470         * tests/test-vasnprintf.c: Likewise.
41471         * tests/test-vasprintf-posix.c: Likewise.
41472         * tests/test-vasprintf.c: Likewise.
41473         * tests/test-verify.c: Likewise.
41474         * tests/test-vfprintf-posix.c: Likewise.
41475         * tests/test-vprintf-posix.c: Likewise.
41476         * tests/test-vsnprintf-posix.c: Likewise.
41477         * tests/test-vsnprintf.c: Likewise.
41478         * tests/test-vsprintf-posix.c: Likewise.
41479         * tests/test-wchar.c: Likewise.
41480         * tests/test-wctype.c: Likewise.
41481         * tests/test-wcwidth.c: Likewise.
41482         * tests/test-xstrtol.c: Likewise.
41483         * tests/test-xvasprintf.c: Likewise.
41484         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41485         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41486         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41487         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41488         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41489         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41490         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41491         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41492         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41493         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41494         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41495         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41496         * tests/uniname/test-uninames.c: Likewise.
41497         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41498         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41499         * tests/unistdio/test-u16-printf1.h: Likewise.
41500         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41501         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41502         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41503         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41504         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41505         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41506         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41507         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41508         * tests/unistdio/test-u32-printf1.h: Likewise.
41509         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41510         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41511         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41512         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41513         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41514         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41515         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41516         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41517         * tests/unistdio/test-u8-printf1.h: Likewise.
41518         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41519         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41520         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41521         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41522         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41523         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41524         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41525         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41526         * tests/unistdio/test-ulc-printf1.h: Likewise.
41527         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41528         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41529         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41530         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41531         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41532         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41533         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41534         * tests/uniwidth/test-u16-width.c: Likewise.
41535         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41536         * tests/uniwidth/test-u32-width.c: Likewise.
41537         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41538         * tests/uniwidth/test-u8-width.c: Likewise.
41539         * tests/uniwidth/test-uc_width.c: Likewise.
41540         * config/srclist-update: Likewise.
41541         (fixlicense): Update to GPLv3+.
41542
41543         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41544         * tests/test-tsearch.c: Change copyright notice.
41545
41546         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41547         * lib/c-strcaseeq.h: Change copyright notice.
41548         * lib/streq.h: Likewise.
41549         * lib/uniconv.h: Likewise.
41550         * lib/uniconv/u-conv-from-enc.h: Likewise.
41551         * lib/uniconv/u-conv-to-enc.h: Likewise.
41552         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41553         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41554         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41555         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41556         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41557         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41558         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41559         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41560         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41561         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41562         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41563         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41564         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41565         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41566         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41567         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41568         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41569         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41570         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41571         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41572         * lib/uniname.h: Likewise.
41573         * lib/uniname/uniname.c: Likewise.
41574         * lib/unistdio.h: Likewise.
41575         * lib/unistdio/u-asnprintf.h: Likewise.
41576         * lib/unistdio/u-asprintf.h: Likewise.
41577         * lib/unistdio/u-printf-args.c: Likewise.
41578         * lib/unistdio/u-printf-args.h: Likewise.
41579         * lib/unistdio/u-printf-parse.h: Likewise.
41580         * lib/unistdio/u-snprintf.h: Likewise.
41581         * lib/unistdio/u-sprintf.h: Likewise.
41582         * lib/unistdio/u-vasprintf.h: Likewise.
41583         * lib/unistdio/u-vsnprintf.h: Likewise.
41584         * lib/unistdio/u-vsprintf.h: Likewise.
41585         * lib/unistdio/u16-asnprintf.c: Likewise.
41586         * lib/unistdio/u16-asprintf.c: Likewise.
41587         * lib/unistdio/u16-printf-parse.c: Likewise.
41588         * lib/unistdio/u16-snprintf.c: Likewise.
41589         * lib/unistdio/u16-sprintf.c: Likewise.
41590         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41591         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41592         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41593         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41594         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41595         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41596         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41597         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41598         * lib/unistdio/u16-vasnprintf.c: Likewise.
41599         * lib/unistdio/u16-vasprintf.c: Likewise.
41600         * lib/unistdio/u16-vsnprintf.c: Likewise.
41601         * lib/unistdio/u16-vsprintf.c: Likewise.
41602         * lib/unistdio/u32-asnprintf.c: Likewise.
41603         * lib/unistdio/u32-asprintf.c: Likewise.
41604         * lib/unistdio/u32-printf-parse.c: Likewise.
41605         * lib/unistdio/u32-snprintf.c: Likewise.
41606         * lib/unistdio/u32-sprintf.c: Likewise.
41607         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41608         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41609         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41610         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41611         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41612         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41613         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41614         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41615         * lib/unistdio/u32-vasnprintf.c: Likewise.
41616         * lib/unistdio/u32-vasprintf.c: Likewise.
41617         * lib/unistdio/u32-vsnprintf.c: Likewise.
41618         * lib/unistdio/u32-vsprintf.c: Likewise.
41619         * lib/unistdio/u8-asnprintf.c: Likewise.
41620         * lib/unistdio/u8-asprintf.c: Likewise.
41621         * lib/unistdio/u8-printf-parse.c: Likewise.
41622         * lib/unistdio/u8-snprintf.c: Likewise.
41623         * lib/unistdio/u8-sprintf.c: Likewise.
41624         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41625         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41626         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41627         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41628         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41629         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41630         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41631         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41632         * lib/unistdio/u8-vasnprintf.c: Likewise.
41633         * lib/unistdio/u8-vasprintf.c: Likewise.
41634         * lib/unistdio/u8-vsnprintf.c: Likewise.
41635         * lib/unistdio/u8-vsprintf.c: Likewise.
41636         * lib/unistdio/ulc-asnprintf.c: Likewise.
41637         * lib/unistdio/ulc-asprintf.c: Likewise.
41638         * lib/unistdio/ulc-printf-parse.c: Likewise.
41639         * lib/unistdio/ulc-snprintf.c: Likewise.
41640         * lib/unistdio/ulc-sprintf.c: Likewise.
41641         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41642         * lib/unistdio/ulc-vasprintf.c: Likewise.
41643         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41644         * lib/unistdio/ulc-vsprintf.c: Likewise.
41645         * lib/unistr.h: Likewise.
41646         * lib/unistr/u-cpy-alloc.h: Likewise.
41647         * lib/unistr/u-cpy.h: Likewise.
41648         * lib/unistr/u-endswith.h: Likewise.
41649         * lib/unistr/u-move.h: Likewise.
41650         * lib/unistr/u-set.h: Likewise.
41651         * lib/unistr/u-startswith.h: Likewise.
41652         * lib/unistr/u-stpcpy.h: Likewise.
41653         * lib/unistr/u-stpncpy.h: Likewise.
41654         * lib/unistr/u-strcat.h: Likewise.
41655         * lib/unistr/u-strcpy.h: Likewise.
41656         * lib/unistr/u-strcspn.h: Likewise.
41657         * lib/unistr/u-strdup.h: Likewise.
41658         * lib/unistr/u-strlen.h: Likewise.
41659         * lib/unistr/u-strncat.h: Likewise.
41660         * lib/unistr/u-strncpy.h: Likewise.
41661         * lib/unistr/u-strnlen.h: Likewise.
41662         * lib/unistr/u-strpbrk.h: Likewise.
41663         * lib/unistr/u-strspn.h: Likewise.
41664         * lib/unistr/u-strstr.h: Likewise.
41665         * lib/unistr/u-strtok.h: Likewise.
41666         * lib/unistr/u16-check.c: Likewise.
41667         * lib/unistr/u16-chr.c: Likewise.
41668         * lib/unistr/u16-cmp.c: Likewise.
41669         * lib/unistr/u16-cpy-alloc.c: Likewise.
41670         * lib/unistr/u16-cpy.c: Likewise.
41671         * lib/unistr/u16-endswith.c: Likewise.
41672         * lib/unistr/u16-mblen.c: Likewise.
41673         * lib/unistr/u16-mbsnlen.c: Likewise.
41674         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41675         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41676         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41677         * lib/unistr/u16-mbtouc.c: Likewise.
41678         * lib/unistr/u16-mbtoucr.c: Likewise.
41679         * lib/unistr/u16-move.c: Likewise.
41680         * lib/unistr/u16-next.c: Likewise.
41681         * lib/unistr/u16-prev.c: Likewise.
41682         * lib/unistr/u16-set.c: Likewise.
41683         * lib/unistr/u16-startswith.c: Likewise.
41684         * lib/unistr/u16-stpcpy.c: Likewise.
41685         * lib/unistr/u16-stpncpy.c: Likewise.
41686         * lib/unistr/u16-strcat.c: Likewise.
41687         * lib/unistr/u16-strchr.c: Likewise.
41688         * lib/unistr/u16-strcmp.c: Likewise.
41689         * lib/unistr/u16-strcpy.c: Likewise.
41690         * lib/unistr/u16-strcspn.c: Likewise.
41691         * lib/unistr/u16-strdup.c: Likewise.
41692         * lib/unistr/u16-strlen.c: Likewise.
41693         * lib/unistr/u16-strmblen.c: Likewise.
41694         * lib/unistr/u16-strmbtouc.c: Likewise.
41695         * lib/unistr/u16-strncat.c: Likewise.
41696         * lib/unistr/u16-strncmp.c: Likewise.
41697         * lib/unistr/u16-strncpy.c: Likewise.
41698         * lib/unistr/u16-strnlen.c: Likewise.
41699         * lib/unistr/u16-strpbrk.c: Likewise.
41700         * lib/unistr/u16-strrchr.c: Likewise.
41701         * lib/unistr/u16-strspn.c: Likewise.
41702         * lib/unistr/u16-strstr.c: Likewise.
41703         * lib/unistr/u16-strtok.c: Likewise.
41704         * lib/unistr/u16-to-u32.c: Likewise.
41705         * lib/unistr/u16-to-u8.c: Likewise.
41706         * lib/unistr/u16-uctomb-aux.c: Likewise.
41707         * lib/unistr/u16-uctomb.c: Likewise.
41708         * lib/unistr/u32-check.c: Likewise.
41709         * lib/unistr/u32-chr.c: Likewise.
41710         * lib/unistr/u32-cmp.c: Likewise.
41711         * lib/unistr/u32-cpy-alloc.c: Likewise.
41712         * lib/unistr/u32-cpy.c: Likewise.
41713         * lib/unistr/u32-endswith.c: Likewise.
41714         * lib/unistr/u32-mblen.c: Likewise.
41715         * lib/unistr/u32-mbsnlen.c: Likewise.
41716         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41717         * lib/unistr/u32-mbtouc.c: Likewise.
41718         * lib/unistr/u32-mbtoucr.c: Likewise.
41719         * lib/unistr/u32-move.c: Likewise.
41720         * lib/unistr/u32-next.c: Likewise.
41721         * lib/unistr/u32-prev.c: Likewise.
41722         * lib/unistr/u32-set.c: Likewise.
41723         * lib/unistr/u32-startswith.c: Likewise.
41724         * lib/unistr/u32-stpcpy.c: Likewise.
41725         * lib/unistr/u32-stpncpy.c: Likewise.
41726         * lib/unistr/u32-strcat.c: Likewise.
41727         * lib/unistr/u32-strchr.c: Likewise.
41728         * lib/unistr/u32-strcmp.c: Likewise.
41729         * lib/unistr/u32-strcpy.c: Likewise.
41730         * lib/unistr/u32-strcspn.c: Likewise.
41731         * lib/unistr/u32-strdup.c: Likewise.
41732         * lib/unistr/u32-strlen.c: Likewise.
41733         * lib/unistr/u32-strmblen.c: Likewise.
41734         * lib/unistr/u32-strmbtouc.c: Likewise.
41735         * lib/unistr/u32-strncat.c: Likewise.
41736         * lib/unistr/u32-strncmp.c: Likewise.
41737         * lib/unistr/u32-strncpy.c: Likewise.
41738         * lib/unistr/u32-strnlen.c: Likewise.
41739         * lib/unistr/u32-strpbrk.c: Likewise.
41740         * lib/unistr/u32-strrchr.c: Likewise.
41741         * lib/unistr/u32-strspn.c: Likewise.
41742         * lib/unistr/u32-strstr.c: Likewise.
41743         * lib/unistr/u32-strtok.c: Likewise.
41744         * lib/unistr/u32-to-u16.c: Likewise.
41745         * lib/unistr/u32-to-u8.c: Likewise.
41746         * lib/unistr/u32-uctomb.c: Likewise.
41747         * lib/unistr/u8-check.c: Likewise.
41748         * lib/unistr/u8-chr.c: Likewise.
41749         * lib/unistr/u8-cmp.c: Likewise.
41750         * lib/unistr/u8-cpy-alloc.c: Likewise.
41751         * lib/unistr/u8-cpy.c: Likewise.
41752         * lib/unistr/u8-endswith.c: Likewise.
41753         * lib/unistr/u8-mblen.c: Likewise.
41754         * lib/unistr/u8-mbsnlen.c: Likewise.
41755         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41756         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41757         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41758         * lib/unistr/u8-mbtouc.c: Likewise.
41759         * lib/unistr/u8-mbtoucr.c: Likewise.
41760         * lib/unistr/u8-move.c: Likewise.
41761         * lib/unistr/u8-next.c: Likewise.
41762         * lib/unistr/u8-prev.c: Likewise.
41763         * lib/unistr/u8-set.c: Likewise.
41764         * lib/unistr/u8-startswith.c: Likewise.
41765         * lib/unistr/u8-stpcpy.c: Likewise.
41766         * lib/unistr/u8-stpncpy.c: Likewise.
41767         * lib/unistr/u8-strcat.c: Likewise.
41768         * lib/unistr/u8-strchr.c: Likewise.
41769         * lib/unistr/u8-strcmp.c: Likewise.
41770         * lib/unistr/u8-strcpy.c: Likewise.
41771         * lib/unistr/u8-strcspn.c: Likewise.
41772         * lib/unistr/u8-strdup.c: Likewise.
41773         * lib/unistr/u8-strlen.c: Likewise.
41774         * lib/unistr/u8-strmblen.c: Likewise.
41775         * lib/unistr/u8-strmbtouc.c: Likewise.
41776         * lib/unistr/u8-strncat.c: Likewise.
41777         * lib/unistr/u8-strncmp.c: Likewise.
41778         * lib/unistr/u8-strncpy.c: Likewise.
41779         * lib/unistr/u8-strnlen.c: Likewise.
41780         * lib/unistr/u8-strpbrk.c: Likewise.
41781         * lib/unistr/u8-strrchr.c: Likewise.
41782         * lib/unistr/u8-strspn.c: Likewise.
41783         * lib/unistr/u8-strstr.c: Likewise.
41784         * lib/unistr/u8-strtok.c: Likewise.
41785         * lib/unistr/u8-to-u16.c: Likewise.
41786         * lib/unistr/u8-to-u32.c: Likewise.
41787         * lib/unistr/u8-uctomb-aux.c: Likewise.
41788         * lib/unistr/u8-uctomb.c: Likewise.
41789         * lib/unitypes.h: Likewise.
41790         * lib/uniwidth.h: Likewise.
41791         * lib/uniwidth/cjk.h: Likewise.
41792         * lib/uniwidth/u16-strwidth.c: Likewise.
41793         * lib/uniwidth/u16-width.c: Likewise.
41794         * lib/uniwidth/u32-strwidth.c: Likewise.
41795         * lib/uniwidth/u32-width.c: Likewise.
41796         * lib/uniwidth/u8-strwidth.c: Likewise.
41797         * lib/uniwidth/u8-width.c: Likewise.
41798         * lib/uniwidth/width.c: Likewise.
41799
41800 2007-10-07  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41803         The file is still under LGPL (see modules/inttypes).
41804
41805 2007-10-06  Bruno Haible  <bruno@clisp.org>
41806
41807         * modules/trunc (Dependencies): Add 'extensions'.
41808         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41809         Reported by Ben Pfaff <blp@gnu.org>.
41810
41811 2007-10-06  Bruno Haible  <bruno@clisp.org>
41812
41813         * modules/freopen-tests: New file.
41814         * tests/test-freopen.c: New file.
41815
41816         * modules/fopen-tests: New file.
41817         * tests/test-fopen.c: New file.
41818
41819         * modules/fopen: New file.
41820         * lib/fopen.c: New file.
41821         * m4/fopen.m4: New file.
41822         * modules/freopen: New file.
41823         * lib/freopen.c: New file.
41824         * m4/freopen.m4: New file.
41825         * lib/stdio.in.h (fopen, freopen): New declarations.
41826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41827         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41828         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41829         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41830         * doc/functions/fopen.texi: Mention the 'fopen' module.
41831         * doc/functions/freopen.texi: Mention the 'freopen' module.
41832
41833 2007-10-06  Bruno Haible  <bruno@clisp.org>
41834
41835         * modules/open-tests: New file.
41836         * tests/test-open.c: New file.
41837
41838         * modules/open: New file.
41839         * lib/open.c: New file.
41840         * m4/open.m4: New file.
41841         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41842         lib/open.c does.
41843         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41844         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41845         macros.
41846         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41847         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41848         REPLACE_OPEN.
41849         * doc/functions/open.texi: Mention the 'open' module.
41850
41851 2007-10-04  Bruno Haible  <bruno@clisp.org>
41852
41853         * modules/ceill-tests: New file.
41854         * tests/test-ceill.c: New file.
41855
41856         * modules/ceill: New file.
41857         * lib/ceill.c: Replace entire file.
41858         * m4/ceill.m4: New file.
41859         * lib/math.in.h (ceill): Replace declaration.
41860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41861         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41862         * doc/functions/ceill.texi: Mention the 'ceill' module.
41863         * modules/mathl (Files): Remove lib/ceill.c.
41864         (Depends-on): Add ceill.
41865
41866 2007-10-04  Bruno Haible  <bruno@clisp.org>
41867
41868         * modules/ceilf-tests: New file.
41869         * tests/test-ceilf.c: New file.
41870
41871         * modules/ceilf: New file.
41872         * lib/ceil.c: New file.
41873         * lib/ceilf.c: New file.
41874         * m4/ceilf.m4: New file.
41875         * lib/math.in.h (ceilf): New declaration.
41876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41877         HAVE_DECL_CEILF.
41878         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41879         HAVE_DECL_CEILF.
41880         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41881
41882 2007-10-04  Bruno Haible  <bruno@clisp.org>
41883
41884         * modules/floorl-tests: New file.
41885         * tests/test-floorl.c: New file.
41886
41887         * modules/floorl: New file.
41888         * lib/floorl.c: Replace entire file.
41889         * m4/floorl.m4: New file.
41890         * lib/math.in.h (floorl): Replace declaration.
41891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41892         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41893         * doc/functions/floorl.texi: Mention the 'floorl' module.
41894         * modules/mathl (Files): Remove lib/floorl.c.
41895         (Depends-on): Add floorl.
41896
41897 2007-10-04  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/floorf-tests: New file.
41900         * tests/test-floorf.c: New file.
41901
41902         * modules/floorf: New file.
41903         * lib/floor.c: New file.
41904         * lib/floorf.c: New file.
41905         * m4/floorf.m4: New file.
41906         * lib/math.in.h (floorf): New declaration.
41907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41908         HAVE_DECL_FLOORF.
41909         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41910         HAVE_DECL_FLOORF.
41911         * doc/functions/floorf.texi: Mention the 'floorf' module.
41912
41913 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41914             Bruno Haible  <bruno@clisp.org>
41915
41916         Advertise for the Git server instead of the CVS server.
41917         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41918         repository instead of the CVS one.
41919         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41920         about all VCS systems generically.
41921         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41922
41923 2007-10-04  Bruno Haible  <bruno@clisp.org>
41924
41925         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41926         means.
41927         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41928
41929 2007-10-04  Bruno Haible  <bruno@clisp.org>
41930
41931         * modules/truncl-tests: New file.
41932         * tests/test-truncl.c: New file.
41933
41934         * modules/truncl: New file.
41935         * lib/truncl.c: New file.
41936         * m4/truncl.m4: New file.
41937         * lib/math.in.h (truncl): New declaration.
41938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41939         HAVE_DECL_TRUNCL.
41940         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41941         HAVE_DECL_TRUNCL.
41942         * doc/functions/truncl.texi: Mention the 'truncl' module.
41943
41944 2007-10-04  Bruno Haible  <bruno@clisp.org>
41945
41946         * modules/truncf-tests: New file.
41947         * tests/test-truncf.c: New file.
41948
41949         * modules/truncf: New file.
41950         * lib/trunc.c: Make paramerizable through USE_* macros.
41951         * lib/truncf.c: New file.
41952         * m4/truncf.m4: New file.
41953         * lib/math.in.h (truncf): New declaration.
41954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41955         HAVE_DECL_TRUNCF.
41956         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41957         HAVE_DECL_TRUNCF.
41958         * doc/functions/truncf.texi: Mention the 'truncf' module.
41959
41960 2007-10-03  Bruno Haible  <bruno@clisp.org>
41961
41962         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41963         augmentation also for tests modules.
41964         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41965         * modules/atexit-tests (Makefile.am): Likewise.
41966         * modules/binary-io-tests (Makefile.am): Likewise.
41967         * modules/c-strcase-tests (Makefile.am): Likewise.
41968         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41969         * modules/canonicalize-tests (Makefile.am): Likewise.
41970         * modules/closein-tests (Makefile.am): Likewise.
41971         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41972         * modules/freadahead-tests (Makefile.am): Likewise.
41973         * modules/fseek-tests (Makefile.am): Likewise.
41974         * modules/fseeko-tests (Makefile.am): Likewise.
41975         * modules/ftell-tests (Makefile.am): Likewise.
41976         * modules/ftello-tests (Makefile.am): Likewise.
41977         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41978         * modules/isnanl-tests (Makefile.am): Likewise.
41979         * modules/lseek-tests (Makefile.am): Likewise.
41980         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41981         * modules/mbscasestr-tests (Makefile.am): Likewise.
41982         * modules/mbschr-tests (Makefile.am): Likewise.
41983         * modules/mbscspn-tests (Makefile.am): Likewise.
41984         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41985         * modules/mbspbrk-tests (Makefile.am): Likewise.
41986         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41987         * modules/mbsrchr-tests (Makefile.am): Likewise.
41988         * modules/mbsspn-tests (Makefile.am): Likewise.
41989         * modules/mbsstr-tests (Makefile.am): Likewise.
41990         * modules/printf-posix-tests (Makefile.am): Likewise.
41991         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41992         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41993         * modules/tsearch-tests (Makefile.am): Likewise.
41994         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41995         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41996         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41997         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41998         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41999         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42000         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42001         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42002         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42003         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42004         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42005         * modules/xstrtol-tests (Makefile.am): Likewise.
42006         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42007         * modules/yesno-tests (Makefile.am): Likewise.
42008
42009 2007-10-03  Bruno Haible  <bruno@clisp.org>
42010
42011         * modules/trunc-tests: New file.
42012         * tests/test-trunc.c: New file.
42013
42014         * modules/trunc: New file.
42015         * lib/trunc.c: New file.
42016         * m4/trunc.m4: New file.
42017         * lib/math.in.h (trunc): New declaration.
42018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42019         HAVE_DECL_TRUNC.
42020         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42021         HAVE_DECL_TRUNC.
42022         * doc/functions/trunc.texi: Mention the 'trunc' module.
42023
42024 2007-10-03  Bruno Haible  <bruno@clisp.org>
42025
42026         * tests/test-fpending.c: New file, mostly copied
42027         from coreutils/lib/t-fpending.c.
42028         * modules/fpending-tests: New file.
42029
42030 2007-10-03  Bruno Haible  <bruno@clisp.org>
42031
42032         Port the stdio extensions to QNX (untested).
42033         * lib/fseterr.c (fseterr): Add support for QNX.
42034         * lib/fbufmode.c (fbufmode): Likewise.
42035         * lib/freadable.c (freadable): Likewise.
42036         * lib/fwritable.c (fwritable): Likewise.
42037         * lib/freading.c (freading): Likewise.
42038         * lib/fwriting.c (fwriting): Likewise.
42039         * lib/freadahead.c (freadahed): Likewise.
42040         * lib/fpurge.c (fpurge): Likewise.
42041         * lib/fseeko.c (rpl_fseeko): Likewise.
42042
42043 2007-10-03  Bruno Haible  <bruno@clisp.org>
42044             Jim Meyering  <jim@meyering.net>
42045             Eric Blake  <ebb9@byu.net>
42046
42047         * doc/relocatable.texi: Use @command instead of @program.
42048
42049 2007-10-02  Jim Meyering  <jim@meyering.net>
42050
42051         Perform one more "_.h" -> ".in.h" substitution.
42052         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42053         instead of unistd_.h here, too.
42054
42055 2007-10-01  Bruno Haible  <bruno@clisp.org>
42056
42057         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42058         Needed for the alloca-opt module.
42059
42060 2007-09-30  Bruno Haible  <bruno@clisp.org>
42061
42062         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42063         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42064         alloca_.h.
42065         * lib/argz.in.h: Renamed from lib/argz_.h.
42066         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42067         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42068         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42069         byteswap_.h.
42070         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42071         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42072         dirent_.h.
42073         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42074         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42075         fcntl_.h.
42076         * lib/float.in.h: Renamed from lib/float_.h.
42077         * modules/float (Files, Makefile.am): Use float.in.h instead of
42078         float_.h.
42079         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42080         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42081         fnmatch_.h.
42082         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42083         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42084         getopt_.h.
42085         * lib/glob.in.h: Renamed from lib/glob_.h.
42086         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42087         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42088         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42089         iconv_.h.
42090         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42091         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42092         inttypes_.h.
42093         * lib/locale.in.h: Renamed from lib/locale_.h.
42094         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42095         locale_.h.
42096         * lib/math.in.h: Renamed from lib/math_.h.
42097         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42098         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42099         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42100         of netinet_in_.h. Add dependency.
42101         * lib/poll.in.h: Renamed from lib/poll_.h.
42102         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42103         * lib/search.in.h: Renamed from lib/search_.h.
42104         * modules/search (Files, Makefile.am): Use search.in.h instead of
42105         search_.h.
42106         * lib/signal.in.h: Renamed from lib/signal_.h.
42107         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42108         _signal.h.
42109         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42110         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42111         stdbool_.h.
42112         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42113         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42114         stdint_.h.
42115         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42116         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42117         stdio_.h.
42118         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42119         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42120         stdlib_.h.
42121         * lib/string.in.h: Renamed from lib/string_.h.
42122         * modules/string (Files, Makefile.am): Use string.in.h instead of
42123         string_.h.
42124         * doc/gnulib-tool.texi (Initial import): Update.
42125         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42126         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42127         of sys_select_.h. Add dependency.
42128         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42129         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42130         of sys_socket_.h.
42131         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42132         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42133         sys_stat_.h.
42134         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42135         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42136         sys_time_.h.
42137         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42138         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42139         sysexits_.h.
42140         * lib/time.in.h: Renamed from lib/time_.h.
42141         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42142         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42143         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42144         unistd_.h.
42145         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42146         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42147         wchar_.h.
42148         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42149         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42150         wctype_.h.
42151         * build-aux/bootstrap (slurp): Update.
42152         * lib/.cppi-disable: Update.
42153
42154 2007-09-30  Bruno Haible  <bruno@clisp.org>
42155
42156         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42157         Needed on BeOS.
42158
42159 2007-09-30  Bruno Haible  <bruno@clisp.org>
42160
42161         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42162
42163 2007-09-29  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42166
42167 2007-09-29  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42170         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42171         * build-aux/install-reloc: Compile also areadlink.c.
42172         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42173
42174 2007-09-29  Bruno Haible  <bruno@clisp.org>
42175
42176         * gnulib-tool (func_emit_initmacro_done): Indentation.
42177
42178 2007-09-29  Bruno Haible  <bruno@clisp.org>
42179
42180         * README: Add CVS checkout update instructions.
42181         Info from Bob Proulx <bob@proulx.com>.
42182
42183 2007-09-28  Eric Blake  <ebb9@byu.net>
42184
42185         Provide move-if-change.
42186         * build-aux/move-if-change: New file, based on best practice
42187         rather than any canonical upstream location.
42188
42189 2007-09-28  Jim Meyering  <jim@meyering.net>
42190
42191         Fix canonicalize loop-detection corner case.
42192         Do not attempt to stat the symlink values stored via seen_triple.
42193         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42194         on linux-2.6.18, (but not 2.6.22).
42195         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42196         triple_compare.  The former compares dev,ino,filename, while the latter
42197         would actually stat dirname(filename) when dev and ino were equal.
42198         * lib/hash-triple.c: Install <string.h>.
42199         (STREQ): Define.
42200         (triple_compare_ino_str): New function.
42201         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42202
42203 2007-09-28  Eric Blake  <ebb9@byu.net>
42204
42205         Enforce that AC_REPLACE_FUNCS files exist.
42206         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42207         override check for typos.
42208
42209         Fix test-closein on Solaris 10.
42210         * tests/test-closein.c (main): Don't assume stdin can be inherited
42211         closed on all systems.
42212         * tests/test-closein.sh: Likewise.
42213         Reported by Piotr Tarnowski.
42214
42215 2007-09-28  Jim Meyering  <jim@meyering.net>
42216
42217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42218
42219 2007-09-27  Jim Meyering  <jim@meyering.net>
42220
42221         canonicalize: Avoid a false-positive cycle failure.
42222         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42223         Sort.  Remove cycle-check.
42224         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42225         not cycle-check.h.
42226         (seen_triple): New function.
42227         (canonicalize_filename_mode): Use it instead of cycle-check.
42228         * tests/test-canonicalize.c: Add a test for this bug.
42229         * tests/test-canonicalize.sh: Set up and run the test.
42230
42231         New module, file-set, from coreutils.
42232         * modules/file-set: Define it.
42233         * lib/file-set.c, lib/file-set.h: Implement.
42234
42235         New module, hash-triple, from coreutils.
42236         * modules/hash-triple: Define it.
42237         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42238
42239 2007-09-25  Eric Blake  <ebb9@byu.net>
42240
42241         Fix strerror on Interix.
42242         * lib/string_.h (strerror): Declare replacement.
42243         * doc/functions/strerror.texi (strerror): Document the Interix
42244         shortcoming.
42245         * modules/string (Makefile.am): Support new hooks.
42246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42247         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42248         gl_FUNC_STRERROR_SEPARATE.
42249         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42250         * lib/strerror.c (rpl_strerror): Provide replacement.
42251         * modules/strerror (Depends-on): Add string.
42252         (configure.ac): Detect use of module.
42253         * tests/test-strerror.c: New file.
42254         * modules/strerror-tests: New test module.
42255         * modules/argp (Depends-on): Add strerror.
42256         * modules/error (Depends-on): Likewise.
42257         Reported by Martin Koeppe.
42258
42259 2007-09-24  Bruno Haible  <bruno@clisp.org>
42260
42261         * README: Update git instructions.
42262
42263 2007-09-24  Eric Blake  <ebb9@byu.net>
42264
42265         Revert fpending breakage from 2007-09-08.
42266         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42267         __fpending.c.
42268
42269 2007-09-24  Jim Meyering  <jim@meyering.net>
42270
42271         filenamecat.c: Add a test.
42272         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42273         showing how the function works when DIR is the empty string.
42274
42275 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42276
42277         * tests/test-canonicalize.sh: Turn on executable bit.
42278
42279 2007-09-19  Eric Blake  <ebb9@byu.net>
42280
42281         * README: Update CVS instructions.
42282
42283 2007-09-18  Bruno Haible  <bruno@clisp.org>
42284
42285         * modules/areadlink: New file.
42286         * lib/areadlink.h (areadlink): New declaration.
42287         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42288
42289 2007-09-17  Jim Meyering  <jim@meyering.net>
42290
42291         * lib/savewd.c (ESTALE) [!defined]: Define.
42292         Reported to be required on Interix by Martin Koeppe.
42293
42294 2007-09-17  Bruno Haible  <bruno@clisp.org>
42295
42296         * gnulib-tool (func_version): Use $version.
42297
42298 2007-09-16  Bruno Haible  <bruno@clisp.org>
42299
42300         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
42301         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
42302         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
42303         Reported by Greg Schafer <gschafer@zip.com.au>.
42304
42305 2007-09-15  Bruno Haible  <bruno@clisp.org>
42306
42307         * gnulib-tool (sed): Try a little harder to make bash understand the
42308         alias.
42309         Reported by Bruce Korb <bruce.korb@gmail.com>.
42310
42311 2007-09-13  Eric Blake  <ebb9@byu.net>
42312
42313         * ChangeLog: Remove conflict markers.
42314
42315 2007-09-13  Simon Josefsson  <simon@josefsson.org>
42316
42317         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
42318         Reported by Bruno Haible <bruno@clisp.org>.
42319
42320 2007-09-12  Bruno Haible  <bruno@clisp.org>
42321
42322         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
42323         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
42324         is not defined.
42325
42326 2007-09-12  Eric Blake  <ebb9@byu.net>
42327
42328         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
42329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
42330         Autoconf definition.
42331         * modules/euidaccess (Depends-on): Add extensions, for
42332         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
42333         * modules/fnmatch (Depends-on): Likewise.
42334         * modules/getaddrinfo (Depends-on): Likewise.
42335         * modules/getdelim (Depends-on): Likewise.
42336         * modules/getline (Depends-on): Likewise.
42337         * modules/getsubopt (Depends-on): Likewise.
42338         * modules/gettext (Depends-on): Likewise.
42339         * modules/group-member (Depends-on): Likewise.
42340         * modules/mbchar (Depends-on): Likewise.
42341         * modules/memmem (Depends-on): Likewise.
42342         * modules/mempcpy (Depends-on): Likewise.
42343         * modules/memrchr (Depends-on): Likewise.
42344         * modules/pagealign_alloc (Depends-on): Likewise.
42345         * modules/readutmp (Depends-on): Likewise.
42346         * modules/stpcpy (Depends-on): Likewise.
42347         * modules/stpncpy (Depends-on): Likewise.
42348         * modules/strchrnul (Depends-on): Likewise.
42349         * modules/strndup (Depends-on): Likewise.
42350         * modules/strsep (Depends-on): Likewise.
42351         * modules/strverscmp (Depends-on): Likewise.
42352         * modules/vasprintf (Depends-on): Likewise.
42353         * modules/wcwidth (Depends-on): Likewise.
42354         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42355         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42356         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42359         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42360         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42361         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42362         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42363         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42367         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42368         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42369         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42371         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42376         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42377         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42378         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42380         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42381         so that lock.m4 can be used in gettext without extensions module.
42382
42383 2007-09-11  Bruno Haible  <bruno@clisp.org>
42384
42385         * m4/isc-posix.m4: Remove file.
42386         Suggested by Eric Blake.
42387
42388 2007-09-11  Eric Blake  <ebb9@byu.net>
42389
42390         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42391
42392 2007-09-10  Bruno Haible  <bruno@clisp.org>
42393
42394         * posix-modules: Fix typo in error message.
42395         Reported by Matt <mkraai@beckman.com>.
42396
42397 2007-09-09  Bruno Haible  <bruno@clisp.org>
42398
42399         * doc/functions/getdelim.texi: Update list of platforms lacking the
42400         function.
42401         * doc/functions/getline.texi: Likewise.
42402
42403 2007-09-09  Jim Meyering  <jim@meyering.net>
42404
42405         * lib/hash.c (hash_initialize): Detect calloc failure.
42406         Reported by Bruno Haible.
42407
42408 2007-09-09  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42411         malloc or realloc fails.
42412
42413 2007-09-09  Bruno Haible  <bruno@clisp.org>
42414
42415         * modules/getcwd (Depends-on): Add malloc-posix.
42416         * modules/glob (Depends-on): Likewise.
42417         * modules/putenv (Depends-on): Likewise.
42418         * modules/strdup (Depends-on): Likewise.
42419         * modules/getdelim (Depends-on): Add realloc-posix.
42420         * modules/read-file (Depends-on): Likewise.
42421
42422 2007-09-09  Bruno Haible  <bruno@clisp.org>
42423
42424         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42425         (gl_FUNC_MALLOC_POSIX): Require it.
42426         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42427         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42428         * modules/realloc (Files): Add m4/malloc.m4.
42429         * modules/calloc (Files): Likewise.
42430
42431 2007-09-09  Bruno Haible  <bruno@clisp.org>
42432
42433         * modules/malloc-posix: New file.
42434         * modules/malloc (Depends-on): Add malloc-posix.
42435         * lib/malloc.c: Include errno.h.
42436         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42437         and a POSIX-compatible malloc into a single function. Set ENOMEM
42438         when returning NULL.
42439         * m4/malloc.m4: New file.
42440         * doc/functions/malloc.texi: Mention the malloc-posix module.
42441         * lib/stdlib_.h (malloc): New declaration.
42442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42443         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42444         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42445         and HAVE_MALLOC_POSIX.
42446
42447 2007-09-09  Bruno Haible  <bruno@clisp.org>
42448
42449         * modules/realloc-posix: New file.
42450         * modules/realloc (Depends-on): Add realloc-posix.
42451         * lib/realloc.c: Include errno.h.
42452         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42453         and a POSIX-compatible realloc into a single function. Set ENOMEM
42454         when returning NULL.
42455         * m4/realloc.m4: New file.
42456         * doc/functions/realloc.texi: Mention the realloc-posix module.
42457         * lib/stdlib_.h (realloc): New declaration.
42458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42459         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42460         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42461         and HAVE_REALLOC_POSIX.
42462
42463 2007-09-09  Bruno Haible  <bruno@clisp.org>
42464
42465         * modules/calloc-posix: New file.
42466         * modules/calloc (Depends-on): Add calloc-posix.
42467         * lib/calloc.c: Include errno.h.
42468         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42469         and a POSIX-compatible calloc into a single function. Set ENOMEM
42470         when returning NULL.
42471         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42472         * doc/functions/calloc.texi: Mention the calloc-posix module.
42473         * lib/stdlib_.h (calloc): New declaration.
42474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42475         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42476         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42477         and HAVE_CALLOC_POSIX.
42478
42479 2007-09-09  Bruno Haible  <bruno@clisp.org>
42480
42481         Allow for modules to show an arbitrary notice.
42482         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42483         * gnulib-tool: New option --extract-notice.
42484         (func_usage): Document it.
42485         (sed_extract_prog): Update.
42486         (func_get_notice): New function.
42487         (func_modules_notice): New function.
42488         (func_import, func_create_testdir): Invoke it.
42489         Suggested by Jim Meyering.
42490
42491 2007-09-09  Bruno Haible  <bruno@clisp.org>
42492
42493         * gnulib-tool: New options --verbose, --quiet.
42494         (func_usage): Document them.
42495         (verbose): New variable.
42496         (func_execute_command): New function.
42497         (func_import): Don't show the module list and the file list if
42498         $verbose < 0.
42499         (func_create_testdir): Likewise. Use func_execute_command.
42500         (func_create_megatestdir): Use func_execute_command.
42501
42502 2007-09-08  Bruno Haible  <bruno@clisp.org>
42503
42504         * gnulib-tool (func_import): Prefer rsync over wget when available,
42505         for fetching the PO files.
42506
42507 2007-09-08  Bruno Haible  <bruno@clisp.org>
42508
42509         * posix-modules: New file. Portions copied from gnulib-tool.
42510         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42511
42512 2007-09-08  Jim Meyering  <jim@meyering.net>
42513
42514         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42515         * lib/fpending.h: Rename from __fpending.h.
42516         * lib/fpending.c: Rename from __fpending.c.
42517         Include "fpending.h", not "__fpending.h".
42518         * lib/__fpending.h, lib/__fpending.c: Remove files.
42519         * modules/fpending (Files): Reflect new file names.
42520         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42521
42522 2007-09-08  Bruno Haible  <bruno@clisp.org>
42523
42524         * m4/inttypes-h.m4: Remove stub file.
42525
42526 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42527
42528         * doc/headers/stdint.texi: Discuss #include_next issue.
42529
42530 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42531
42532         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42533
42534 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42535
42536         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42537         in variable name.
42538
42539 2007-09-03  Jim Meyering  <jim@meyering.net>
42540
42541         New module: git-version-gen.
42542         * modules/git-version-gen: New file.
42543
42544         Import changes from coreutils for bootstrap script.
42545
42546         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42547
42548         bootstrap: uses rsync to download the .po files
42549         * build-aux/bootstrap (po_download_command_format): New global.
42550         (download_po_files): Use rsync.
42551         (update_po_files): Don't remove .po files after download,
42552         so future rsync runs can take advantage of the copies.
42553
42554         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42555
42556         Solve the unnecessary-.po-file-regeneration problem once and for all.
42557         * build-aux/bootstrap (download_po_files): New function, renamed from
42558         get_translations.  Now, downloads, but doesn't update LINGUAS.
42559         (update_po_files): New function.
42560
42561         bootstrap: Ignore more.
42562         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42563         uniwidth to e.g., lib/.gitignore.
42564         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42565
42566         * build-aux/bootstrap: New setting: vc_ignore.
42567         (insert_sorted_if_absent): Create $file if absent.
42568         Adapt to new, possibly empty, list: $vc_ignore.
42569
42570         bootstrap: generate more ignorable names
42571         * build-aux/bootstrap (slurp): When generating ignorable names,
42572         also map .sin to .sed, .gperf to .c, and .y to .c.
42573
42574 2007-09-03  Jim Meyering  <jim@meyering.net>
42575
42576         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42577         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42578
42579 2007-09-02  Bruno Haible  <bruno@clisp.org>
42580
42581         Fix mis-recognition of 'mcs' on QNX 6.
42582         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42583         output contains the string "Mono".
42584         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42585         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42586
42587 2007-09-01  Bruno Haible  <bruno@clisp.org>
42588
42589         Fix collision between uniwidth/* and linebreak modules.
42590         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42591         u32_width): Remove declarations.
42592         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42593         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42594         streq3, streq2, streq1, streq0): Remove functions.
42595         (STREQ): Remove macro.
42596         (is_cjk_encoding): Remove function.
42597         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42598         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42599         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42600         * NEWS: Document the change.
42601
42602 2007-09-01  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/streq.h: Add double-inclusion guard.
42605
42606 2007-09-01  Karl Berry  <karl@gnu.org>
42607
42608         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42609
42610 2007-08-28  Jim Meyering  <jim@meyering.net>
42611
42612         Rename mreadlink_with_size to areadlink_with_size.
42613         * NEWS: Document the change.
42614         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42615         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42616         * lib/mreadlink.h: Rename this to...
42617         * lib/areadlink.h: ...this.
42618         * modules/mreadlink-with-size: Rename this to...
42619         * modules/areadlink-with-size: ...this.
42620         * lib/canonicalize.c: Reflect the renaming.
42621         * modules/canonicalize: Likewise.
42622
42623 2007-08-26  Bruno Haible  <bruno@clisp.org>
42624
42625         * gnulib-tool (func_import): When deciding which files to remove,
42626         consider also dangling symbolic links.
42627         Reported by Eric Blake.
42628
42629 2007-08-26  Bruno Haible  <bruno@clisp.org>
42630
42631         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42632
42633 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42634
42635         * lib/readline.c: Don't include getline.h, the prototype is now
42636         found in stdio.h.
42637
42638 2007-08-23  Jim Meyering  <jim@meyering.net>
42639
42640         Getdelim touchup.
42641         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42642         around the funlockfile call, since funlockfile never sets errno.
42643         Don't set errno upon failed realloc.
42644
42645 2007-08-22  Eric Blake  <ebb9@byu.net>
42646
42647         Getline touchups.
42648         * lib/getdelim.c (getdelim): Revert regression that required *n to
42649         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42651         getdelim, rather than whether implementation is missing.
42652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42653         * lib/stdio_.h (getline): Also declare if replacement is
42654         required.
42655         * doc/functions/getdelim.texi: New file.
42656         * doc/functions/getline.texi: Likewise.
42657         * doc/gnulib.texi (Function Substitutes): Add new files.
42658         Reported by Bruno Haible.
42659
42660 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42661
42662         * users.txt: Add Guile.
42663
42664 2007-08-22  Eric Blake  <ebb9@byu.net>
42665
42666         * tests/test-getdelim.c (main): Use remove, not unlink.
42667         * tests/test-getline.c (main): Likewise.
42668
42669         Move getline and getdelim into stdio.h, per POSIX 200x.
42670         * modules/getline (Files): Remove getline.h.
42671         (Depends-on): Add stdio.
42672         (configure.ac): Add module indicator.
42673         * modules/getdelim (Files): Remove getdelim.h.
42674         (Depends-on): Add stdio.
42675         (configure.ac): Add module indicator.
42676         * modules/stdio (Makefile.am): Work with new indicators.
42677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42679         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42680         * lib/getdelim.h: Delete.
42681         * lib/getline.h: Delete.
42682         * lib/stdio_.h (getdelim, getline): Declare.
42683         * modules/getdelim-tests: New module.
42684         * modules/getline-tests: Likewise.
42685         * tests/test-getdelim.c: New file.
42686         * tests/test-getline.c: Likewise.
42687         * NEWS: Document the change.
42688         * lib/getline.c: Update choice of header.
42689         * lib/csharpcomp.c: Likewise.
42690         * lib/getpass.c: Likewise.
42691         * lib/javacomp.c: Likewise.
42692         * lib/javaversion.c: Likewise.
42693         * lib/yesno.c: Likewise.
42694         * lib/getdelim.c: Likewise.
42695         (getdelim): Set errno on failure, and avoid memory leak.
42696
42697 2007-08-19  Bruno Haible  <bruno@clisp.org>
42698
42699         * modules/closein (Depends-on): Add freadahead.
42700         * lib/closein.c: Include freadahead.h.
42701         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42702         is zero.
42703
42704 2007-08-19  Bruno Haible  <bruno@clisp.org>
42705
42706         * modules/freadahead-tests: New file.
42707         * tests/test-freadahead.sh: New file.
42708         * tests/test-freadahead.c: New file.
42709
42710         * modules/freadahead: New file.
42711         * lib/freadahead.h: New file.
42712         * lib/freadahead.c: New file.
42713         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42714         fbufmode, fpurge, freadable, fwritable.
42715
42716 2007-08-19  Eric Blake  <ebb9@byu.net>
42717
42718         Test yesno in combination with closein.
42719         * lib/yesno.c (yesno): Document use of stdin.
42720         * modules/yesno-tests (Files): New module.
42721         * tests/test-yesno.c (main): New file.
42722         * tests/test-yesno.sh: Likewise.
42723
42724 2007-08-19  Bruno Haible  <bruno@clisp.org>
42725
42726         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42727         * lib/fseeko.c (rpl_fseeko): Likewise.
42728         * lib/fseterr.c (fseterr): Likewise.
42729
42730 2007-08-19  Bruno Haible  <bruno@clisp.org>
42731
42732         * tests/test-lseek.c (main): Disable a test for BeOS.
42733         * doc/functions/lseek.texi: Document the BeOS bug.
42734
42735 2007-08-19  Bruno Haible  <bruno@clisp.org>
42736             Eric Blake  <ebb9@byu.net>
42737
42738         * lib/lseek.c: Include <sys/stat.h>.
42739         (rpl_lseek): Add workaround code also for Unix platforms.
42740         Needed for BeOS.
42741         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42742         * doc/functions/lseek.texi: Document BeOS definiency.
42743
42744 2007-08-18  Bruno Haible  <bruno@clisp.org>
42745
42746         * modules/fstrcmp-tests: New file.
42747         * tests/test-fstrcmp.c: New file.
42748
42749 2007-08-18  Bruno Haible  <bruno@clisp.org>
42750
42751         * modules/fstrcmp: New file, from GNU gettext with modifications.
42752         * lib/fstrcmp.h: New file, from GNU gettext.
42753         * lib/fstrcmp.c: New file, from GNU gettext.
42754         * MODULES.html.sh (String handling): Add fstrcmp.
42755
42756 2007-08-18  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42759         'bool'.
42760         (diag, compareseq): Remove const from the ctxt argument.
42761         (USE_HEURISTIC): Undefine at the end.
42762
42763 2007-08-18  Jim Meyering  <jim@meyering.net>
42764
42765         New file: lib/idcache.h
42766         * NEWS: Mention the addition.
42767         * modules/idcache (Files): Add lib/idcache.h
42768         * lib/idcache.c: Include "idcache.h".
42769         Don't include <sys/types.h>.
42770         Add a FIXME comment.
42771         Move file-scoped "static" declarations to the top.
42772         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42773
42774 2007-08-17  Bruno Haible  <bruno@clisp.org>
42775         and Paul Eggert  <eggert@cs.ucla.edu>
42776
42777         * MODULES.html.sh: Add diffseq.
42778         * modules/diffseq: New file.
42779         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42780         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42781
42782 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42783
42784         Import changes from coreutils for bootstrap script.
42785
42786         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42787
42788         * build-aux/bootstrap (slurp): Work even in environments where
42789         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42790         current code does not slurp files whose names start with ".", and
42791         this looks like it might be a troublesome area.
42792
42793         2007-07-11  Jim Meyering  <jim@meyering.net>
42794
42795         If there's a GPL vN copyright comment, require that N == 3.
42796
42797         2007-07-08  Jim Meyering  <jim@meyering.net>
42798
42799         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42800         * build-aux/bootstrap (mam_template): Move definition out of loop.
42801
42802         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42803
42804         * build-aux/bootstrap (symlink_to_dir): Rename function from
42805         symlink_to_gnulib.  Add a directory parameter.  Update all
42806         callers.
42807         (cp_mark_as_generated): Also check for -- and link to -- files in
42808         gl/.
42809
42810         2007-07-08  Jim Meyering  <jim@meyering.net>
42811
42812         Adapt to deeper hierarchy in gnulib.
42813         * build-aux/bootstrap (symlink_to_dir): If the destination
42814         directory doesn't exist, create it. This is required at least for
42815         "lib/uniwidth/cjk.h".
42816
42817         2007-05-15  Jim Meyering  <jim@meyering.net>
42818
42819         * build-aux/bootstrap: Now that generated Makefile.am files
42820         are no longer under version control, they must be created at
42821         bootstrap time.
42822
42823 2007-08-14  Ben Pfaff  <blp@gnu.org>
42824
42825         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42826
42827 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42828
42829         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42830         given the changes below.
42831         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42832         even on hosts that have padding bits beyond the supported 64.
42833
42834 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42835
42836         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42837         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42838         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42839         depends on it.
42840         (xstrtol_error): Remove.
42841         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42842         but with a different signature.
42843         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42844         * lib/xstrtol-error.c: Include exitfail.h.
42845         (xstrtol_fatal): New function, with a different signature from the
42846         old xstrtol_error, so that the caller need not worry about passing
42847         in an exit status, or about storage management of the option argument.
42848         (xstrtol_error): Now a static function.  Redo signature to
42849         implement xstrtol_fatal.  Output the correct number of hyphens in
42850         front of the option so that the caller need not worry about
42851         storage management.
42852         (N_): New macro.
42853         (_): Remove; not used now.
42854         * modules/xstrtol: Depend on getopt.
42855         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42856         of old STRTOL_FATAL_ERROR macro.
42857         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42858         of test program.
42859         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42860         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42861
42862 2007-08-08  Eric Blake  <ebb9@byu.net>
42863
42864         * lib/xstrtol-error.c: Add missing include.
42865
42866         Move xstrtol messages into gnulib domain, when --pobase is used.
42867         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42868         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42869         * modules/xstrtol (Files): Distribute new file.
42870         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42871         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42872         * tests/test-xstrtol.c: ...into new file.
42873         * tests/test-xstrtoul.c: Also test xstrtoul.
42874         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42875         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42876         * tests/test-xstrtol.sh: Drive the tests.
42877         * tests/test-xstrtoimax.sh: Likewise.
42878         * tests/test-xstrtoumax.sh: Likewise.
42879         * modules/xstrtol-tests: New module.
42880         * modules/xstrtoimax-tests: Likewise.
42881         * modules/xstrtoumax-tests: Likewise.
42882
42883 2007-08-08  Jim Meyering  <jim@meyering.net>
42884
42885         New function: mfile_name_concat.
42886         * lib/filenamecat.c (mfile_name_concat): New function, just like
42887         file_name_concat, but return NULL upon failure rather than exiting
42888         with a diagnostic.
42889         * lib/filenamecat.h: Declare it.
42890
42891 2007-08-07  Bruno Haible  <bruno@clisp.org>
42892
42893         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42894         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42895         warning from gcc.
42896         Reported by Eric Blake.
42897
42898 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42899
42900         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42901         * modules/crypto/arcfour (License): Likewise.
42902         * modules/crypto/des-tests (License): Likewise.
42903         * modules/crypto/gc-arctwo-tests (License): Likewise.
42904         * modules/crypto/gc-des-tests (License): Likewise.
42905         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42906         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42907         * modules/crypto/gc-md2-tests (License): Likewise.
42908         * modules/crypto/gc-md4-tests (License): Likewise.
42909         * modules/crypto/gc-md5-tests (License): Likewise.
42910         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42911         * modules/crypto/gc-rijndael-tests (License): Likewise.
42912         * modules/crypto/gc-sha1-tests (License): Likewise.
42913         * modules/crypto/gc-tests (License): Likewise.
42914         * modules/crypto/hmac-md5 (License): Likewise.
42915         * modules/crypto/hmac-sha1 (License): Likewise.
42916         * modules/crypto/md2-tests (License): Likewise.
42917         * modules/crypto/md4-tests (License): Likewise.
42918         * modules/crypto/md5 (License): Likewise.
42919         * modules/crypto/rijndael (License): Likewise.
42920         * modules/crypto/sha1 (License): Likewise.
42921         * modules/memxor (License): Likewise.
42922
42923 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42924         and Bruno Haible  <bruno@clisp.org>
42925
42926         * NEWS: Describe interface changes to human, xstrtol.
42927         * lib/human.h: Include <xstrtol.h>.
42928         (human_options): Return enum strtol_error, not int.  Remove
42929         bool arg; take int * instead.
42930         * lib/human.c: Don't include "gettext.h".
42931         (_): Remove; no longer used.
42932         Don't include <xstrtol.h>, since human.h does it.
42933         (human_options): Adjust to abovementioned interface changes.
42934         Do not report error to stderr; that's now the caller's
42935         responsibility.
42936         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42937         interface change.
42938         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42939         Str, Argument_type_string.  All uses changed.  Put " argument"
42940         in diagnostics to make them clearer.  Change wording of suffix
42941         message for clarity.
42942         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42943         Argument_type_string.
42944         (STRTOL_FATAL_WARN): Remove; no longer used.
42945         * modules/human (Depends-on): Remove gettext-h.
42946
42947 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42948
42949         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42950
42951 2007-07-31  Bruno Haible  <bruno@clisp.org>
42952
42953         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42954         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42955         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42956
42957 2007-07-31  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42960         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42961
42962 2007-07-30  Bruno Haible  <bruno@clisp.org>
42963
42964         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42965         * modules/c-ctype (License): Likewise.
42966         * modules/c-strcase (License): Likewise.
42967         * modules/check-version (License): Likewise.
42968         * modules/iconv (License): Likewise.
42969         * modules/iconv_open (License): Likewise.
42970         * modules/read-file (License): Likewise.
42971         * modules/striconv (License): Likewise.
42972         * modules/strverscmp (License): Likewise.
42973         * modules/vasprintf (License): Likewise.
42974         * modules/crypto/des (License): Likewise.
42975         * modules/crypto/gc (License): Likewise.
42976         * modules/crypto/gc-arcfour (License): Likewise.
42977         * modules/crypto/gc-arctwo (License): Likewise.
42978         * modules/crypto/gc-des (License): Likewise.
42979         * modules/crypto/gc-hmac-md5 (License): Likewise.
42980         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42981         * modules/crypto/gc-md2 (License): Likewise.
42982         * modules/crypto/gc-md4 (License): Likewise.
42983         * modules/crypto/gc-md5 (License): Likewise.
42984         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42985         * modules/crypto/gc-random (License): Likewise.
42986         * modules/crypto/gc-rijndael (License): Likewise.
42987         * modules/crypto/gc-sha1 (License): Likewise.
42988         * modules/crypto/md2 (License): Likewise.
42989         * modules/crypto/md4 (License): Likewise.
42990
42991 2007-07-30  Jim Meyering  <jim@meyering.net>
42992
42993         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42994         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42995         it has valid stat data.  This bug would cause du not to count the
42996         sizes of inaccessible directories.
42997         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42998         in <http://bugzilla.redhat.com/250077>.
42999
43000 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43001             Bruno Haible  <bruno@clisp.org>
43002
43003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43004         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43005         #include_next, gives a diagnostic about it, but reports no error in
43006         the exit code.
43007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43008
43009 2007-07-24  Ben Pfaff  <blp@gnu.org>
43010
43011         Improve name: "count-one-bits" is better than "popcount".
43012         * MODULES.html.sh: Update name.
43013         * lib/popcount.h: Renamed lib/count-one-bits.h.
43014         (popcount): Renamed count_one_bits.
43015         (popcountl): Renamed count_one_bits_l.
43016         (popcountll): Renamed count_one_bits_ll.
43017         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43018         * modules/popcount: Renamed module/count-one-bits.
43019         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43020         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43021
43022 2007-07-23  Ben Pfaff  <blp@gnu.org>
43023
43024         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43025         better code generation, and add U to large constants to avoid
43026         warnings, in non-GCC case.
43027         Suggested by Bruno Haible.
43028
43029 2007-07-23  Ben Pfaff  <blp@gnu.org>
43030
43031         * lib/popcount.h: Use verify_true instead of if...abort.
43032         * modules/popcount: Depend on verify module.
43033         Suggested by Jim Meyering.
43034
43035 2007-07-23  Bruno Haible  <bruno@clisp.org>
43036
43037         * gnulib-tool (func_import): Create a .cvsignore file also when the
43038         directory is not yet in CVS but the toplevel directory is. When
43039         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43040         Reported by Karl Berry.
43041
43042 2007-07-22  Ben Pfaff  <blp@gnu.org>
43043
43044         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43045         case.
43046         Suggested by Eric Blake.
43047
43048 2007-07-22  Ben Pfaff  <blp@gnu.org>
43049
43050         New module: popcount.
43051         * MODULES.html.sh: Add popcount.
43052         * modules/popcount: New file.
43053         * modules/popcount-tests: New file.
43054         * tests/test-popcount.c: New file.
43055         * lib/popcount.h: New file.
43056         * m4/popcount.m4: New file.
43057
43058 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43059
43060         * build-aux/announce-gen: Update to GPLv3.
43061
43062         * build-aux/config.guess: Update from config.
43063
43064 2007-07-21  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43067         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43068
43069 2007-07-20  Jim Meyering  <jim@meyering.net>
43070
43071         * check-module: Diagnose a self-dependency.
43072
43073 2007-07-19  Bruno Haible  <bruno@clisp.org>
43074
43075         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43076         empty.
43077         Reported by Eric Blake.
43078
43079 2007-07-18  Bruno Haible  <bruno@clisp.org>
43080
43081         * gnulib-tool: New options --po-base, --po-domain.
43082         (func_usage): Document them.
43083         (pobase, po_domain): New variables.
43084         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43085         DEFAULT_TEXT_DOMAIN.
43086         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43087         (func_import): Consider pobase and po_domain. Create a po/ directory.
43088         (func_create_testdir): Set pobase and po_domain to empty.
43089         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43090         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43091
43092 2007-07-18  Bruno Haible  <bruno@clisp.org>
43093
43094         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43095         EXTRA_DIST augmentation for files in build-aux/.
43096
43097 2007-07-16  Bruno Haible  <bruno@clisp.org>
43098
43099         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43100         * modules/getdelim (License): Likewise.
43101
43102 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43103
43104         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43105         * modules/d-type (License): Likewise.
43106         * modules/extensions (License): Likewise.
43107         * modules/fnmatch (License): Likewise.
43108         * modules/fseeko (License): Likewise.
43109         * modules/getaddrinfo (License): Likewise.
43110         * modules/getline (License): Likewise.
43111         * modules/getlogin_r (License): Likewise.
43112         * modules/getpass (License): Likewise.
43113         * modules/gettimeofday (License): Likewise.
43114         * modules/glob (License): Likewise.
43115         * modules/inet_ntop (License): Likewise.
43116         * modules/malloc (License): Likewise.
43117         * modules/malloca (License): Likewise.
43118         * modules/memmem (License): Likewise.
43119         * modules/mempcpy (License): Likewise.
43120         * modules/memset (License): Likewise.
43121         * modules/minmax (License): Likewise.
43122         * modules/mktime (License): Likewise.
43123         * modules/netinet_in (License): Likewise.
43124         * modules/pathmax (License): Likewise.
43125         * modules/poll (License): Likewise.
43126         * modules/regex (License): Likewise.
43127         * modules/snprintf (License): Likewise.
43128         * modules/stdbool (License): Likewise.
43129         * modules/stdint (License): Likewise.
43130         * modules/stdio (License): Likewise.
43131         * modules/strcase (License): Likewise.
43132         * modules/strcasestr (License): Likewise.
43133         * modules/strdup (License): Likewise.
43134         * modules/string (License): Likewise.
43135         * modules/strndup (License): Likewise.
43136         * modules/strnlen (License): Likewise.
43137         * modules/strpbrk (License): Likewise.
43138         * modules/strptime (License): Likewise.
43139         * modules/strsep (License): Likewise.
43140         * modules/sys_select (License): Likewise.
43141         * modules/sys_socket (License): Likewise.
43142         * modules/sys_stat (License): Likewise.
43143         * modules/sys_time (License): Likewise.
43144         * modules/time (License): Likewise.
43145         * modules/time_r (License): Likewise.
43146         * modules/timegm (License): Likewise.
43147         * modules/unistd (License): Likewise.
43148         * modules/vsnprintf (License): Likewise.
43149         * modules/wctype (License): Likewise.
43150
43151 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43152
43153         * modules/argz (License): LGPLv2+.
43154
43155 2007-07-15  Karl Berry  <karl@gnu.org>
43156
43157         * doc/gnulib.texi: revise node structure per new fdl.texi.
43158
43159 2007-07-14  Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43162         the output file.
43163         * lib/uniname/uninames.h: Regenerated.
43164
43165 2007-07-14  Karl Berry  <karl@gnu.org>
43166
43167         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43168         omitting sectioning and index commands.
43169
43170 2007-07-13  Bruno Haible  <bruno@clisp.org>
43171
43172         New gnulib-tool option --more-symlinks.
43173         * gnulib-tool (func_usage): Document --more-symlinks.
43174         (do_copyrights): New variable.
43175         Recognize option --more-symlinks.
43176         (func_import): Don't add a copyright notice transform to
43177         sed_transform_lib_file if do_copyrights is empty.
43178
43179 2007-07-13  Bruno Haible  <bruno@clisp.org>
43180
43181         * lib/vasnprintf.c (decimal_point_char): Define also if
43182         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43183         && !NEED_PRINTF_DIRECTIVE_A.
43184         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43185         Gary V. Vaughan <gary@gnu.org>.
43186
43187 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43188
43189         * lib/inttypes_.h: Undo previous change, since it was fixed
43190         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43191
43192 2007-07-13  Bruno Haible  <bruno@clisp.org>
43193
43194         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43195         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43196
43197 2007-07-13  Jim Meyering  <jim@meyering.net>
43198
43199         df: Don't fail for Tru64's "file-on-file mount".
43200         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43201         so we fall through and use statfs instead.  Details here:
43202         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43203         Reported by Albert Chin.
43204
43205 2007-07-13  Bruno Haible  <bruno@clisp.org>
43206
43207         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43208         * modules/configmake (License): Likewise.
43209         * modules/gettext (License): Likewise.
43210         * modules/gettext-h (License): Likewise.
43211         * modules/include_next (License): Likewise.
43212         * modules/link-warning (License): Likewise.
43213         * modules/localcharset (License): Likewise.
43214         * modules/localename (License): Likewise.
43215         * modules/lock (License): Likewise.
43216         * modules/relocatable-lib-lgpl (License): Likewise.
43217         * modules/size_max (License): Likewise.
43218         * modules/vasnprintf (License): Likewise.
43219         * modules/wchar (License): Likewise.
43220         * modules/xsize (License): Likewise.
43221
43222 2007-07-13  Bruno Haible  <bruno@clisp.org>
43223
43224         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43225         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43226
43227 2007-07-12  Bruno Haible  <bruno@clisp.org>
43228
43229         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43230         in the modules files.
43231
43232 2007-07-11  Karl Berry  <karl@gnu.org>
43233
43234         * MODULES.html.sh (func_module): use
43235          sed -e '\|^'"${includefile}"'$|d'
43236          instead of /.../d, to avoid errors on $includefile's containing /.
43237
43238 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43239
43240         * gnulib-tool (func_import): Avoid duplication of --avoid
43241         statements
43242         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43243         names to `_' in variable names.
43244
43245 2007-07-10  Eric Blake  <ebb9@byu.net>
43246
43247         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43248         * NEWS: Document this change.
43249
43250 2007-07-08  Bruno Haible  <bruno@clisp.org>
43251
43252         Update to Unicode 5.0.
43253         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43254         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43255         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43256         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43257         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43258         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43259         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43260         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43261         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43262         U+10A3F, U+1D242..U+1D244.
43263         (nonspacing_table_ind): Update.
43264         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43265         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43266
43267 2007-07-08  Bruno Haible  <bruno@clisp.org>
43268
43269         Update to Unicode 5.0.
43270         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43271         code transform. Extend the name index field of unicode_name_to_code and
43272         unicode_code_to_name from 16 to 24 bits.
43273         * lib/uniname/uniname.c (unicode_character_name,
43274         unicode_name_character): Add the range 0x12xxx to the code transform.
43275         * lib/uniname/uninames.h: Regenerated.
43276         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43277
43278 2007-07-07  Bruno Haible  <bruno@clisp.org>
43279
43280         * modules/wcwidth-tests: New file.
43281         * tests/test-wcwidth.c: New file.
43282
43283         Work around MacOS X wcwidth() bug.
43284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43285         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43286         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43287         original wcwidth in non-UTF-8 locales.
43288         * modules/wcwidth (Depends-on): Add localcharset, streq,
43289         uniwidth/width.
43290         * doc/functions/wcwidth.texi: Update.
43291
43292 2007-07-07  Bruno Haible  <bruno@clisp.org>
43293
43294         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
43295         (wcwidth): New declaration.
43296         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
43297         macros.
43298         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
43299         here. Prepare for creating <wchar.h> unconditionally.
43300         * modules/wchar (Depends-on): Add link-warning.
43301         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
43302         REPLACE_WCWIDTH, and GL_LINK_WARNING.
43303         * lib/wcwidth.h: Remove file.
43304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
43305         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
43306         * modules/wcwidth (Files): Remove lib/wcwidth.h.
43307         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
43308         (Include): Replace wcwidth.h with <wchar.h>.
43309         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
43310         * lib/mbchar.h: Don't include wcwidth.h.
43311         * lib/mbswidth.c: Likewise.
43312         * NEWS: Mention the change.
43313
43314 2007-07-07  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
43317         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
43318         definition with an external declaration.
43319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
43320         defined as a function. Remove AC_C_INLINE requirement.
43321         * modules/wcwidth (Files): Add lib/wcwidth.c.
43322         (Makefile.am): Remove redundant statement.
43323
43324 2007-07-07  Bruno Haible  <bruno@clisp.org>
43325
43326         * MODULES.html.sh (Unicode string functions): Add the new modules.
43327
43328         * tests/uniwidth/test-u32-strwidth.c: New file.
43329         * modules/uniwidth/u32-strwidth-tests: New file.
43330
43331         * lib/uniwidth/u32-strwidth.c: New file.
43332         * modules/uniwidth/u32-strwidth: New file.
43333
43334         * tests/uniwidth/test-u16-strwidth.c: New file.
43335         * modules/uniwidth/u16-strwidth-tests: New file.
43336
43337         * lib/uniwidth/u16-strwidth.c: New file.
43338         * modules/uniwidth/u16-strwidth: New file.
43339
43340         * tests/uniwidth/test-u8-strwidth.c: New file.
43341         * modules/uniwidth/u8-strwidth-tests: New file.
43342
43343         * lib/uniwidth/u8-strwidth.c: New file.
43344         * modules/uniwidth/u8-strwidth: New file.
43345
43346         * tests/uniwidth/test-u32-width.c: New file.
43347         * modules/uniwidth/u32-width-tests: New file.
43348
43349         * lib/uniwidth/u32-width.c: New file.
43350         * modules/uniwidth/u32-width: New file.
43351
43352         * tests/uniwidth/test-u16-width.c: New file.
43353         * modules/uniwidth/u16-width-tests: New file.
43354
43355         * lib/uniwidth/u16-width.c: New file.
43356         * modules/uniwidth/u16-width: New file.
43357
43358         * tests/uniwidth/test-u8-width.c: New file.
43359         * modules/uniwidth/u8-width-tests: New file.
43360
43361         * lib/uniwidth/u8-width.c: New file.
43362         * modules/uniwidth/u8-width: New file.
43363
43364         * tests/uniwidth/test-uc_width.c: New file.
43365         * modules/uniwidth/width-tests: New file.
43366
43367         * lib/uniwidth/width.c: New file, from GNU libiconv.
43368         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43369         * modules/uniwidth/width: New file.
43370
43371         * lib/uniwidth.h: New file, from GNU libiconv.
43372         * modules/uniwidth/base: New file.
43373
43374 2007-07-07  Bruno Haible  <bruno@clisp.org>
43375
43376         * lib/uniname.h: New file, from GNU gettext.
43377         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43378         * lib/uniname/uninames.h: New file, from GNU gettext.
43379         * lib/uniname/uniname.c: New file, from GNU gettext.
43380         * tests/uniname/test-uninames.sh: New file.
43381         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43382         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43383         * modules/uniname/base: New file.
43384         * modules/uniname/uniname: New file.
43385         * modules/uniname/uniname-tests: New file.
43386         * MODULES.html.sh (Unicode string functions): Add the new modules.
43387
43388 2007-07-06  Bruno Haible  <bruno@clisp.org>
43389
43390         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43391
43392 2007-07-06  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43395         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43396         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43397         include <sys/time.h>.
43398         Reported by Eric Blake.
43399
43400 2007-07-06  Eric Blake  <ebb9@byu.net>
43401
43402         Fix testing canonicalize on cygwin.
43403         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43404         Revert patch from 2007-06-19.
43405         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43406         canonicalize module is also in use.
43407         * tests/test-canonicalize.c: New file.
43408         * tests/test-canonicalize.sh: Likewise.
43409         * modules/canonicalize-tests: Likewise.
43410
43411 2007-07-06  Jim Meyering  <jim@meyering.net>
43412
43413         * lib/getugroups.c (getugroups): Detect getgrent failure.
43414         Adjust comment to reflect reality: this function may return -1.
43415
43416 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43417
43418         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43419         the new TP address.
43420         (usage): Fix typo
43421         (gnulib_mk): New variable.
43422
43423 2007-07-05  Jim Meyering  <jim@meyering.net>
43424
43425         Don't let endgrent clobber errno, no matter how improbable.
43426         * lib/getugroups.c (getugroups): Save and restore errno around
43427         endgrent call.
43428
43429         Close the group DB even when failing with 2^31 or more members.
43430         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43431
43432 2007-07-04  Jim Meyering  <jim@meyering.net>
43433
43434         * lib/getugroups.h: New file.
43435         * lib/getugroups.c: Include "getugroups.h".
43436         Remove uses of "register" keyword.
43437         Move local variable, "cp", down into scope where used.
43438         Give "username" parameter the "const" attribute.
43439         * modules/getugroups (Files): Add lib/getugroups.h
43440
43441 2007-07-04  Karl Berry  <karl@gnu.org>
43442
43443         * MODULES.html.sh (func_all_modules): Complete rename of
43444         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43445
43446 2007-07-02  Bruno Haible  <bruno@clisp.org>
43447
43448         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43449         mode, when inttypes.h comes from gnulib.
43450         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43451
43452 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43453
43454         * NEWS: Mention lgpl module name change.
43455
43456         * modules/lgpl-2.1: Renamed from lgpl.
43457
43458         * NEWS: Mention gpl module name change.
43459
43460         * modules/gpl-3.0: New file, based on gpl-2.0.
43461
43462         * modules/gpl-2.0: Renamed from gpl.
43463
43464         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43465         doc/gpl-2.0.texi.
43466
43467 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43470         #define __STDC_LIMIT_MACROS temporarily while including
43471         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43472         Problem reported by Joel E. Denny in
43473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43474
43475 2007-07-01  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/unistdio.h: New file.
43478         * lib/unistdio/u-asnprintf.h: New file.
43479         * lib/unistdio/u-asprintf.h: New file.
43480         * lib/unistdio/u-printf-args.c: New file.
43481         * lib/unistdio/u-printf-args.h: New file.
43482         * lib/unistdio/u-printf-parse.h: New file.
43483         * lib/unistdio/u-snprintf.h: New file.
43484         * lib/unistdio/u-sprintf.h: New file.
43485         * lib/unistdio/u-vasprintf.h: New file.
43486         * lib/unistdio/u-vsnprintf.h: New file.
43487         * lib/unistdio/u-vsprintf.h: New file.
43488         * lib/unistdio/ulc-asnprintf.c: New file.
43489         * lib/unistdio/ulc-asprintf.c: New file.
43490         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43491         * lib/unistdio/ulc-printf-parse.c: New file.
43492         * lib/unistdio/ulc-snprintf.c: New file.
43493         * lib/unistdio/ulc-sprintf.c: New file.
43494         * lib/unistdio/ulc-vasnprintf.c: New file.
43495         * lib/unistdio/ulc-vasprintf.c: New file.
43496         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43497         * lib/unistdio/ulc-vsnprintf.c: New file.
43498         * lib/unistdio/ulc-vsprintf.c: New file.
43499         * lib/unistdio/u8-asnprintf.c: New file.
43500         * lib/unistdio/u8-asprintf.c: New file.
43501         * lib/unistdio/u8-printf-parse.c: New file.
43502         * lib/unistdio/u8-snprintf.c: New file.
43503         * lib/unistdio/u8-sprintf.c: New file.
43504         * lib/unistdio/u8-vasnprintf.c: New file.
43505         * lib/unistdio/u8-vasprintf.c: New file.
43506         * lib/unistdio/u8-vsnprintf.c: New file.
43507         * lib/unistdio/u8-vsprintf.c: New file.
43508         * lib/unistdio/u8-u8-asnprintf.c: New file.
43509         * lib/unistdio/u8-u8-asprintf.c: New file.
43510         * lib/unistdio/u8-u8-snprintf.c: New file.
43511         * lib/unistdio/u8-u8-sprintf.c: New file.
43512         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43513         * lib/unistdio/u8-u8-vasprintf.c: New file.
43514         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43515         * lib/unistdio/u8-u8-vsprintf.c: New file.
43516         * lib/unistdio/u16-asnprintf.c: New file.
43517         * lib/unistdio/u16-asprintf.c: New file.
43518         * lib/unistdio/u16-printf-parse.c: New file.
43519         * lib/unistdio/u16-snprintf.c: New file.
43520         * lib/unistdio/u16-sprintf.c: New file.
43521         * lib/unistdio/u16-vasnprintf.c: New file.
43522         * lib/unistdio/u16-vasprintf.c: New file.
43523         * lib/unistdio/u16-vsnprintf.c: New file.
43524         * lib/unistdio/u16-vsprintf.c: New file.
43525         * lib/unistdio/u16-u16-asnprintf.c: New file.
43526         * lib/unistdio/u16-u16-asprintf.c: New file.
43527         * lib/unistdio/u16-u16-snprintf.c: New file.
43528         * lib/unistdio/u16-u16-sprintf.c: New file.
43529         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43530         * lib/unistdio/u16-u16-vasprintf.c: New file.
43531         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43532         * lib/unistdio/u16-u16-vsprintf.c: New file.
43533         * lib/unistdio/u32-asnprintf.c: New file.
43534         * lib/unistdio/u32-asprintf.c: New file.
43535         * lib/unistdio/u32-printf-parse.c: New file.
43536         * lib/unistdio/u32-snprintf.c: New file.
43537         * lib/unistdio/u32-sprintf.c: New file.
43538         * lib/unistdio/u32-vasnprintf.c: New file.
43539         * lib/unistdio/u32-vasprintf.c: New file.
43540         * lib/unistdio/u32-vsnprintf.c: New file.
43541         * lib/unistdio/u32-vsprintf.c: New file.
43542         * lib/unistdio/u32-u32-asnprintf.c: New file.
43543         * lib/unistdio/u32-u32-asprintf.c: New file.
43544         * lib/unistdio/u32-u32-snprintf.c: New file.
43545         * lib/unistdio/u32-u32-sprintf.c: New file.
43546         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43547         * lib/unistdio/u32-u32-vasprintf.c: New file.
43548         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43549         * lib/unistdio/u32-u32-vsprintf.c: New file.
43550         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43551         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43552         * tests/unistdio/test-ulc-printf1.h: New file.
43553         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43554         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43555         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43556         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43557         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43558         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43559         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43560         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43561         * tests/unistdio/test-u8-asnprintf1.c: New file.
43562         * tests/unistdio/test-u8-asnprintf1.h: New file.
43563         * tests/unistdio/test-u8-printf1.h: New file.
43564         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43565         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43566         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43567         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43568         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43569         * tests/unistdio/test-u8-vasprintf1.c: New file.
43570         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43571         * tests/unistdio/test-u8-vsprintf1.c: New file.
43572         * tests/unistdio/test-u16-asnprintf1.c: New file.
43573         * tests/unistdio/test-u16-asnprintf1.h: New file.
43574         * tests/unistdio/test-u16-printf1.h: New file.
43575         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43576         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43577         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43578         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43579         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43580         * tests/unistdio/test-u16-vasprintf1.c: New file.
43581         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43582         * tests/unistdio/test-u16-vsprintf1.c: New file.
43583         * tests/unistdio/test-u32-asnprintf1.c: New file.
43584         * tests/unistdio/test-u32-asnprintf1.h: New file.
43585         * tests/unistdio/test-u32-printf1.h: New file.
43586         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43587         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43588         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43589         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43590         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43591         * tests/unistdio/test-u32-vasprintf1.c: New file.
43592         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43593         * tests/unistdio/test-u32-vsprintf1.c: New file.
43594         * modules/unistdio/base: New file.
43595         * modules/unistdio/u-printf-args: New file.
43596         * modules/unistdio/ulc-asnprintf: New file.
43597         * modules/unistdio/ulc-asprintf: New file.
43598         * modules/unistdio/ulc-fprintf: New file.
43599         * modules/unistdio/ulc-printf-parse: New file.
43600         * modules/unistdio/ulc-snprintf: New file.
43601         * modules/unistdio/ulc-sprintf: New file.
43602         * modules/unistdio/ulc-vasnprintf: New file.
43603         * modules/unistdio/ulc-vasprintf: New file.
43604         * modules/unistdio/ulc-vfprintf: New file.
43605         * modules/unistdio/ulc-vsnprintf: New file.
43606         * modules/unistdio/ulc-vsprintf: New file.
43607         * modules/unistdio/u8-asnprintf: New file.
43608         * modules/unistdio/u8-asprintf: New file.
43609         * modules/unistdio/u8-printf-parse: New file.
43610         * modules/unistdio/u8-snprintf: New file.
43611         * modules/unistdio/u8-sprintf: New file.
43612         * modules/unistdio/u8-vasnprintf: New file.
43613         * modules/unistdio/u8-vasprintf: New file.
43614         * modules/unistdio/u8-vsnprintf: New file.
43615         * modules/unistdio/u8-vsprintf: New file.
43616         * modules/unistdio/u8-u8-asnprintf: New file.
43617         * modules/unistdio/u8-u8-asprintf: New file.
43618         * modules/unistdio/u8-u8-snprintf: New file.
43619         * modules/unistdio/u8-u8-sprintf: New file.
43620         * modules/unistdio/u8-u8-vasnprintf: New file.
43621         * modules/unistdio/u8-u8-vasprintf: New file.
43622         * modules/unistdio/u8-u8-vsnprintf: New file.
43623         * modules/unistdio/u8-u8-vsprintf: New file.
43624         * modules/unistdio/u16-asnprintf: New file.
43625         * modules/unistdio/u16-asprintf: New file.
43626         * modules/unistdio/u16-printf-parse: New file.
43627         * modules/unistdio/u16-snprintf: New file.
43628         * modules/unistdio/u16-sprintf: New file.
43629         * modules/unistdio/u16-vasnprintf: New file.
43630         * modules/unistdio/u16-vasprintf: New file.
43631         * modules/unistdio/u16-vsnprintf: New file.
43632         * modules/unistdio/u16-vsprintf: New file.
43633         * modules/unistdio/u16-u16-asnprintf: New file.
43634         * modules/unistdio/u16-u16-asprintf: New file.
43635         * modules/unistdio/u16-u16-snprintf: New file.
43636         * modules/unistdio/u16-u16-sprintf: New file.
43637         * modules/unistdio/u16-u16-vasnprintf: New file.
43638         * modules/unistdio/u16-u16-vasprintf: New file.
43639         * modules/unistdio/u16-u16-vsnprintf: New file.
43640         * modules/unistdio/u16-u16-vsprintf: New file.
43641         * modules/unistdio/u32-asnprintf: New file.
43642         * modules/unistdio/u32-asprintf: New file.
43643         * modules/unistdio/u32-printf-parse: New file.
43644         * modules/unistdio/u32-snprintf: New file.
43645         * modules/unistdio/u32-sprintf: New file.
43646         * modules/unistdio/u32-vasnprintf: New file.
43647         * modules/unistdio/u32-vasprintf: New file.
43648         * modules/unistdio/u32-vsnprintf: New file.
43649         * modules/unistdio/u32-vsprintf: New file.
43650         * modules/unistdio/u32-u32-asnprintf: New file.
43651         * modules/unistdio/u32-u32-asprintf: New file.
43652         * modules/unistdio/u32-u32-snprintf: New file.
43653         * modules/unistdio/u32-u32-sprintf: New file.
43654         * modules/unistdio/u32-u32-vasnprintf: New file.
43655         * modules/unistdio/u32-u32-vasprintf: New file.
43656         * modules/unistdio/u32-u32-vsnprintf: New file.
43657         * modules/unistdio/u32-u32-vsprintf: New file.
43658         * modules/unistdio/ulc-asnprintf-tests: New file.
43659         * modules/unistdio/ulc-vasnprintf-tests: New file.
43660         * modules/unistdio/ulc-vasprintf-tests: New file.
43661         * modules/unistdio/ulc-vsnprintf-tests: New file.
43662         * modules/unistdio/ulc-vsprintf-tests: New file.
43663         * modules/unistdio/u8-asnprintf-tests: New file.
43664         * modules/unistdio/u8-vasnprintf-tests: New file.
43665         * modules/unistdio/u8-vasprintf-tests: New file.
43666         * modules/unistdio/u8-vsnprintf-tests: New file.
43667         * modules/unistdio/u8-vsprintf-tests: New file.
43668         * modules/unistdio/u16-asnprintf-tests: New file.
43669         * modules/unistdio/u16-vasnprintf-tests: New file.
43670         * modules/unistdio/u16-vasprintf-tests: New file.
43671         * modules/unistdio/u16-vsnprintf-tests: New file.
43672         * modules/unistdio/u16-vsprintf-tests: New file.
43673         * modules/unistdio/u32-asnprintf-tests: New file.
43674         * modules/unistdio/u32-vasnprintf-tests: New file.
43675         * modules/unistdio/u32-vasprintf-tests: New file.
43676         * modules/unistdio/u32-vsnprintf-tests: New file.
43677         * modules/unistdio/u32-vsprintf-tests: New file.
43678         * MODULES.html.sh (Unicode string functions): Add the new modules.
43679
43680 2007-07-01  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/sprintf.c (sprintf): Limit the available length estimation,
43683         to avoid address wraparound.
43684         * lib/vsprintf.c (vsprintf): Likewise.
43685         * modules/sprintf-posix (Dependencies): Add stdint.
43686         * modules/vsprintf-posix (Dependencies): Likewise.
43687
43688 2007-07-01  Bruno Haible  <bruno@clisp.org>
43689
43690         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43691         Windows PATH as well. Conservative double-quoting. Comments.
43692
43693 2007-07-01  Bruno Haible  <bruno@clisp.org>
43694             Eric Blake  <ebb9@byu.net>
43695             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43696
43697         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43698         empty components in $PATH, denoting '.'.
43699
43700 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43701
43702         * gnulib-tool: Fix indentation.
43703         (func_create_megatestdir): Likewise.
43704         Report by Bruno Haible.
43705
43706 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43707
43708         Sync from Automake.
43709         * build-aux/gnupload: Fix shell portability issues with for loops.
43710         Report by Karl Berry.
43711
43712 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43713
43714         * build-aux/maint.mk (POURL): Use translationproject.org.
43715
43716 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43717             Bruno Haible  <bruno@clisp.org>
43718
43719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43720         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43721         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43722         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43723         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43724
43725 2007-06-27  Bruno Haible  <bruno@clisp.org>
43726
43727         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43728         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43729
43730 2007-06-26  Karl Berry  <karl@gnu.org>
43731
43732         * MODULES.html.sh: remove xreadlink-with-size.
43733
43734 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43735
43736         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43737         method that I hope also handles the double-include problem noted
43738         by Bruno Haible in
43739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43740
43741 2007-06-23  Bruno Haible  <bruno@clisp.org>
43742
43743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43744         Don't let the 'mostlyclean' target fail if the last subdirectory could
43745         not be removed.
43746         Reported by Karl Berry.
43747
43748 2007-06-23  Bruno Haible  <bruno@clisp.org>
43749
43750         * gnulib-tool (echo): Add a speedier workaround for ksh.
43751         * tests/test-echo.sh: Likewise.
43752
43753 2007-06-23  Bruno Haible  <bruno@clisp.org>
43754
43755         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43756         * tests/test-echo.sh: Likewise.
43757
43758 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43759
43760         * gnulib-tool (IFS): Initialize early, so we don't set it to
43761         empty later.
43762         (self_abspathname): Rewrite algorithm to set it, reindent.
43763         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43764         (func_create_megatestdir): Merge some sed scripts.
43765
43766 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43767
43768         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43769         exposed by Sun Studio 11 cc on Solaris 8.
43770
43771 2007-06-22  Bruno Haible  <bruno@clisp.org>
43772
43773         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43774         backslashes.
43775         * tests/test-echo.sh: New file.
43776
43777 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778
43779         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43780         simplify `sed_replace_build_aux' scripts, they are portable but
43781         echoing them with `echo' is not.
43782         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43783
43784 2007-06-21  Karl Berry  <karl@gnu.org>
43785
43786         * config/srclist.txt: guess we can't handle the licenses via
43787         srclist at the moment.
43788
43789 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43790
43791         * MODULES.html.sh: Add include_next.
43792         * modules/include_next: New file.
43793
43794 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43795
43796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43797         INCLUDE_NEXT.
43798         (gl_CHECK_NEXT_HEADERS): New macro.
43799         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43800         the obsolescent gl_ABSOLUTE_HEADER.
43801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43802         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43803         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43804         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43805         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43806         * m4/math_h.m4 (gl_MATH_H): Likewise.
43807         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43808         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43809         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43810         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43811         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43812         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43818         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43819         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43820         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43822         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43823         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43824         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43825         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43826         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43827         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43828         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43829         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43830         * lib/float_.h: Likewise.
43831         * lib/inttypes_.h: Likewise.
43832         * lib/math_.h: Likewise.
43833         * lib/search_.h: Likewise.
43834         * lib/signal_.h: Likewise.
43835         * lib/stdint_.h: Likewise.
43836         * lib/stdio_.h: Likewise.
43837         * lib/stdlib_.h: Likewise.
43838         * lib/string_.h: Likewise.
43839         * lib/sys_stat_.h: Likewise.
43840         * lib/sys_time_.h: Likewise.
43841         * lib/time_.h: Likewise.
43842         * lib/unistd_.h: Likewise.
43843         * lib/wchar_.h: Likewise.
43844         * lib/wctype_.h: Likewise.
43845         * lib/dirent_.h: Likewise.
43846         * lib/iconv_.h: Likewise.
43847         * lib/locale_.h: Likewise.
43848         * lib/netinet_in_.h: Likewise.
43849         * lib/sys_select_.h: Likewise.
43850         * lib/sys_socket_.h: Likewise.
43851         * lib/sysexits_.h: Likewise.
43852         * modules/fcntl (Depends-on): Depend on include_next, not
43853         absolute_header.
43854         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43855         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43856         * modules/fchdir: Likewise.
43857         * modules/float: Likewise.
43858         * modules/iconv_open: Likewise.
43859         * modules/inttypes: Likewise.
43860         * modules/locale: Likewise.
43861         * modules/math: Likewise.
43862         * modules/netinet_in: Likewise.
43863         * modules/search: Likewise.
43864         * modules/signal: Likewise.
43865         * modules/stdint: Likewise.
43866         * modules/stdio: Likewise.
43867         * modules/stdlib: Likewise.
43868         * modules/string: Likewise.
43869         * modules/sys_select: Likewise.
43870         * modules/sys_socket: Likewise.
43871         * modules/sys_stat: Likewise.
43872         * modules/sys_time: Likewise.
43873         * modules/sysexits: Likewise.
43874         * modules/time: Likewise.
43875         * modules/unistd: Likewise.
43876         * modules/wchar: Likewise.
43877         * modules/wctype: Likewise.
43878         * modules/sys_stat: Change maintainer to "all".
43879         * modules/unistd: Likewise.
43880
43881 2007-06-20  Karl Berry  <karl@gnu.org>
43882
43883         * config/srclist.txt: track www changes in license files.
43884
43885 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43886
43887         * build-aux/bootstrap: Remove stray dot.
43888         Make sure build_aux settings are honored when linking
43889         gnulib_extra_files.
43890
43891 2007-06-19  Eric Blake  <ebb9@byu.net>
43892
43893         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43894         Allow compilation on cygwin.
43895
43896 2007-06-19  Jim Meyering  <jim@meyering.net>
43897
43898         xreadlink-with-size: Remove module.  No longer used.
43899         Ex-callers now use xreadlink or mreadlink-with-size.
43900         * modules/xreadlink-with-size: Remove module.
43901         * lib/xreadlink-with-size.c: Remove file.
43902         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43903         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43904         just before the function definition *is* accurate.
43905
43906         Eliminate one way canonicalize_filename_mode could exit.
43907         * lib/canonicalize.c (canonicalize_filename_mode):
43908         Use mreadlink_with_size, not xreadlink_with_size.
43909
43910 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43911
43912         Detect porting problems to FreeBSD/arm, which has time_t wider than
43913         long int.  Original problem reported for GNU diff by Xin Li in
43914         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43915         * modules/getdate (Depends-on): Add intprops, verify.
43916         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43917         is an integer type no wider than long int.
43918
43919 2007-06-18  Jim Meyering  <jim@meyering.net>
43920
43921         New module: mreadlink-with-size.
43922         * MODULES.html.sh: Add mreadlink-with-size.
43923         * modules/mreadlink-with-size: New module
43924         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43925         not xreadlink-with-size.
43926         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43927
43928 2007-06-16  Bruno Haible  <bruno@clisp.org>
43929
43930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43931         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43932         Reported by Gary V. Vaughan <gary@gnu.org>.
43933
43934 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         Revamp lchown so that it lives in unistd.h where it belongs.
43937         * lib/lchown.h: Remove.
43938         * lib/dirchownmod.c: Don't include lib/lchown.h.
43939         * lib/fchownat.c: Likewise.
43940         * lib/openat.c: Likewise.
43941         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43942         does not follow symlinks.
43943         (EOPNOTSUPP): Define if not defined.
43944         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43945         is defined to 0.
43946         (lchown): New decl.
43947         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43948         Do not check for lchown decl.
43949         Set REPLACE_LCHOWN.
43950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43951         REPLACE_LCHOWN.
43952         * modules/chown: Make it clear it follows symlinks.
43953         * modules/lchown: Make it clear it doesn't follow symlinks.
43954         (Files): Remove lib/lchown.h
43955         (Depends-on): Add unistd.
43956         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43957         (Include): Include <unistd.h>, not "lchown.h".
43958         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43959         REPLACE_LCHOWN.
43960
43961 2007-06-15  Jim Meyering  <jim@meyering.net>
43962
43963         Change license (GPL to LGPL) of fsusage and dependents.
43964         * modules/fsusage (License): Change to LGPL.
43965         * modules/full-read (License): Likewise.
43966         * modules/full-write (License): Likewise.
43967         * modules/safe-read (License): Likewise.
43968         * modules/safe-write (License): Likewise.
43969
43970 2007-06-14  Ben Pfaff  <blp@gnu.org>
43971
43972         Missing part of allocsa -> malloca transition.
43973         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43974         gl_MALLOCA.
43975
43976 2007-06-12  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43979         to ia64, x86_64, i386.
43980         Reported by Eric Blake.
43981
43982 2007-06-12  Bruno Haible  <bruno@clisp.org>
43983
43984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43985         cross-compiling to x86_64.
43986
43987 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43988
43989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43990         glitch reported by Ralf Wildenhues in
43991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43992
43993         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43994         Vin Shelton.
43995
43996 2007-06-11  Bruno Haible  <bruno@clisp.org>
43997
43998         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43999         replacement string.
44000         Reported by Eric Blake.
44001
44002 2007-06-10  Bruno Haible  <bruno@clisp.org>
44003
44004         Prepare vasnprintf code for use with Unicode strings.
44005         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44006         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44007         TYPE_U32_STRING.
44008         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44009         a_u32_string variants.
44010         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44011         * lib/printf-args.c: Don't include config.h and the specification
44012         header if PRINTF_FETCHARGS is already defined.
44013         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44014         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44015         TYPE_U16_STRING, TYPE_U32_STRING.
44016         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44017         u16_directive, u16_directives, u32_directive, u32_directives): New
44018         types.
44019         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44020         New declarations.
44021         * lib/printf-parse.c: Don't include config.h and the specification
44022         header if PRINTF_PARSE is already defined. Eliminate the set of
44023         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44024         them now. Include c-ctype.h.
44025         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44026         directive and CHAR_T_ONLY_ASCII.
44027         * lib/vasnprintf.c: Don't include config.h and the specification header
44028         if VASNPRINTF is already defined.
44029         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44030         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44031         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44032         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44033         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44034         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44035         code accordingly.
44036         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44037         pad_ourselves also in this case, with the 'c' and 's' directives, and
44038         with a different notion of "width".
44039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44040
44041 2007-06-10  Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/unistr/u32-mbsnlen: New file.
44044         * lib/unistr/u32-mbsnlen.c: New file.
44045
44046         * modules/unistr/u16-mbsnlen: New file.
44047         * lib/unistr/u16-mbsnlen.c: New file.
44048
44049         * modules/unistr/u8-mbsnlen: New file.
44050         * lib/unistr/u8-mbsnlen.c: New file.
44051
44052         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44053         declarations.
44054
44055 2007-06-10  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/string_.h (mbsnlen): New declaration.
44058         * lib/mbsnlen.c: New file.
44059         * m4/mbsnlen.m4: New file.
44060         * modules/mbsnlen: New file.
44061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44062         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44063         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44064
44065 2007-06-10  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44068
44069 2007-06-10  Bruno Haible  <bruno@clisp.org>
44070
44071         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44072         * lib/mbuiter.h: Likewise.
44073
44074 2007-06-10  Bruno Haible  <bruno@clisp.org>
44075
44076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44077         declaration.
44078
44079 2007-06-10  Karl Berry  <karl@gnu.org>
44080
44081         * config/srclist.txt: remove gettext entries, Bruno prefers
44082         to update individually.
44083
44084 2007-06-10  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44087         'maxlen'. Ensure only length + width bytes are allocated, not
44088         length + 1 + width.
44089
44090 2007-06-09  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44093         (CHAR_T): Remove macro.
44094         (VASNPRINTF): Update.
44095
44096 2007-06-09  Bruno Haible  <bruno@clisp.org>
44097
44098         * MODULES.html.sh (Unicode string functions): Add the new modules.
44099
44100         * modules/uniconv/u32-conv-to-enc: New file.
44101         * lib/uniconv/u32-conv-to-enc.c: New file.
44102         * modules/uniconv/u32-conv-to-enc-tests: New file.
44103         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44104
44105         * modules/uniconv/u16-conv-to-enc: New file.
44106         * lib/uniconv/u16-conv-to-enc.c: New file.
44107         * lib/uniconv/u-conv-to-enc.h: New file.
44108         * modules/uniconv/u16-conv-to-enc-tests: New file.
44109         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44110
44111         * modules/uniconv/u8-conv-to-enc: New file.
44112         * lib/uniconv/u8-conv-to-enc.c: New file.
44113         * modules/uniconv/u8-conv-to-enc-tests: New file.
44114         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44115
44116         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44117         u32_conv_to_encoding): New declarations.
44118
44119 2007-06-09  Bruno Haible  <bruno@clisp.org>
44120
44121         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44122
44123 2007-06-09  Bruno Haible  <bruno@clisp.org>
44124
44125         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44126         * modules/malloca: Renamed from modules/allocsa, updated.
44127         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44128         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44129         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44130         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44131         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44132         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44133         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44134         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44135         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44136         * modules/c-strcasestr (Depends-on): Update.
44137         * lib/c-strcasestr.c: Update.
44138         * modules/c-strstr (Depends-on): Update.
44139         * lib/c-strstr.c: Update.
44140         * modules/canonicalize-lgpl (Depends-on): Update.
44141         * lib/canonicalize-lgpl.c: Update.
44142         * modules/clean-temp (Depends-on): Update.
44143         * lib/clean-temp.c: Update.
44144         * modules/csharpcomp (Depends-on): Update.
44145         * lib/csharpcomp.c: Update.
44146         * modules/csharpexec (Depends-on): Update.
44147         * lib/csharpexec.c: Update.
44148         * modules/javacomp (Depends-on): Update.
44149         * lib/javacomp.c: Update.
44150         * modules/javaexec (Depends-on): Update.
44151         * lib/javaexec.c: Update.
44152         * modules/mbscasestr (Depends-on): Update.
44153         * lib/mbscasestr.c: Update.
44154         * modules/mbsstr (Depends-on): Update.
44155         * lib/mbsstr.c: Update.
44156         * modules/setenv (Depends-on): Update.
44157         * lib/setenv.c: Update.
44158         * modules/strcasestr (Depends-on): Update.
44159         * lib/strcasestr.c: Update.
44160         * modules/striconveha (Depends-on): Update.
44161         * lib/striconveha.c: Update.
44162         * modules/relocatable-prog-wrapper (Files): Update.
44163         * lib/relocwrapper.c: Update.
44164         * build-aux/install-reloc: Update.
44165         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44166
44167 2007-06-08  Bruno Haible  <bruno@clisp.org>
44168
44169         Port to uClibc.
44170         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44171         * lib/fpurge.c (fpurge): Likewise.
44172         * lib/freading.c (freading): Likewise.
44173         * lib/fseeko.c (rpl_fseeko): Likewise.
44174         * lib/fseterr.c (fseterr): Likewise.
44175         * lib/fwriting.c (fwriting): Likewise.
44176         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44177
44178 2007-06-08  Bruno Haible  <bruno@clisp.org>
44179
44180         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44181         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44182         * modules/gettext (Files): Add m4/intlmacosx.m4.
44183
44184 2007-06-07  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/localename-tests: New file.
44187         * tests/test-localename.c: New file.
44188
44189         New module 'localename'.
44190         * lib/localename.h: New file.
44191         * lib/localename.c: New file, from GNU gettext.
44192         * m4/localename.m4: New file.
44193         * modules/localename: New file.
44194
44195 2007-06-07  Bruno Haible  <bruno@clisp.org>
44196
44197         Work around the lack of <wchar.h> on some builds of uClibc.
44198         * doc/headers/wchar.texi: Update.
44199         * lib/wchar_.h: Include <wchar.h> only if it exists.
44200         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44201         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44202         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44203         doesn't exist.
44204         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44205         * modules/mbfile (Depends-on): Add wchar.
44206         * modules/mbiter (Depends-on): Likewise.
44207         * modules/mbuiter (Depends-on): Likewise.
44208         Reported by Simon Josefsson.
44209
44210 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         Work around problem reported by Steven M. Schweda in
44213         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44214         Tru64 5.1B with the Compaq compiler environment installed declares
44215         an 'isblank' function but does not define it in the C library.
44216         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44217         * lib/regex_internal.h (isblank): Likewise.
44218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44219         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44220
44221 2007-06-05  Bruno Haible  <bruno@clisp.org>
44222
44223         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44224         ia64.
44225         * modules/printf-safe: New file.
44226         * modules/fprintf-posix (Depends-on): Add printf-safe.
44227         * modules/printf-posix (Depends-on): Likewise.
44228         * modules/snprintf-posix (Depends-on): Likewise.
44229         * modules/sprintf-posix (Depends-on): Likewise.
44230         * modules/vasnprintf-posix (Depends-on): Likewise.
44231         * modules/vasprintf-posix (Depends-on): Likewise.
44232         * modules/vfprintf-posix (Depends-on): Likewise.
44233         * modules/vprintf-posix (Depends-on): Likewise.
44234         * modules/vsnprintf-posix (Depends-on): Likewise.
44235         * modules/vsprintf-posix (Depends-on): Likewise.
44236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44237         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44238         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44239         "no" on i386, x86_64, ia64.
44240         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44241         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44242         on i386, x86_64, ia64.
44243         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44244         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44245         on i386, x86_64, ia64.
44246         * tests/test-vasnprintf-posix.c: Include float.h.
44247         (LDBL80_WORDS): New macro.
44248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44249         on i386, x86_64, ia64.
44250         * tests/test-vasprintf-posix.c: Include float.h.
44251         (LDBL80_WORDS): New macro.
44252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44253         on i386, x86_64, ia64.
44254         * tests/test-snprintf-posix.c: Include float.h.
44255         * tests/test-sprintf-posix.c: Likewise.
44256         * tests/test-vsnprintf-posix.c: Likewise.
44257         * tests/test-vsprintf-posix.c: Likewise.
44258
44259 2007-06-05  Bruno Haible  <bruno@clisp.org>
44260
44261         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44263         non-IEEE numbers on i386, x86_64, ia64.
44264         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44265         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44266         * tests/test-isnanl.h: Include float.h.
44267         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44268
44269 2007-06-05  Bruno Haible  <bruno@clisp.org>
44270
44271         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44272         also the %a / %A. Handle the %a / %A code before this extra handling.
44273
44274 2007-06-05  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44277         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44278
44279 2007-06-05  Bruno Haible  <bruno@clisp.org>
44280
44281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44282         typo in variable name.
44283
44284 2007-06-05  Eric Blake  <ebb9@byu.net>
44285
44286         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44287         Reported by Simon Josefsson.
44288
44289 2007-06-04  Bruno Haible  <bruno@clisp.org>
44290
44291         Avoid test failures on some PowerPC platforms.
44292         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
44293         Define differently for PowerPC.
44294         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
44295         Reported by Gary V. Vaughan <gary@gnu.org>.
44296
44297 2007-06-02  Bruno Haible  <bruno@clisp.org>
44298
44299         Fix test-stdint failure on FreeBSD/ia64.
44300         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
44301         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
44302         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
44303         * doc/headers/stdint.texi: Update.
44304
44305 2007-06-01  Bruno Haible  <bruno@clisp.org>
44306
44307         * tests/test-binary-io.c (main): Pass a third argument to open().
44308         Reported by Gary V. Vaughan <gary@gnu.org>.
44309
44310 2007-06-01  Bruno Haible  <bruno@clisp.org>
44311
44312         * doc/functions/frexpl.texi: Update for mingw.
44313
44314 2007-06-01  Bruno Haible  <bruno@clisp.org>
44315
44316         * tests/test-lseek.c (main): Disable test of errno for invalid third
44317         argument.
44318         * doc/functions/lseek.texi: Update.
44319         Reported by Gary V. Vaughan <gary@gnu.org>.
44320
44321 2007-05-28  Bruno Haible  <bruno@clisp.org>
44322
44323         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
44324
44325 2007-05-31  Eric Blake  <ebb9@byu.net>
44326
44327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
44328         cross compiling.
44329
44330 2007-05-30  Eric Blake  <ebb9@byu.net>
44331         and Bruno Haible  <bruno@clisp.org>
44332
44333         Work around mingw test failures exposed by m4-1.4.9b.
44334         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44335         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44336         moment.
44337
44338 2007-05-30  Bruno Haible  <bruno@clisp.org>
44339
44340         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44341         assuming that they are closed. Needed on HP-UX 11.
44342
44343 2007-05-29  Bruno Haible  <bruno@clisp.org>
44344
44345         Fix a problem with #include_next.
44346         * lib/dirent_.h: Split the double-inclusion guard.
44347         * lib/fcntl_.h: Likewise.
44348         * lib/float_.h: Likewise.
44349         * lib/iconv_.h: Likewise.
44350         * lib/inttypes_.h: Likewise.
44351         * lib/locale_.h: Likewise.
44352         * lib/math_.h: Likewise.
44353         * lib/netinet_in_.h: Likewise.
44354         * lib/search_.h: Likewise.
44355         * lib/signal_.h: Likewise.
44356         * lib/stdint_.h: Likewise.
44357         * lib/stdio_.h: Likewise.
44358         * lib/stdlib_.h: Likewise.
44359         * lib/string_.h: Likewise.
44360         * lib/sys_select_.h: Likewise.
44361         * lib/sys_socket_.h: Likewise.
44362         * lib/sys_stat_.h: Likewise.
44363         * lib/sys_time_.h: Likewise.
44364         * lib/sysexits_.h: Likewise.
44365         * lib/time_.h: Likewise.
44366         * lib/unistd_.h: Likewise.
44367         * lib/wchar_.h: Likewise.
44368         * lib/wctype_.h: Likewise.
44369
44370 2007-05-29  Bruno Haible  <bruno@clisp.org>
44371
44372         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44373         for the moment.
44374
44375 2007-05-29  Bruno Haible  <bruno@clisp.org>
44376
44377         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44378         invocation.
44379         Reported by Eric Blake.
44380
44381 2007-05-29  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44384         compiling case.
44385
44386 2007-05-29  Eric Blake  <ebb9@byu.net>
44387             Bruno Haible  <bruno@clisp.org>
44388
44389         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44390         cross compiles.
44391
44392 2007-05-28  Eric Blake  <ebb9@byu.net>
44393
44394         * modules/closein-tests (test_closein_LDADD): Support test on
44395         cygwin with libtool.
44396
44397 2007-05-28  Bruno Haible  <bruno@clisp.org>
44398
44399         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44400         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44401         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44402         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44403         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44404         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44405         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44406         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44407         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44408
44409 2007-05-28  Eric Blake  <ebb9@byu.net>
44410
44411         Unconditionally include <config.h> in unit tests.
44412         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44413         * tests/test-allocsa.c, tests/test-arcfour.c,
44414         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44415         tests/test-array_list.c, tests/test-array_oset.c,
44416         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44417         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44418         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44419         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44420         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44421         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44422         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44423         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44424         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44425         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44426         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44427         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44428         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44429         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44430         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44431         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44432         test-md5.c, test-memmem.c, test-printf-posix.c,
44433         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44434         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44435         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44436         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44437         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44438         test-vasnprintf-posix2.c, test-vasnprintf.c,
44439         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44440         test-vfprintf-posix.c, test-vprintf-posix.c,
44441         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44442         test-xvasprintf.c: Likewise.
44443
44444 2007-05-28  Bruno Haible  <bruno@clisp.org>
44445
44446         * gnulib-tool (func_import): Remember the --with-tests command-line
44447         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44448         Reported by Eric Blake.
44449
44450 2007-05-28  Bruno Haible  <bruno@clisp.org>
44451
44452         * modules/ftell-tests: New file.
44453         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44454         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44455
44456         * lib/ftell.c: New file.
44457         * modules/ftell: New file.
44458         * m4/ftell.m4: New file.
44459         * doc/functions/ftell.texi: Update.
44460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44461         REPLACE_FTELL.
44462         * lib/stdio_.h (rpl_ftell): New declaration.
44463         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44464         REPLACE_FTELL.
44465
44466 2007-05-28  Eric Blake  <ebb9@byu.net>
44467
44468         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44469
44470 2007-05-28  Bruno Haible  <bruno@clisp.org>
44471
44472         * modules/fseek-tests: New file.
44473         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44474         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44475
44476         * lib/fseek.c: New file.
44477         * modules/fseek: New file.
44478         * m4/fseek.m4: New file.
44479         * doc/functions/fseek.texi: Update.
44480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44481         REPLACE_FSEEK.
44482         * lib/stdio_.h (rpl_fseek): New declaration.
44483         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44484         REPLACE_FSEEK.
44485
44486 2007-05-28  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/stdio_.h (fflush): More comments.
44489
44490 2007-05-28  Bruno Haible  <bruno@clisp.org>
44491
44492         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44493         runtime test.
44494
44495 2007-05-28  Eric Blake  <ebb9@byu.net>
44496
44497         Improve lseek module.
44498         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44499         * lib/unistd_.h (lseek): Scale back link warning message.
44500         * tests/test-lseek.c: Beef up test.
44501         * tests/test-lseek.sh: Exercise more facets of lseek.
44502         Reported by Bruno Haible.
44503
44504 2007-05-28  Bruno Haible  <bruno@clisp.org>
44505
44506         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44507         to define.
44508
44509 2007-05-27  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44512
44513 2007-05-27  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/openmp: New file.
44516         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44517         Noah Misch.
44518
44519 2007-05-26  Bruno Haible  <bruno@clisp.org>
44520
44521         * modules/chdir-long (Depends-on): Add fchdir.
44522         * modules/chdir-safer (Depends-on): Likewise.
44523         * modules/fts (Depends-on): Likewise.
44524         * modules/fts-lgpl (Depends-on): Likewise.
44525         * modules/openat (Depends-on): Likewise.
44526         * modules/savewd (Depends-on): Likewise.
44527
44528 2007-05-24  Eric Blake  <ebb9@byu.net>
44529
44530         Fix lseek on mingw.
44531         * modules/lseek: New module.
44532         * m4/lseek.m4: New file.
44533         * lib/lseek.c: New file.
44534         * modules/lseek-tests: New file.
44535         * tests/test-lseek.c: New file.
44536         * tests/test-lseek.sh: New file.
44537         * MODULES.html.sh: Document lseek module.
44538         * modules/fflush (Depends-on): Add lseek, fseeko.
44539         * modules/fseeko (Depends-on): Likewise.
44540         * modules/ftello (Depends-on): Likewise.
44541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44542         broken.
44543         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44544         broken.
44545         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44546         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44547         * lib/ftello.c (rpl_ftello): Likewise.
44548         * tests/test-fseeko.c (main): Test this.
44549         * tests/test-fseeko.sh: Likewise.
44550         * tests/test-ftello.c (main): Likewise.
44551         * tests/test-ftello.sh: Likewise.
44552         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44553         implies replacing fseek.
44554         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44555         HAVE_FTELLO.
44556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44557         * modules/unistd (Makefile.am): Likewise.
44558         * lib/unistd_.h (lseek): Declare a replacement.
44559         * doc/functions/lseek.texi (lseek): Document this fix.
44560         * doc/functions/fseek.texi (fseek): Likewise.
44561         * doc/functions/ftell.texi (ftell): Likewise.
44562
44563 2007-05-24  Bruno Haible  <bruno@clisp.org>
44564
44565         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44566         in the printed representation of a NaN.
44567         * tests/test-vasprintf-posix.c (test_function): Likewise.
44568         * tests/test-snprintf-posix.h (test_function): Likewise.
44569         * tests/test-sprintf-posix.h (test_function): Likewise.
44570         Reported by Eric Blake.
44571
44572 2007-05-23  Eric Blake  <ebb9@byu.net>
44573
44574         Fix fseeko/ftello on cygwin 1.5.24.
44575         * doc/functions/fseeko.texi (fseeko): Document the fix.
44576         * doc/functions/ftello.texi (ftello): Document the fix.
44577         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44578         * doc/functions/stdout.text (stdout): New file.
44579         * doc/functions/stderr.text (stderr): New file.
44580         * doc/gnulib.texi (Function Substitutes): Use new files.
44581         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44582         prior to 1.7.0.
44583         * tests/test-ftello.c (main): Likewise for ftello.
44584         * tests/test-fseeko.sh: New file.
44585         * tests/test-ftello.sh: New file.
44586         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44587         with seekable stdin.
44588         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44590         (gl_REPLACE_FSEEKO): New macro.
44591         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44592         * modules/fseeko (Files): Distribute fseeko.c.
44593         * modules/ftello (Files): Distribute ftello.c.
44594         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44595         mode.
44596         * lib/ftello.c (rpl_ftello): New file.
44597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44598         fseeko, ftello.
44599         (gl_STDIN_LARGE_OFFSET): New macro.
44600         * modules/stdio (Makefile.am): Perform the replacement.
44601         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44602
44603 2007-05-23  Bruno Haible  <bruno@clisp.org>
44604
44605         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44606         GNULIB_POSIXCHECK is defined.
44607
44608 2007-05-21  Bruno Haible  <bruno@clisp.org>
44609
44610         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44611         Check also the output for NaN arguments. When cross-compiling, guess
44612         no on IRIX.
44613         * lib/vasnprintf.c: Update comments.
44614         * tests/test-vasnprintf-posix.c (strisnan): New function.
44615         (test_function): Use it.
44616         * tests/test-vasprintf-posix.c (strisnan): New function.
44617         (test_function): Use it.
44618         * tests/test-snprintf-posix.h (strisnan): New function.
44619         (test_function): Use it.
44620         * tests/test-sprintf-posix.h (strisnan): New function.
44621         (test_function): Use it.
44622         Reported by Eric Blake.
44623
44624 2007-05-20  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44627         numbers that fails on BeOS.
44628         * doc/functions/frexpl.texi: Update.
44629
44630 2007-05-20  Jim Meyering  <jim@meyering.net>
44631
44632         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44633         forced upon us by glibc-2.6.
44634
44635 2007-05-20  Bruno Haible  <bruno@clisp.org>
44636
44637         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44638         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44639         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44640         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44641         NEED_PRINTF_INFINITE.
44642         (is_infinitel): New function.
44643         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44645         gl_PREREQ_VASNPRINTF_INFINITE.
44646         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44648         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44649         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44650         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44651         gl_PREREQ_VASNPRINTF_INFINITE.
44652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44659         * doc/functions/fprintf.texi: Update.
44660         * doc/functions/printf.texi: Update.
44661         * doc/functions/snprintf.texi: Update.
44662         * doc/functions/sprintf.texi: Update.
44663         * doc/functions/vfprintf.texi: Update.
44664         * doc/functions/vprintf.texi: Update.
44665         * doc/functions/vsnprintf.texi: Update.
44666         * doc/functions/vsprintf.texi: Update.
44667
44668 2007-05-20  Bruno Haible  <bruno@clisp.org>
44669
44670         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44671         was not found in libc.
44672         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44673
44674 2007-05-20  Bruno Haible  <bruno@clisp.org>
44675
44676         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44677         printed as "-nan" instead of "nan".
44678         * tests/test-vasprintf-posix.c (test_function): Likewise.
44679         * tests/test-snprintf-posix.h (test_function): Likewise.
44680         * tests/test-sprintf-posix.h (test_function): Likewise.
44681         Needed for HP-UX 11.
44682
44683 2007-05-20  Jim Meyering  <jim@meyering.net>
44684
44685         Fix buggy test for the fchownat-deref bug.
44686         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44687         symlink required for the run-test.  Without it, this test would
44688         always declare that fchownat doesn't work, and client code would
44689         unnecessarily use the replacement function with fixed libc.
44690         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44691         Reported by Greg Schafer.
44692
44693 2007-05-19  Bruno Haible  <bruno@clisp.org>
44694
44695         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44696         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44697         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44698         Needed for IRIX 6.5 and Solaris 2.5.1.
44699
44700 2007-05-19  Bruno Haible  <bruno@clisp.org>
44701
44702         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44703         (test_function): Skip tests involving -0.0 on platforms where
44704         -0.0 = 0.0.
44705         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44706         (test_function): Skip tests involving -0.0 on platforms where
44707         -0.0 = 0.0.
44708         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44709         (test_function): Skip tests involving -0.0 on platforms where
44710         -0.0 = 0.0.
44711         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44712         (test_function): Skip tests involving -0.0 on platforms where
44713         -0.0 = 0.0.
44714         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44715         tests.
44716         * tests/test-printf-posix.h (test_function): Likewise.
44717         * tests/test-printf-posix.output: Remove all -0.0 related results.
44718         Needed for IRIX 6.5.
44719
44720 2007-05-19  Bruno Haible  <bruno@clisp.org>
44721
44722         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44723         printed as "nan0x7fffffff" instead of "nan".
44724         * tests/test-vasprintf-posix.c (test_function): Likewise.
44725         * tests/test-snprintf-posix.h (test_function): Likewise.
44726         * tests/test-sprintf-posix.h (test_function): Likewise.
44727         * tests/test-fprintf-posix.h (NaN): Remove macro.
44728         (test_function): Remove all NaN related tests.
44729         * tests/test-printf-posix.h (NaN): Remove macro.
44730         (test_function): Remove all NaN related tests.
44731         * tests/test-printf-posix.output: Remove all NaN related results.
44732         Needed for IRIX 6.5.
44733
44734 2007-05-19  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44738
44739 2007-05-19  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/float_.h: New file.
44742         * m4/float_h.m4: New file.
44743         * modules/float: New file.
44744         * modules/isnanl (Dependencies): Add float.
44745         * modules/isnanl-nolibm (Dependencies): Likewise.
44746         * modules/mathl (Dependencies): Likewise.
44747         * modules/printf-frexpl (Dependencies): Likewise.
44748         * modules/signbit (Dependencies): Likewise.
44749         * modules/vasnprintf (Dependencies): Likewise.
44750         * doc/headers/float.texi: Update.
44751
44752 2007-05-19  Jim Meyering  <jim@meyering.net>
44753
44754         * lib/utimens.c (gl_futimens): Rename from futimens,
44755         now that glibc-2.6 declares futimens.
44756         * lib/utimens.h: Likewise.
44757
44758 2007-05-19  Bruno Haible  <bruno@clisp.org>
44759
44760         Avoid test failures on mingw.
44761         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44762         * tests/test-printf-posix.sh: Likewise.
44763         * tests/test-vfprintf-posix.sh: Likewise.
44764         * tests/test-vprintf-posix.sh: Likewise.
44765
44766 2007-05-19  Bruno Haible  <bruno@clisp.org>
44767
44768         Fix *printf result for NaN, Inf, -0.0 on mingw.
44769         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44770         * lib/vasnprintf.c: Include math.h and isnan.h.
44771         (is_infinite_or_zero): New function.
44772         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44773         values in the %f, %F, %e, %E, %g, %G directives.
44774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44776         gl_PRINTF_INFINITE and test its result. Invoke
44777         gl_PREREQ_VASNPRINTF_INFINITE.
44778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44785         * doc/functions/fprintf.texi: Update.
44786         * doc/functions/printf.texi: Update.
44787         * doc/functions/snprintf.texi: Update.
44788         * doc/functions/sprintf.texi: Update.
44789         * doc/functions/vfprintf.texi: Update.
44790         * doc/functions/vprintf.texi: Update.
44791         * doc/functions/vsnprintf.texi: Update.
44792         * doc/functions/vsprintf.texi: Update.
44793
44794 2007-05-19  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44797         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44798         Instead of multiplying with 10^k, set extra_zeroes to k.
44799         (scale10_round_long_double): Remove function.
44800
44801 2007-05-18  Bruno Haible  <bruno@clisp.org>
44802
44803         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44804         introduced on 2007-05-06.
44805
44806 2007-05-18  Bruno Haible  <bruno@clisp.org>
44807
44808         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44809         %g directives.
44810         * tests/test-vasprintf-posix.c (test_function): Likewise.
44811         * tests/test-snprintf-posix.h (test_function): Likewise.
44812         * tests/test-sprintf-posix.h (test_function): Likewise.
44813
44814 2007-05-18  Bruno Haible  <bruno@clisp.org>
44815
44816         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44817         (strmatch): New function.
44818         (test_function): Test the %f directive on numbers of various exponents.
44819         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44820         (strmatch): New function.
44821         (test_function): Test the %f directive on numbers of various exponents.
44822         * tests/test-snprintf-posix.h (strmatch): New function.
44823         (test_function): Test the %f directive on numbers of various exponents.
44824         * tests/test-sprintf-posix.h (strmatch): New function.
44825         (test_function): Test the %f directive on numbers of various exponents.
44826         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44827         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44828         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44829         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44830
44831 2007-05-18  Bruno Haible  <bruno@clisp.org>
44832
44833         Add support for 'long double' number output.
44834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44835         * lib/vasnprintf.c: Include math.h and float+.h.
44836         (mp_limb_t): New type.
44837         (GMP_LIMB_BITS): New macro.
44838         (mp_twolimb_t): New type.
44839         (GMP_TWOLIMB_BITS): New macro.
44840         (mpn_t): New type.
44841         (multiply, divide, convert_to_decimal, decode_long_double,
44842         scale10_round_long_double, scale10_round_decimal_long_double,
44843         floorlog10l): New functions.
44844         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44845         for the %f, %F, %e, %E, %g, %G directives.
44846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44848         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44849         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44851         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44853         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44854         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44857         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44858         * modules/snprintf-posix (Depends-on): Likewise.
44859         * modules/sprintf-posix (Depends-on): Likewise.
44860         * modules/vasnprintf-posix (Depends-on): Likewise.
44861         * modules/vasprintf-posix (Depends-on): Likewise.
44862         * modules/vfprintf-posix (Depends-on): Likewise.
44863         * modules/vsnprintf-posix (Depends-on): Likewise.
44864         * modules/vsprintf-posix (Depends-on): Likewise.
44865         * modules/vasnprintf (Files): Add lib/float+.h.
44866         * doc/functions/fprintf.texi: Update.
44867         * doc/functions/printf.texi: Update.
44868         * doc/functions/snprintf.texi: Update.
44869         * doc/functions/sprintf.texi: Update.
44870         * doc/functions/vfprintf.texi: Update.
44871         * doc/functions/vprintf.texi: Update.
44872         * doc/functions/vsnprintf.texi: Update.
44873         * doc/functions/vsprintf.texi: Update.
44874
44875 2007-05-18  Bruno Haible  <bruno@clisp.org>
44876
44877         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44878
44879 2007-05-18  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44882         for printing 64-bit integers. Needed for mingw.
44883
44884 2007-05-18  Bruno Haible  <bruno@clisp.org>
44885
44886         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44887         gl_FUNC_FREXPL_WORKS.
44888         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44889
44890 2007-05-18  Bruno Haible  <bruno@clisp.org>
44891
44892         * modules/frexpl-nolibm-tests: New file.
44893
44894         * modules/frexpl-nolibm: New file.
44895         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44896
44897 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44898
44899         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44900         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44901         GCC 4.2, which otherwise issues a lot of warnings.
44902         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44903         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44904         Likewise.
44905         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44906         * modules/iconv_open (iconv.h): Likewise.
44907         * modules/locale (locale.h): Likewise.
44908         * modules/netinet_in (netinet/in.h): Likewise.
44909         * modules/sys_select (sys_select.h): Likewise.
44910         * modules/sys_socket (sys/socket.h): Likewise.
44911         * modules/sys_stat (sys/stat.h): Likewise.
44912         * modules/sysexits (sysexits.h): Likewise.
44913         * modules/unistd (unistd.h): Likewise.
44914
44915 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44916
44917         * modules/closein-tests (Makefile.am): Distribute
44918         `test-closein.sh'.
44919
44920 2007-05-17  Bruno Haible  <bruno@clisp.org>
44921
44922         * tests/test-printf-posix.output: Renamed from
44923         tests/test-fprintf-posix.out.
44924         * modules/fprintf-posix-tests: Update.
44925         * modules/printf-posix-tests: Update.
44926         * modules/vfprintf-posix-tests: Update.
44927         * modules/vprintf-posix-tests: Update.
44928         * tests/test-fprintf-posix.sh: Update.
44929         * tests/test-printf-posix.sh: Update.
44930         * tests/test-vfprintf-posix.sh: Update.
44931         * tests/test-vprintf-posix.sh: Update.
44932         Reported by Ralf Wildenhues.
44933
44934 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44935
44936         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44937         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44938         GCC 4.2, which otherwise issues a lot of warnings.
44939         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44940         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44941         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44942         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44943         it should no longer be needed.
44944         * lib/string_.h: Likewise.
44945         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44946         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44947         * modules/inttypes (inttypes.h): Likewise.
44948         * modules/math (math.h): Likewise.
44949         * modules/search (search.h): Likewise.
44950         * modules/signal (signal.h): Likewise.
44951         * modules/stdint (stdint.h): Likewise.
44952         * modules/stdio (stdio.h): Likewise.
44953         * modules/stdlib (stdlib.h): Likewise.
44954         * modules/string (string.h): Likewise.
44955         * modules/sys_time (sys/time.h): Likewise.
44956         * modules/time (time.h): Likewise.
44957         * modules/wchar (wchar.h): Likewise.
44958         * modules/wctype (wtype.h): Likewise.
44959
44960 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44961
44962         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44963
44964 2007-05-13  Bruno Haible  <bruno@clisp.org>
44965
44966         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44967         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44968         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44969         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44970         (gl_PREREQ_STRTOK_R): Don't require it here.
44971
44972 2007-05-13  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44975         when used in C++ mode.
44976
44977 2007-05-12  Bruno Haible  <bruno@clisp.org>
44978
44979         * lib/linebuffer.h: Tweak doc.
44980         * lib/linebuffer.c: Likewise.
44981
44982 2007-05-12  James Youngman  <jay@gnu.org>
44983
44984         * lib/linebuffer.c (readlinebuffer_delim): New function,
44985         like readlinebuffer, but use a caller-specified delimiter.
44986         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44987         as the delimiter.
44988         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44989
44990 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44991
44992         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44993         * modules/openat (Files): Remove openat-die.c.
44994         (Depends-on): Add openat-die.
44995         * modules/openat-die: New module.
44996
44997 2007-05-06  Bruno Haible  <bruno@clisp.org>
44998
44999         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45000         Update with info about Cygwin.
45001         * doc/functions/fprintf.texi: Update.
45002         * doc/functions/printf.texi: Update.
45003         * doc/functions/snprintf.texi: Update.
45004         * doc/functions/sprintf.texi: Update.
45005         * doc/functions/vfprintf.texi: Update.
45006         * doc/functions/vprintf.texi: Update.
45007         * doc/functions/vsnprintf.texi: Update.
45008         * doc/functions/vsprintf.texi: Update.
45009         Reported by Eric Blake.
45010
45011 2007-05-06  Bruno Haible  <bruno@clisp.org>
45012
45013         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45014         padding ourselves for the floating-point directives.
45015         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45018         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45019         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45022         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45023         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45024         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45027         * tests/test-snprintf-posix.h (test_function): Also check the width
45028         and some flags in the %f directive.
45029         * tests/test-sprintf-posix.h (test_function): Likewise.
45030         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45031         * tests/test-vasprintf-posix.c (test_function): Likewise.
45032         * doc/functions/fprintf.texi: Update.
45033         * doc/functions/printf.texi: Update.
45034         * doc/functions/snprintf.texi: Update.
45035         * doc/functions/sprintf.texi: Update.
45036         * doc/functions/vfprintf.texi: Update.
45037         * doc/functions/vprintf.texi: Update.
45038         * doc/functions/vsnprintf.texi: Update.
45039         * doc/functions/vsprintf.texi: Update.
45040
45041 2007-05-06  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45044         pass the ' flag character to sprintf or snprintf.
45045         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45048         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45049         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45057         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45058         flag.
45059         * tests/test-sprintf-posix.h (test_function): Likewise.
45060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45061         * tests/test-vasprintf-posix.c (test_function): Likewise.
45062         * doc/functions/fprintf.texi: Update.
45063         * doc/functions/printf.texi: Update.
45064         * doc/functions/snprintf.texi: Update.
45065         * doc/functions/sprintf.texi: Update.
45066         * doc/functions/vfprintf.texi: Update.
45067         * doc/functions/vprintf.texi: Update.
45068         * doc/functions/vsnprintf.texi: Update.
45069         * doc/functions/vsprintf.texi: Update.
45070
45071 2007-05-01  Bruno Haible  <bruno@clisp.org>
45072
45073         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45074
45075 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45076
45077         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45078         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45079
45080 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45081
45082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45083         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45085
45086 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45087
45088         * lib/argp-help.c (struct hol_entry): New member `ord'.
45089         (HOL_ENTRY_PTRCMP): Use ord for comparison
45090         (hol_sort): Initialize ord.
45091
45092 2007-05-01  Bruno Haible  <bruno@clisp.org>
45093
45094         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45095         Reported by Eric Blake.
45096         * doc/gnulib.texi (Function Substitutes): Update.
45097
45098 2007-05-01  Bruno Haible  <bruno@clisp.org>
45099
45100         * doc/functions.texi: Remove file, now redundant through
45101         doc/functions/*.texi.
45102
45103 2007-05-01  Bruno Haible  <bruno@clisp.org>
45104
45105         * modules/argp (Depends-on): Add sleep.
45106
45107 2007-05-01  Bruno Haible  <bruno@clisp.org>
45108
45109         * modules/sleep-tests: New file.
45110         * tests/test-sleep.c: New file.
45111
45112         * modules/sleep: New file.
45113         * lib/sleep.c: New file.
45114         * m4/sleep.m4: New file.
45115         * lib/unistd_.h (sleep): New declaration.
45116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45117         HAVE_SLEEP.
45118         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45119         * doc/functions/sleep.texi: Document the sleep module.
45120
45121 2007-05-01  Bruno Haible  <bruno@clisp.org>
45122
45123         * lib/sigprocmask.h: Remove file.
45124         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45125         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45126         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45127         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45129         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45130         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45131         HAVE_SIGSET_T as a shell variable.
45132         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45133         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45134         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45135         (Depends-on): Add signal. Remove verify.
45136         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45137         (Include): Mention <signal.h> instead of sigprocmask.h.
45138         * NEWS: Mention the change.
45139         * lib/fatal-signal.c: Don't include sigprocmask.h.
45140
45141 2007-05-01  Bruno Haible  <bruno@clisp.org>
45142
45143         * modules/signal: New file.
45144         * lib/signal_.h: New file.
45145         * m4/signal_h.m4: New file.
45146
45147 2007-05-01  Bruno Haible  <bruno@clisp.org>
45148
45149         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45150         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45151         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45152         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45153
45154 2007-05-01  Bruno Haible  <bruno@clisp.org>
45155
45156         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45157         configure time.
45158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45159         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45160         * modules/sys_stat (Makefile.am): Substitute their values into
45161         sys/stat.h.
45162
45163 2007-05-01  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45166         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45167         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45168
45169 2007-05-01  Bruno Haible  <bruno@clisp.org>
45170
45171         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45172         'assert' module here.
45173
45174 2007-05-01  Bruno Haible  <bruno@clisp.org>
45175
45176         * doc/functions/*.texi: New files.
45177         * doc/functions/google-ranking.txt: New file.
45178         * doc/gnulib.texi (Function Substitutes): New chapter.
45179         (ctime, inet_ntoa): Remove sections.
45180         * doc/ctime.texi: Remove file.
45181         * doc/inet_ntoa.texi: Remove file.
45182         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45183         dependencies.
45184         (%.info): New rule, specifying a --reference-limit.
45185
45186 2007-05-01  Bruno Haible  <bruno@clisp.org>
45187
45188         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45189
45190 2007-05-01  Bruno Haible  <bruno@clisp.org>
45191
45192         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45193         the portability of 'mkdir' to mingw systems.
45194
45195 2007-05-01  Bruno Haible  <bruno@clisp.org>
45196
45197         * doc/headers/google-ranking.txt: New file.
45198
45199 2007-04-30  Eric Blake  <ebb9@byu.net>
45200
45201         Prefer fseeko to fseek.
45202         * modules/getpass (Depends-on): Add fseeko.
45203         * lib/getpass.c (getpass): Use fseeko, not fseek.
45204
45205 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45206
45207         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45208         assumes the sorting is stable, while most qsort implementations
45209         are not.  Use argument addresses to ensure they never compare as
45210         equal.
45211
45212         * tests/test-argp-2.sh (usage-indent test): Fix output
45213         (func_compare): Restore diff options
45214         * tests/test-argp.c: Restore #include "progname.h"
45215
45216 2007-04-29  Bruno Haible  <bruno@clisp.org>
45217
45218         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45220         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45222         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45223         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45224         (TESTS, check_PROGRAMS): Add test-snprintf.
45225         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45226         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45227         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45228         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45229         assertions that fail on HP-UX, OSF/1, or IRIX.
45230         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45231
45232 2007-04-29  Bruno Haible  <bruno@clisp.org>
45233
45234         * MODULES.html.sh (posix_functions): Remove 'contents'.
45235
45236 2007-04-29  Karl Berry  <karl@gnu.org>
45237
45238         * config/srclist.txt (gendocs_template_min): new entry.
45239
45240 2007-04-29  Bruno Haible  <bruno@clisp.org>
45241
45242         Work around fpurge bug on BSD systems.
45243         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45244         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45245         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45246         fpurge to rpl_fpurge if the system already has this function.
45247         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45248         the case where the system already has this function. Correct invariants
45249         on BSD systems.
45250         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45251         BSD systems.
45252
45253 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45254
45255         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45256         proposed by Sven Verdoolaege.
45257
45258         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45259         options.
45260         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45261         (usage and help tests): Update
45262
45263 2007-04-29  Bruno Haible  <bruno@clisp.org>
45264
45265         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45266         Print more information in case of failure. Disable a test on BeOS.
45267
45268 2007-04-29  Bruno Haible  <bruno@clisp.org>
45269
45270         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45271         This helps debugging on systems on which no gdb is available.
45272
45273 2007-04-29  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/freading.h: Improve comments.
45276         * lib/fwriting.h: Likewise.
45277         * tests/test-freading.c (main): Don't check freading immediately after
45278         repositioning. Needed for glibc.
45279
45280 2007-04-29  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/freading.c (freading): Trivial simplification.
45283
45284 2007-04-28  Bruno Haible  <bruno@clisp.org>
45285
45286         * tests/test-fwriting.c (main): Also test the interaction between
45287         fflush and fwriting.
45288         * modules/fwriting-tests (Depends-on): Add fflush.
45289
45290         * tests/test-freading.c (main): Also test the interaction between
45291         fflush and freading.
45292         * modules/freading-tests (Depends-on): Add fflush.
45293
45294 2007-04-28  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
45297         fseeko and ftello.
45298         Suggested by Eric Blake.
45299
45300 2007-04-28  Jim Meyering  <jim@meyering.net>
45301
45302         Avoid false-negative in gl_STDINT_H's C99 conformance test.
45303         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
45304         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
45305
45306 2007-04-27  Eric Blake  <ebb9@byu.net>
45307
45308         * doc/headers/assert.texi (assert.h): Document assert module use.
45309
45310 2007-04-27  Bruno Haible  <bruno@clisp.org>
45311
45312         * doc/headers/*.texi: New files.
45313         * doc/gnulib.texi (Header File Substitutes): New chapter.
45314         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
45315         dependencies.
45316         (standards.info ,standards.html, standards.dvi): Update dependencies.
45317         (mostlyclean, clean): New targets.
45318
45319 2007-04-27  Bruno Haible  <bruno@clisp.org>
45320
45321         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
45322         * modules/sysexits (Files, Makefile.am): Update.
45323
45324         * lib/sys_socket_.h: Renamed from lib/socket_.h.
45325         * modules/sys_socket (Files, Makefile.am): Update.
45326
45327         * lib/sys_stat_.h: Renamed from lib/stat_.h.
45328         * modules/sys_stat (Files, Makefile.am): Update.
45329
45330 2007-04-27  Eric Blake  <ebb9@byu.net>
45331
45332         * lib/freading.h: Improve comments.
45333         * lib/fwriting.h: Likewise.
45334         * lib/fflush.c: Likewise.
45335
45336         Fix closein for mingw.
45337         * modules/closein-tests: Add tests for closein.
45338         * tests/test-closein.c: New file.
45339         * tests/test-closein.sh: Likewise.
45340         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45341         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45342
45343 2007-04-27  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45346         version is < 6.
45347         * lib/math_.h [__DECC]: Likewise.
45348         * lib/stdio_.h [__DECC]: Likewise.
45349         * lib/stdlib_.h [__DECC]: Likewise.
45350         * lib/string_.h [__DECC]: Likewise.
45351         * lib/time_.h [__DECC]: Likewise.
45352         * lib/wchar_.h [__DECC]: Likewise.
45353         * lib/wctype_.h [__DECC]: Likewise.
45354
45355 2007-04-27  Bruno Haible  <bruno@clisp.org>
45356
45357         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45358
45359 2007-04-27  Bruno Haible  <bruno@clisp.org>
45360
45361         * lib/fflush.c: Add comments.
45362         * modules/fpurge-tests (Depends-on): Add fflush.
45363         * modules/freadable-tests (Depends-on): Likewise.
45364         * modules/fwritable-tests (Depends-on): Likewise.
45365
45366 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45367
45368         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45369         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45370         Report by Bruno Haible <bruno@clisp.org>.
45371
45372 2007-04-26  Eric Blake  <ebb9@byu.net>
45373
45374         Fix fflush on mingw.
45375         * modules/fflush (Depends-on): Add freading.
45376         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45377         but unread data.
45378
45379 2007-04-26  Eric Blake  <ebb9@byu.net>
45380         and Bruno Haible  <bruno@clisp.org>
45381
45382         Implement freading and fwriting.
45383         * lib/freading.c: New file.
45384         * lib/freading.h: Likewise.
45385         * m4/freading.m4: Likewise.
45386         * modules/freading: Likewise.
45387         * modules/freading-tests: Likewise.
45388         * tests/test-freading.c: Likewise.
45389         * lib/fwriting.c: New file.
45390         * lib/fwriting.h: Likewise.
45391         * m4/fwriting.m4: Likewise.
45392         * modules/fwriting: Likewise.
45393         * modules/fwriting-tests: Likewise.
45394         * tests/test-fwriting.c: Likewise.
45395         * MODULES.html.sh (File stream based Input/Output): Mention them.
45396
45397 2007-04-26  Bruno Haible  <bruno@clisp.org>
45398
45399         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45400         'long' when we assume it.
45401         Suggested by Eric Blake.
45402
45403 2007-04-26  Bruno Haible  <bruno@clisp.org>
45404
45405         Ensure fseeko, ftello are declared on glibc systems.
45406         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45407         * modules/fseeko (configure.ac-early): Likewise.
45408         * modules/ftello (configure.ac-early): Likewise.
45409         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45410         AC_FUNC_FSEEKO for this.
45411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45412         (gl_CHECK_FSEEKO): Remove macro.
45413
45414 2007-04-26  Bruno Haible  <bruno@clisp.org>
45415
45416         * tests/test-fflush.c (main): Also check the ftell result after
45417         fflush and fseek/fseeko.
45418         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45419         file descriptor position cache in the stream.
45420         * lib/fseeko.c (rpl_fseeko): Likewise.
45421
45422 2007-04-26  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/fflush-tests (Depends-on): Add fseeko.
45425
45426 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45427             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45428
45429         * lib/argz_.h: ensure error_t definition is obtained in same
45430         mechanism system argz.h would have.
45431         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45432         argz facilities are known bad.  Err on the side of caution if
45433         cross-compiling.
45434
45435 2007-04-25  Eric Blake  <ebb9@byu.net>
45436
45437         * lib/fpurge.c (includes): Use stdlib.h for free.
45438         * tests/test-fflush.c (main): Also test fflush-fseeko.
45439
45440 2007-04-25  Bruno Haible  <bruno@clisp.org>
45441
45442         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45443         * lib/fseeko.c: New file.
45444         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45445         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45446         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45447         gl_FUNC_FSEEKO.
45448         (gl_FUNC_FSEEKO): Invoke it.
45449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45450         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45451         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45452
45453 2007-04-25  Bruno Haible  <bruno@clisp.org>
45454
45455         * modules/fflush (Depends-on): Add ftello.
45456
45457 2007-04-25  Bruno Haible  <bruno@clisp.org>
45458
45459         * modules/ftello-tests: New file.
45460         * tests/test-ftello.c: New file.
45461
45462         * modules/ftello: New file.
45463         * m4/ftello.m4: New file.
45464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45465         HAVE_FTELLO.
45466         * lib/stdio_.h (ftello): New declaration.
45467         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45468         HAVE_FTELLO.
45469
45470 2007-04-25  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/fseeko-tests: New file.
45473         * tests/test-fseeko.c: New file.
45474
45475         * modules/fseeko: New file.
45476         * m4/fseeko.m4: New file.
45477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45478         HAVE_FSEEKO.
45479         * lib/stdio_.h (fseeko): New declaration.
45480         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45481         HAVE_FSEEKO.
45482
45483 2007-04-25  Bruno Haible  <bruno@clisp.org>
45484
45485         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45486
45487 2007-04-25  Bruno Haible  <bruno@clisp.org>
45488
45489         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45490         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45491         * tests/test-unistd.c: Likewise.
45492         * tests/test-fcntl.c: Likewise.
45493
45494 2007-04-23  Eric Blake  <ebb9@byu.net>
45495
45496         * lib/fflush.c: Fix missing include.
45497         Reported by Bruno Haible.
45498
45499 2007-04-23  Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45502         Reported by Eric Blake.
45503
45504 2007-04-23  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45507
45508 2007-04-23  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45511
45512 2007-04-23  Bruno Haible  <bruno@clisp.org>
45513
45514         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45515         Needed on HP-UX 11.
45516
45517 2007-04-16  Eric Blake  <ebb9@byu.net>
45518
45519         Make fflush rely on fpurge.
45520         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45521         open coding all variants.
45522         * modules/fflush (Depends-on): Add fpurge and unistd.
45523         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45524         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45525
45526         Fix --with-tests compilation on cygwin.
45527         * modules/argmatch-tests (Makefile.am): List gnulib library first
45528         in LDADD.
45529         * modules/argp-tests (Makefile.am): Likewise.
45530         * modules/array-list-tests (Makefile.am): Likewise.
45531         * modules/array-oset-tests (Makefile.am): Likewise.
45532         * modules/avltree-list-tests (Makefile.am): Likewise.
45533         * modules/avltree-oset-tests (Makefile.am): Likewise.
45534         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45535         * modules/carray-list-tests (Makefile.am): Likewise.
45536         * modules/dirname-tests (Makefile.am): Likewise.
45537         * modules/frexp-tests (Makefile.am): Likewise.
45538         * modules/isnanl-tests (Makefile.am): Likewise.
45539         * modules/linked-list-tests (Makefile.am): Likewise.
45540         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45541         * modules/lock-tests (Makefile.am): Likewise.
45542         * modules/rbtree-list-tests (Makefile.am): Likewise.
45543         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45544         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45545         * modules/tls-tests (Makefile.am): Likewise.
45546         * modules/tsearch-tests (Makefile.am): Likewise.
45547         * modules/xvasprintf-tests (Makefile.am): Likewise.
45548
45549         Fix fpurge for cygwin.
45550         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45551         value.
45552         * modules/fpurge-tests (Depends-on): Clean up trash.
45553
45554 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45555
45556         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45557
45558         * m4/autobuild.m4: Re-indent.
45559
45560 2007-04-13  Bruno Haible  <bruno@clisp.org>
45561
45562         * modules/fpurge-tests: New file.
45563         * tests/test-fpurge.c: New file.
45564
45565         * modules/fpurge: New file.
45566         * lib/fpurge.h: New file.
45567         * lib/fpurge.c: New file.
45568         * m4/fpurge.m4: New file.
45569
45570 2007-04-13  Bruno Haible  <bruno@clisp.org>
45571
45572         * modules/fbufmode-tests: New file.
45573         * tests/test-fbufmode.c: New file.
45574
45575         * modules/fbufmode: New file.
45576         * lib/fbufmode.h: New file.
45577         * lib/fbufmode.c: New file.
45578         * m4/fbufmode.m4: New file.
45579
45580 2007-04-13  Bruno Haible  <bruno@clisp.org>
45581
45582         * modules/fwritable-tests: New file.
45583         * tests/test-fwritable.c: New file.
45584
45585         * modules/fwritable: New file.
45586         * lib/fwritable.h: New file.
45587         * lib/fwritable.c: New file.
45588         * m4/fwritable.m4: New file.
45589
45590 2007-04-13  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/freadable-tests: New file.
45593         * tests/test-freadable.c: New file.
45594
45595         * modules/freadable: New file.
45596         * lib/freadable.h: New file.
45597         * lib/freadable.c: New file.
45598         * m4/freadable.m4: New file.
45599
45600 2007-04-13  Bruno Haible  <bruno@clisp.org>
45601
45602         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45603         MOSTLYCLEANFILES.
45604
45605 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45606
45607         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45608         gzip bootstrap.conf to avoid dragging in i18n machinery.
45609         (gnulib_tool_option): Use it.
45610
45611 2007-04-13  Bruno Haible  <bruno@clisp.org>
45612
45613         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45614         %F directives.
45615         * tests/test-vasprintf-posix.c (test_function): Likewise.
45616         * tests/test-snprintf-posix.h (test_function): Likewise.
45617         * tests/test-sprintf-posix.h (test_function): Likewise.
45618         * tests/test-fprintf-posix.h (test_function): Likewise.
45619         * tests/test-printf-posix.h (test_function): Likewise.
45620         * tests/test-fprintf-posix.out: Likewise.
45621
45622 2007-04-13  Bruno Haible  <bruno@clisp.org>
45623
45624         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45625         * modules/tls-tests (configure.ac): Likewise.
45626         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45627
45628 2007-04-13  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/tls.c (glthread_tls_get): Fix return type.
45631         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45632
45633 2007-04-12  Eric Blake  <ebb9@byu.net>
45634
45635         * modules/gettime (Depends-on): Remove gettime.
45636         Reported by Dmitry V. Levin.
45637
45638 2007-04-12  Bruno Haible  <bruno@clisp.org>
45639
45640         * modules/fflush (Include): Mention <stdio.h>.
45641         * modules/strtoimax (Include): Mention <inttypes.h>.
45642         * modules/strtoumax (Include): Likewise.
45643
45644 2007-04-12  Eric Blake  <ebb9@byu.net>
45645
45646         * .cvsignore: New file.
45647         * .gitignore: Likewise.
45648
45649 2007-04-12  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45652         not before, since $(LDADD) often contains libgnu.a.
45653         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45654         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45655         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45656         Needed on Cygwin.
45657
45658 2007-04-12  Eric Blake  <ebb9@byu.net>
45659
45660         Work around glibc's failure to flush stdin on fclose.
45661         * lib/closein.c (close_stdin): Flush stdin before closing.
45662
45663         Work around glibc's failure to reset seekable stdin on exit.
45664         * modules/closein: New module.
45665         * lib/closein.c: New file.
45666         * lib/closein.h: Likewise.
45667         * m4/closein.m4: Likewise.
45668         * MODULES.html.sh (File stream based Input/Output): Document it.
45669
45670 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45671
45672         * gnulib-tool: Rename generated 'autobuild' script to
45673         'do-autobuild' in --create-megatestdir output.
45674
45675         * doc/gnulib.texi (Build robot for gnulib): Fix.
45676
45677 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45678
45679         * modules/sysexits (Depends-on): Add absolute-header.
45680
45681 2007-04-12  Eric Blake  <ebb9@byu.net>
45682
45683         No need to preserve errno on success.
45684         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45685         Reported by Bruno Haible.
45686
45687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45688
45689         * MODULES.html.sh (Support for maintaining and releasing
45690         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45691
45692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45693
45694         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45695
45696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45697
45698         * modules/autobuild: New module.
45699
45700         * m4/autobuild.m4: New file.
45701
45702 2007-04-11  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45705         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45721         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45722         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45724         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45725         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45732         Reported by Eric Blake.
45733
45734 2007-04-11  Bruno Haible  <bruno@clisp.org>
45735
45736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45737
45738 2007-04-10  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45741         for NaN and Infinity. Needed on FreeBSD 6.1.
45742         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45743         regarding results for "%010a" of Infinity and NaN.
45744         * tests/test-vasprintf-posix.c (test_function): Likewise.
45745         * tests/test-snprintf-posix.h (test_function): Likewise.
45746         * tests/test-sprintf-posix.h (test_function): Likewise.
45747         * tests/test-fprintf-posix.h (test_function): Likewise.
45748         * tests/test-printf-posix.h (test_function): Likewise.
45749         * tests/test-fprintf-posix.out: Likewise.
45750
45751 2007-04-10  Bruno Haible  <bruno@clisp.org>
45752
45753         * modules/locale-tests: New file.
45754         * tests/test-locale.c: New file.
45755
45756         * modules/locale: New file.
45757         * lib/locale_.h: New file.
45758         * m4/locale_h.m4: New file.
45759
45760 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45761             Bruno Haible  <bruno@clisp.org>
45762
45763         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45764         be determined, test for availability of the copysignf, copysign,
45765         copysignl functions.
45766         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45767         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45768         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45769
45770 2007-04-09  Eric Blake  <ebb9@byu.net>
45771
45772         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45773         * modules/stdio (Makefile.am): Support fflush.
45774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45775         * modules/fflush: New file.
45776         * lib/fflush.c: Likewise.
45777         * m4/fflush.m4: Likewise.
45778         * modules/fflush-tests: New test.
45779         * tests/test-fflush.c: Likewise.
45780         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45781
45782 2007-04-06  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45785         (VASNPRINTF): Use signbit for faster determination whether to print a
45786         minus sign.
45787         * modules/vasnprintf (Files): Remove lib/float+.h.
45788         * modules/fprintf-posix (Depends-on): Add signbit.
45789         * modules/snprintf-posix (Depends-on): Likewise.
45790         * modules/sprintf-posix (Depends-on): Likewise.
45791         * modules/vasnprintf-posix (Depends-on): Likewise.
45792         * modules/vasprintf-posix (Depends-on): Likewise.
45793         * modules/vfprintf-posix (Depends-on): Likewise.
45794         * modules/vsnprintf-posix (Depends-on): Likewise.
45795         * modules/vsprintf-posix (Depends-on): Likewise.
45796
45797 2007-04-06  Bruno Haible  <bruno@clisp.org>
45798
45799         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45800         * tests/test-frexpl.c (main): Likewise.
45801         * tests/test-ldexpl.c (main): Likewise.
45802         * modules/frexp-tests (Depends-on): Add signbit.
45803         * modules/frexpl-tests (Depdends-on): Likewise.
45804         * modules/ldexpl-tests (Depdends-on): Likewise.
45805
45806 2007-04-06  Bruno Haible  <bruno@clisp.org>
45807
45808         * modules/signbit-tests: New file.
45809         * tests/test-signbit.c: New file.
45810
45811         * modules/signbit: New file.
45812         * lib/signbitf.c: New file.
45813         * lib/signbitd.c: New file.
45814         * lib/signbitl.c: New file.
45815         * m4/signbit.m4: New file.
45816         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45817         (signbit): New macro.
45818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45819         REPLACE_SIGNBIT.
45820         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45821         REPLACE_FREXPL into math.h.
45822
45823 2007-04-06  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/isnanf-nolibm-tests: New file.
45826         * tests/test-isnanf.c: New file.
45827
45828         * modules/isnanf-nolibm: New file.
45829         * lib/isnanf.h: New file.
45830         * lib/isnanf.c: New file.
45831         * lib/isnan.c: Consider the USE_FLOAT macro.
45832         * m4/isnanf.m4: New file.
45833
45834 2007-04-06  Bruno Haible  <bruno@clisp.org>
45835
45836         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45837         (Link): New section.
45838
45839         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45840
45841 2007-04-06  Bruno Haible  <bruno@clisp.org>
45842
45843         Assume the 'long double' type.
45844         * m4/longdouble.m4: Remove file.
45845         * config/srclist.txt: Don't mention longdouble.m4.
45846         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45847         * lib/float+.h: Likewise.
45848         * lib/frexp.c: Likewise.
45849         * lib/printf-args.h: Likewise.
45850         * lib/printf-args.c: Likewise.
45851         * lib/printf-frexp.c: Likewise.
45852         * lib/printf-parse.c: Likewise.
45853         * lib/vasnprintf.c: Likewise.
45854         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45855         * m4/intl.m4: Likewise.
45856         * m4/isnanl.m4: Likewise.
45857         * m4/printf.m4: Likewise.
45858         * m4/printf-frexpl.m4: Likewise.
45859         * m4/vasnprintf.m4: Likewise.
45860         * modules/allocsa (Files): Remove m4/longdouble.m4.
45861         * modules/gettext (Files): Likewise.
45862         * modules/relocatable-prog-wrapper (Files): Likewise.
45863         * modules/vasnprintf (Files): Likewise.
45864         * modules/isnanl (Files): Likewise.
45865         (Include): Simplify.
45866         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45867         (Include): Simplify.
45868         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45869         (Include): Simplify.
45870         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45872         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45874         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45876         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45878         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45880         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45882         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45883         * tests/test-isnanl.c: Likewise.
45884         * tests/test-snprintf-posix.h: Likewise.
45885         * tests/test-sprintf-posix.h: Likewise.
45886         * tests/test-vasnprintf-posix.c: Likewise.
45887         * tests/test-vasnprintf-posix2.c: Likewise.
45888         * tests/test-vasprintf-posix.c: Likewise.
45889
45890 2007-04-06  Bruno Haible  <bruno@clisp.org>
45891
45892         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45893         * lib/math_.h [__DECC]: Include the overridden include file through
45894         #include_next, outside the double-inclusion guard.
45895         * lib/stdio_.h [__DECC]: Likewise.
45896         * lib/stdlib_.h [__DECC]: Likewise.
45897         * lib/string_.h [__DECC]: Likewise.
45898         * lib/time_.h [__DECC]: Likewise.
45899         * lib/wchar_.h [__DECC]: Likewise.
45900         * lib/wctype_.h [__DECC]: Likewise.
45901         * lib/inttypes_.h [__DECC]: Likewise.
45902         Reported by Albert Chin <china@thewrittenword.com> in
45903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45904
45905 2007-04-04  Eric Blake  <ebb9@byu.net>
45906
45907         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45908         1.5.x.
45909
45910 2007-04-04  Bruno Haible  <bruno@clisp.org>
45911
45912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45913         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45914
45915 2007-04-04  Bruno Haible  <bruno@clisp.org>
45916
45917         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45918         results for "%010a" of Infinity and NaN.
45919         * tests/test-vasprintf-posix.c (test_function): Likewise.
45920         * tests/test-snprintf-posix.h (test_function): Likewise.
45921         * tests/test-sprintf-posix.h (test_function): Likewise.
45922         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45923         * tests/test-printf-posix.h (test_function): Likewise.
45924         * tests/test-fprintf-posix.out: Update.
45925         Needed for FreeBSD 6.1.
45926
45927 2007-04-04  Bruno Haible  <bruno@clisp.org>
45928
45929         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45930         directly used by the gnulib modules nor by gnulib-tool.
45931
45932 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * DEPENDENCIES: Give overall description of version dependency
45935         desirability.  Use more-typical names for apps.
45936         Add shell, coreutils, diffutils, grep, tar, gzip.
45937
45938 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45939
45940         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45941
45942 2007-04-04  Karl Berry  <karl@gnu.org>
45943
45944         * MODULES.html.sh (func_module): missing '.
45945
45946 2007-04-03  Bruno Haible  <bruno@clisp.org>
45947
45948         * modules/argmatch-tests (Makefile.am): New variable
45949         test_argmatch_LDADD.
45950         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45951         * modules/array-list-tests (Makefile.am): New variable
45952         test_array_list_LDADD.
45953         * modules/array-oset-tests (Makefile.am): New variable
45954         test_array_oset_LDADD.
45955         * modules/avltree-list-tests (Makefile.am): New variable
45956         test_avltree_list_LDADD.
45957         * modules/avltree-oset-tests (Makefile.am): New variable
45958         test_avltree_oset_LDADD.
45959         * modules/avltreehash-list-tests (Makefile.am): New variable
45960         test_avltreehash_list_LDADD.
45961         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45962         test_canonicalize_lgpl_LDADD.
45963         * modules/carray-list-tests (Makefile.am): New variable
45964         test_carray_list_LDADD.
45965         * modules/dirname-tests (Makefile.am): New variable
45966         test_dirname_LDADD.
45967         * modules/linked-list-tests (Makefile.am): New variable
45968         test_linked_list_LDADD.
45969         * modules/linkedhash-list-tests (Makefile.am): New variable
45970         test_linkedhash_list_LDADD.
45971         * modules/rbtree-list-tests (Makefile.am): New variable
45972         test_rbtree_list_LDADD.
45973         * modules/rbtree-oset-tests (Makefile.am): New variable
45974         test_rbtree_oset_LDADD.
45975         * modules/rbtreehash-list-tests (Makefile.am): New variable
45976         test_rbtreehash_list_LDADD.
45977         * modules/xvasprintf-tests (Makefile.am): New variable
45978         test_xvasprintf_LDADD.
45979         Reported by Eric Blake.
45980
45981 2007-04-03  Eric Blake  <ebb9@byu.net>
45982
45983         * DEPENDENCIES: Weaken m4 requirements.
45984
45985 2007-04-03  Bruno Haible  <bruno@clisp.org>
45986
45987         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45988         * modules/isnanl-tests (configure.ac): Likewise.
45989
45990 2007-04-03  Ben Pfaff  <blp@gnu.org>
45991
45992         * modules/iconv_open: Add $(srcdir)/ to source directory
45993         references in Makefile fragments that call gperf, to fix VPATH
45994         builds.
45995
45996 2007-04-03  Bruno Haible  <bruno@clisp.org>
45997
45998         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45999         * lib/ldexpl.c: Undo last change.
46000
46001 2007-04-03  Bruno Haible  <bruno@clisp.org>
46002
46003         * modules/printf-frexpl (Depends-on): Undo last change.
46004         (Files): Add m4/ldexpl.m4.
46005
46006 2007-04-03  Bruno Haible  <bruno@clisp.org>
46007
46008         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46009         * modules/isnanl (Link): New section.
46010
46011         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46012         * modules/frexp (Link): New section.
46013
46014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46015         * modules/frexpl (Link): New section.
46016
46017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46018         * modules/ldexpl (Link): New section.
46019
46020 2007-04-03  Bruno Haible  <bruno@clisp.org>
46021
46022         * modules/TEMPLATE-EXTENDED: New file.
46023         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46024
46025 2007-04-03  Bruno Haible  <bruno@clisp.org>
46026
46027         * DEPENDENCIES: New file.
46028         Suggested by Simon Josefsson.
46029
46030 2007-04-03  Bruno Haible  <bruno@clisp.org>
46031
46032         * doc/gnulib.texi: Escape @.
46033
46034 2007-04-03  James Youngman  <jay@gnu.org>
46035         and Paul Eggert  <eggert@cs.ucla.edu>
46036
46037         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46038         birthtime on all systems that have birthtime, not just those which
46039         use st_birthtimensec rather than st_birthtim.  Putting zero in
46040         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46041         that the birth time is not available for files on an NFS mount.
46042
46043 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46044
46045         * modules/memxor: Move back from crypto/, suggested by Bruno.
46046         * modules/crypto/hmac-sha1: Fix memxor dependency.
46047
46048         * modules/crypto/gc: Moved from ../.
46049
46050 2007-04-02  Eric Blake  <ebb9@byu.net>
46051
46052         * lib/ldexpl.c (includes): Avoid libm.
46053
46054         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46055
46056 2007-04-02  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46059         on IRIX.
46060
46061 2007-04-02  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46064         x86 or x86_64 platforms running MacOS X.
46065         Reported by Ryan Schmidt <@ryandesign.com>.
46066
46067 2007-04-02  Bruno Haible  <bruno@clisp.org>
46068
46069         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46070         i386.
46071
46072 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46073
46074         * modules/crypto/arcfour: Moved from ../.
46075         * modules/crypto/arcfour-tests: Moved from ../.
46076         * modules/crypto/arctwo: Moved from ../.
46077         * modules/crypto/arctwo-tests: Moved from ../.
46078         * modules/crypto/des: Moved from ../.
46079         * modules/crypto/des-tests: Moved from ../.
46080         * modules/crypto/gc-arcfour: Moved from ../.
46081         * modules/crypto/gc-arcfour-tests: Moved from ../.
46082         * modules/crypto/gc-arctwo: Moved from ../.
46083         * modules/crypto/gc-arctwo-tests: Moved from ../.
46084         * modules/crypto/gc-des: Moved from ../.
46085         * modules/crypto/gc-des-tests: Moved from ../.
46086         * modules/crypto/gc-hmac-md5: Moved from ../.
46087         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46088         * modules/crypto/gc-hmac-sha1: Moved from ../.
46089         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46090         * modules/crypto/gc-md2: Moved from ../.
46091         * modules/crypto/gc-md2-tests: Moved from ../.
46092         * modules/crypto/gc-md4: Moved from ../.
46093         * modules/crypto/gc-md4-tests: Moved from ../.
46094         * modules/crypto/gc-md5: Moved from ../.
46095         * modules/crypto/gc-md5-tests: Moved from ../.
46096         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46097         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46098         * modules/crypto/gc-random: Moved from ../.
46099         * modules/crypto/gc-rijndael: Moved from ../.
46100         * modules/crypto/gc-rijndael-tests: Moved from ../.
46101         * modules/crypto/gc-sha1: Moved from ../.
46102         * modules/crypto/gc-sha1-tests: Moved from ../.
46103         * modules/crypto/gc-tests: Moved from ../.
46104         * modules/crypto/hmac-md5: Moved from ../.
46105         * modules/crypto/hmac-md5-tests: Moved from ../.
46106         * modules/crypto/hmac-sha1: Moved from ../.
46107         * modules/crypto/hmac-sha1-tests: Moved from ../.
46108         * modules/crypto/md2: Moved from ../.
46109         * modules/crypto/md2-tests: Moved from ../.
46110         * modules/crypto/md4: Moved from ../.
46111         * modules/crypto/md4-tests: Moved from ../.
46112         * modules/crypto/md5: Moved from ../.
46113         * modules/crypto/md5-tests: Moved from ../.
46114         * modules/crypto/memxor: Moved from ../.
46115         * modules/crypto/rijndael: Moved from ../.
46116         * modules/crypto/rijndael-tests: Moved from ../.
46117         * modules/crypto/sha1: Moved from ../.
46118
46119 2007-03-30  James Youngman  <jay@gnu.org>
46120
46121         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46122         rename() to change the ctime of a file (because ctime is unaffected
46123         by rename on jfs2 on AIX 5.1).
46124         (main): Start by doing cleanup, in case a previous run failed leaving
46125         test files behind.
46126
46127 2007-03-31  Bruno Haible  <bruno@clisp.org>
46128
46129         Support old proprietary implementations of iconv.
46130         * modules/iconv_open: New file.
46131         * lib/iconv_.h: New file.
46132         * m4/iconv_h.m4: New file.
46133         * lib/iconv_open.c: New file.
46134         * lib/iconv_open-aix.gperf: New file.
46135         * lib/iconv_open-hpux.gperf: New file.
46136         * lib/iconv_open-irix.gperf: New file.
46137         * lib/iconv_open-osf.gperf: New file.
46138         * m4/iconv_open.m4: New file.
46139         * modules/linebreak (Depends-on): Add iconv_open.
46140         * modules/striconv (Depends-on): Likewise.
46141         * modules/striconveh (Depends-on): Likewise.
46142         * modules/unicodeio (Depends-on): Likewise.
46143         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46144         (iconv_t)(-1).
46145         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46146         conversion if cd is (iconv_t)(-1).
46147         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46148         is not possible.
46149
46150 2007-03-31  Bruno Haible  <bruno@clisp.org>
46151
46152         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46153         work on Solaris either. Protect also second use of "autodetect_jp".
46154
46155 2007-03-31  Bruno Haible  <bruno@clisp.org>
46156
46157         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46158         the function is not present.
46159
46160 2007-03-31  Bruno Haible  <bruno@clisp.org>
46161
46162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46163         the function is not present.
46164
46165 2007-03-31  Bruno Haible  <bruno@clisp.org>
46166
46167         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46168         a bug in HP-UX iconv_open().
46169
46170 2007-03-31  Bruno Haible  <bruno@clisp.org>
46171
46172         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46173         (Mathematics <math.h>): New section, add fpieee.
46174         (Input/output <stdio.h>): Add fseterr.
46175         (Mathematics <math.h>): New section, add printf-frexp.
46176         (Container data structures): Add sublist.
46177         (Core language properties): Add fpucw, inline.
46178         (Functions for greatest-width integer types <inttypes.h>): Add
46179         imaxabs, imaxdiv, inttypes.
46180         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46181         isnanl-nolibm, ldexp.
46182         (Mathematics <math.h>): New section, add printf-frexpl.
46183         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46184         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46185         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46186         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46187         (Unicode string functions): Add unistr/u*-mbtoucr.
46188         (Java): Add javacomp-script, javaexec-script.
46189         (C#): Add csharpcomp-script, csharpexec-script.
46190         (Support for building libraries and executables): Add havelib,
46191         relocatable-*.
46192         (Support for maintaining and releasing projects): Renamed from
46193         'Support for maintaining and release projects'. Add announce-gen.
46194
46195 2007-03-31  Bruno Haible  <bruno@clisp.org>
46196
46197         * README: Talk primarily about git.
46198         (git and CVS): Renamed from CVS.
46199         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46200         gnulib is available through git.
46201         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46202
46203 2007-03-30  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46206         * lib/poll_.h: Likewise.
46207         * lib/stat_.h: Likewise.
46208         * lib/sys_time_.h: Likewise.
46209         * lib/sysexit_.h: Likewise.
46210         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46211         * lib/stdbool_.h: Likewise.
46212         * lib/byteswap_.h: Add double-inclusion guard.
46213
46214 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46215
46216         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46217
46218 2007-03-30  Karl Berry  <karl@gnu.org>
46219
46220         * config/srclist-update: double space after USA in the license
46221         substitution, since that's how it's usually (?) written.
46222
46223 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46226         reported by Bruno Haible.
46227
46228 2007-03-29  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46231         a bug in AIX iconv().
46232
46233 2007-03-29  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/ldexpl-tests: New file.
46236         * tests/test-ldexpl.c: New file.
46237
46238 2007-03-29  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/ldexpl.c: Include fpucw.h.
46241         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46242         multiplication.
46243         * modules/ldexpl (Depends-on): Add fpucw.
46244
46245 2007-03-29  Bruno Haible  <bruno@clisp.org>
46246
46247         * modules/ldexpl: New file.
46248         * m4/ldexpl.m4: New file.
46249         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46250         set.
46251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46252         REPLACE_LDEXPL.
46253         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46254         REPLACE_LDEXPL.
46255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46256         gl_FUNC_LDEXPL_WORKS.
46257         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46258         * modules/mathl (Files): Remove lib/ldexpl.c.
46259         (Depends-on): Add ldexpl.
46260
46261 2007-03-29  Bruno Haible  <bruno@clisp.org>
46262
46263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46264
46265 2007-03-29  Bruno Haible  <bruno@clisp.org>
46266
46267         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46268         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46269         and possibly also HP-UX.
46270         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46271         work on AIX, IRIX, HP-UX, OSF/1.
46272         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46273         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46274         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46275         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46276         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46277         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46278
46279 2007-03-29  Bruno Haible  <bruno@clisp.org>
46280
46281         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46282
46283 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46284
46285         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46286         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46287
46288 2007-03-29  Eric Blake  <ebb9@byu.net>
46289
46290         * lib/acl-internal.h: Remove redundant include.
46291         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
46292         Cygwin when a file is locked.
46293
46294 2007-03-29  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
46297         file.
46298         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
46299
46300 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46301
46302         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
46303         try to remove a parent directory if the child couldn't be removed
46304         (except for the first rmdir, which could fail because the child
46305         doesn't exist).  Problem reported by Jeff Blaine in
46306         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
46307
46308 2007-03-28  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/striconveh.c (utf8conv_carefully): New function.
46311         (mem_cd_iconveh_internal): Invoke it.
46312
46313 2007-03-28  Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
46316         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
46317         input.
46318         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
46319         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
46320         unistr/u8-uctomb.
46321
46322 2007-03-28  Bruno Haible  <bruno@clisp.org>
46323
46324         * modules/unistr/u8-mbtoucr: New file.
46325         * lib/unistr/u8-mbtoucr.c: New file.
46326         * modules/unistr/u16-mbtoucr: New file.
46327         * lib/unistr/u16-mbtoucr.c: New file.
46328         * modules/unistr/u16-mbtoucr: New file.
46329         * lib/unistr/u16-mbtoucr.c: New file.
46330         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
46331
46332 2007-03-27  Simon Josefsson  <simon@josefsson.org>
46333             Bruno Haible  <bruno@clisp.org>
46334
46335         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46336         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46337         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46338
46339         * m4/stdio_h.m4: Add stubs for vasprintf too.
46340
46341         * modules/stdio: Support vasprintf in sed command.
46342
46343         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46344         vasprintf.h.  Add stdio module indicator.
46345
46346         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46347         vasprintf.h.
46348
46349         * lib/vasprintf.h: File removed.
46350
46351         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46352         * lib/vasprintf.c: Ditto.
46353         * lib/xvasprintf.c: Ditto.
46354         * tests/test-vasprintf-posix.c: Ditto.
46355         * tests/test-vasprintf.c: Ditto.
46356
46357 2007-03-27  Bruno Haible  <bruno@clisp.org>
46358
46359         Make vasnprintf multithread-safe.
46360         * lib/vasnprintf.c (decimal_point_char): New function.
46361         (VASNPRINTF): Use it.
46362         Suggested by Simon Josefsson.
46363
46364 2007-03-27  Eric Blake  <ebb9@byu.net>
46365
46366         Support sub-second birthtime on cygwin.
46367         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46368         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46369         (get_stat_birthtime): Also work with st_birthtim.
46370
46371 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46372
46373         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46374         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46375         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46376         (get_stat_birthtime_ns): Simplify compile-time tests.
46377         (get_stat_birthtime): Change the API to look like
46378         get_stat_mtime etc., except return a negative tv_nsec on error.
46379         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46380         Don't check for "spare" fields.
46381         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46382         or for struct stat.st_birthtime, as these tests aren't used.
46383         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46384
46385 2007-03-27  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/stat-time.h: Include <sys/stat.h>.
46388
46389 2007-03-27  James Youngman  <jay@gnu.org>
46390
46391         * lib/stat-time.h (get_stat_birthtime): New function for
46392           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46393         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46394           and its variants.
46395         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46396         * modules/stat-time-test: New file.
46397         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46398
46399 2007-03-26  Bruno Haible  <bruno@clisp.org>
46400
46401         Better support of signalling NaNs.
46402         * lib/atanl.c: Include isnanl.h.
46403         (atanl): Perform test for NaN at the beginning of the function and
46404         through a call to isnanl.
46405         * lib/cosl.c: Include isnanl.h.
46406         (cosl): Perform test for NaN at the beginning of the function and
46407         through a call to isnanl.
46408         * lib/ldexpl.c: Include isnanl.h.
46409         (ldexpl): Perform test for NaN through a call to isnanl.
46410         * lib/logl.c: Include isnanl.h.
46411         (logl): Perform test for NaN at the beginning of the function and
46412         through a call to isnanl.
46413         * lib/sinl.c: Include isnanl.h.
46414         (sinl): Perform test for NaN at the beginning of the function and
46415         through a call to isnanl.
46416         * lib/sqrtl.c: Include isnanl.h.
46417         (sqrtl): Perform test for NaN at the beginning of the function and
46418         through a call to isnanl.
46419         * lib/tanl.c: Include isnanl.h.
46420         (tanl): Perform test for NaN at the beginning of the function and
46421         through a call to isnanl.
46422         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46423         * modules/mathl (Depends-on): Add isnanl.
46424
46425 2007-03-26  Eric Blake  <ebb9@byu.net>
46426
46427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46428         regression in logic sense of previous patch.
46429
46430 2007-03-26  Bruno Haible  <bruno@clisp.org>
46431
46432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46433         unportable shell command "if ! ...".
46434         Reported by Ralf Wildenhues.
46435
46436 2007-03-25  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46439         <sysexits.h> file, and only add EX_CONFIG.
46440         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46441         absolute file name and whether it is sufficient. Substitute also
46442         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46443         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46444         ABSOLUTE_SYSEXITS_H into sysexits.h.
46445
46446 2007-03-25  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46449         hints is NULL.
46450
46451 2007-03-25  Bruno Haible  <bruno@clisp.org>
46452
46453         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46454         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46455
46456 2007-03-25  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/vasnprintf.c: Include langinfo.h.
46459         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46460         multithread-safe.
46461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46470         Reported by Simon Josefsson.
46471
46472 2007-03-25  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46475         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46476         * modules/vasnprintf (Depends-on): Add stdint.
46477
46478 2007-03-25  Bruno Haible  <bruno@clisp.org>
46479
46480         * modules/fpieee: New file.
46481         * m4/fpieee.m4: New file.
46482         * modules/isnan-nolibm (Depends-on): Add fpieee.
46483         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46484         * modules/isnanl (Depends-on): Add fpieee.
46485
46486 2007-03-25  Bruno Haible  <bruno@clisp.org>
46487
46488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46489
46490 2007-03-25  Bruno Haible  <bruno@clisp.org>
46491
46492         Avoid test failures on IRIX 6.5.
46493         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46494         (main): Use it.
46495         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46496         macros.
46497         (main): Use them.
46498
46499 2007-03-25  Bruno Haible  <bruno@clisp.org>
46500
46501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46502         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46503         exists but doesn't work.
46504         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46505         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46507         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46508
46509 2007-03-25  Bruno Haible  <bruno@clisp.org>
46510
46511         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46512         returns inf. Needed on IRIX 6.5.
46513
46514 2007-03-25  Bruno Haible  <bruno@clisp.org>
46515
46516         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46517         (main): Use isnanl instead of x != x idiom.
46518         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46519
46520         * tests/test-frexp.c: Include isnan.h.
46521         (main): Use isnan instead of x != x idiom.
46522         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46523
46524 2007-03-25  Bruno Haible  <bruno@clisp.org>
46525
46526         * tests/test-frexp.c (NaN): New function/macro.
46527         (main): Use it instead of 0.0 / 0.0.
46528         * tests/test-isnan.c (NaN): New function/macro.
46529         (main): Use it instead of 0.0 / 0.0.
46530         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46531         (test_function): Use it instead of 0.0 / 0.0.
46532         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46533         (test_function): Use it instead of 0.0 / 0.0.
46534         * tests/test-snprintf-posix.h (NaN): New function/macro.
46535         (test_function): Use it instead of 0.0 / 0.0.
46536         * tests/test-sprintf-posix.h (NaN): New function/macro.
46537         (test_function): Use it instead of 0.0 / 0.0.
46538         * tests/test-fprintf-posix.h (NaN): New function/macro.
46539         (test_function): Use it instead of 0.0 / 0.0.
46540         * tests/test-printf-posix.h (NaN): New function/macro.
46541         (test_function): Use it instead of 0.0 / 0.0.
46542
46543         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46544
46545 2007-03-25  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46548
46549 2007-03-25  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/regexec.c (merge_state_with_log): Make static.
46552
46553 2007-03-25  Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/trigl.c (kernel_rem_pio2): Make static.
46556
46557 2007-03-25  Bruno Haible  <bruno@clisp.org>
46558
46559         * lib/sincosl.c (sincosl_table): Make static.
46560
46561 2007-03-25  Bruno Haible  <bruno@clisp.org>
46562
46563         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46564         if the compiler does not support C99.
46565
46566 2007-03-25  Bruno Haible  <bruno@clisp.org>
46567
46568         * modules/time (Makefile.am): Ensure all rule action lines start with a
46569         tab.
46570
46571 2007-03-24  Bruno Haible  <bruno@clisp.org>
46572
46573         * modules/tsearch-tests: New file.
46574         * tests/test-tsearch.sh: New file.
46575         * tests/test-tsearch.c: New file, mostly copied from glibc.
46576
46577         * modules/search-tests: New file.
46578         * tests/test-search.c: New file.
46579
46580         * modules/search: New file.
46581         * lib/search_.h: New file, incorporating lib/tsearch.h.
46582         * m4/search_h.m4: New file.
46583         * lib/tsearch.h: Remove file.
46584         * lib/tsearch.c: Include search.h instead of tsearch.h.
46585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46586         HAVE_TSEARCH.
46587         * modules/tsearch (Files): Remove lib/tsearch.h.
46588         (Depends-on): Add search.
46589         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46590         (Include): Change tsearch.h into search.h.
46591
46592 2007-03-24  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/fpucw: New file.
46595         * lib/fpucw.h: New file.
46596         * lib/frexp.c: Include fpucw.h.
46597         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46598         (FUNC): Use them.
46599         * lib/printf-frexp.c: Include fpucw.h.
46600         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46601         (FUNC): Use them.
46602         * lib/vasnprintf.c: Include fpucw.h.
46603         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46604         'long double' calculations.
46605         * tests/test-frexpl.c: Include fpucw.h.
46606         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46607         * tests/test-printf-frexpl.c: Include fpucw.h.
46608         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46609         * modules/frexpl (Depends-on): Add fpucw.
46610         * modules/printf-frexpl (Depends-on): Likewise.
46611         * modules/fprintf-posix (Depends-on): Likewise.
46612         * modules/snprintf-posix (Depends-on): Likewise.
46613         * modules/sprintf-posix (Depends-on): Likewise.
46614         * modules/vasnprintf-posix (Depends-on): Likewise.
46615         * modules/vasprintf-posix (Depends-on): Likewise.
46616         * modules/vfprintf-posix (Depends-on): Likewise.
46617         * modules/vsnprintf-posix (Depends-on): Likewise.
46618         * modules/vsprintf-posix (Depends-on): Likewise.
46619         * modules/frexpl-tests (Depends-on): Likewise.
46620         * modules/printf-frexpl-tests (Depends-on): Likewise.
46621
46622 2007-03-24  Bruno Haible  <bruno@clisp.org>
46623
46624         * lib/float+.h: New file.
46625         * lib/isnan.c: Include float+.h.
46626         (SIZE): New macro.
46627         (FUNC): Compare only SIZE bytes of the value.
46628         * lib/vasnprintf.c: Include float+.h.
46629         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46630         SIZEOF_LDBL or SIZEOF_DBL bytes.
46631         * modules/isnan-nolibm (Files): Add lib/float+.h.
46632         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46633         * modules/isnanl (Files): Add lib/float+.h.
46634         * modules/vasnprintf (Files): Add lib/float+.h.
46635
46636 2007-03-24  Bruno Haible  <bruno@clisp.org>
46637
46638         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46639         include isnanl-nolibm.h.
46640
46641 2007-03-24  Bruno Haible  <bruno@clisp.org>
46642
46643         * tests/test-read-file.c (main): Don't produce spurious output for
46644         expected situations. Make the test fail if it encountered unexpected
46645         results.
46646
46647 2007-03-24  Bruno Haible  <bruno@clisp.org>
46648
46649         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46650         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46651
46652 2007-03-24  Bruno Haible  <bruno@clisp.org>
46653
46654         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46655
46656 2007-03-24  Bruno Haible  <bruno@clisp.org>
46657
46658         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46659         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46660
46661         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46662         * modules/utf8-ucs4: Turn into a symbolic link to module
46663         unistr/u8-mbtouc.
46664
46665         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46666         utf8-ucs4-unsafe.
46667         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46668         unistr/u8-mbtouc-unsafe.
46669
46670         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46671         * modules/utf16-ucs4: Turn into a symbolic link to module
46672         unistr/u16-mbtouc.
46673
46674         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46675         utf16-ucs4-unsafe.
46676         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46677         unistr/u16-mbtouc-unsafe.
46678
46679         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46680         * modules/ucs4-utf8: Turn into a symbolic link to module
46681         unistr/u8-ubtomb.
46682
46683         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46684         * modules/ucs4-utf16: Turn into a symbolic link to module
46685         unistr/u16-ubtomb.
46686
46687 2007-03-24  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46690         Enable the function only if HAVE_INLINE.
46691         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46692         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46693         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46694         Enable the function only if HAVE_INLINE.
46695         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46696         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46697         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46698         Enable the function only if HAVE_INLINE.
46699         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46700         Enable the function only if HAVE_INLINE.
46701         * modules/utf8-ucs4: Update.
46702         * modules/utf8-ucs4-unsafe: Update.
46703         * modules/utf16-ucs4: Update.
46704         * modules/utf16-ucs4-unsafe: Update.
46705         * modules/ucs4-utf8: Update.
46706         * modules/ucs4-utf16: Update.
46707
46708 2007-03-24  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/utf8-ucs4.h: Remove file.
46711         * lib/utf8-ucs4-unsafe.h: Remove file.
46712         * lib/utf16-ucs4.h: Remove file.
46713         * lib/utf16-ucs4-unsafe.h: Remove file.
46714         * lib/ucs4-utf8.h: Remove file.
46715         * lib/ucs4-utf16.h: Remove file.
46716         * lib/unistr.h: Include their previous contents.
46717         * m4/utf-ucs4.m4: Remove file.
46718         * m4/ucs4-utf.m4: Remove file.
46719         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46720         (Depends-on): Add unistr/base.
46721         (configure.ac): Remove gl_UTF_UCS4.
46722         (Makefile.am): Update.
46723         (Include): Change to unistr.h.
46724         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46725         (Depends-on): Add unistr/base.
46726         (configure.ac): Remove gl_UTF_UCS4.
46727         (Makefile.am): Update.
46728         (Include): Change to unistr.h.
46729         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46730         (Depends-on): Add unistr/base.
46731         (configure.ac): Remove gl_UTF_UCS4.
46732         (Makefile.am): Update.
46733         (Include): Change to unistr.h.
46734         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46735         (Depends-on): Add unistr/base.
46736         (configure.ac): Remove gl_UTF_UCS4.
46737         (Makefile.am): Update.
46738         (Include): Change to unistr.h.
46739         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46740         (Depends-on): Add unistr/base.
46741         (configure.ac): Remove gl_UCS4_UTF.
46742         (Makefile.am): Update.
46743         (Include): Change to unistr.h.
46744         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46745         (Depends-on): Add unistr/base.
46746         (configure.ac): Remove gl_UCS4_UTF.
46747         (Makefile.am): Update.
46748         (Include): Change to unistr.h.
46749         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46750         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46751         utf8-ucs4-unsafe.h.
46752         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46753         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46754         utf16-ucs4-unsafe.h.
46755         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46756         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46757         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46758         * lib/unistr/u8-strchr.c: Likewise.
46759         * lib/unistr/u8-strrchr.c: Likewise.
46760         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46761         * lib/unistr/u16-strchr.c: Likewise.
46762         * lib/unistr/u16-strrchr.c: Likewise.
46763         * lib/striconveh.c: Update.
46764         * lib/linebreak.c: Update.
46765
46766 2007-03-24  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46769         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46770
46771 2007-03-22  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46774
46775 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46776
46777         * MODULES.html.sh (File system functions): New module write-any-file.
46778         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46779         * m4/write-any-file.m4: New files.
46780
46781 2007-03-23  Eric Blake  <ebb9@byu.net>
46782
46783         * gnulib-tool: Rearrange space-tab sequences, since some editors
46784         like to eat them.
46785
46786 2007-03-23  Eric Blake  <ebb9@byu.net>
46787
46788         * lib/version-etc.c (version_etc_va): Update license wording to
46789         be more concise.  Recommended by Richard Stallman.
46790
46791 2007-03-22  Bruno Haible  <bruno@clisp.org>
46792
46793         * lib/poll.c (MSG_PEEK): New fallback definition.
46794
46795 2007-03-22  Bruno Haible  <bruno@clisp.org>
46796
46797         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46798         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46799         (main): Update.
46800         Fixes a compilation error on BeOS.
46801
46802 2007-03-22  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/frexpl-tests: New file.
46805         * tests/test-frexpl.c: New file.
46806
46807         * modules/frexpl: New file.
46808         * m4/frexpl.m4: New file.
46809         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46810         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46812         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46813         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46814         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46815
46816 2007-03-22  Bruno Haible  <bruno@clisp.org>
46817
46818         * lib/frexpl.c: Share code with lib/frexp.c.
46819         * modules/mathl (Files): Add lib/frexp.c.
46820         (Depends-on): Add isnanl-nolibm.
46821
46822 2007-03-22  Bruno Haible  <bruno@clisp.org>
46823
46824         * modules/printf-frexp (Files): Add m4/frexp.m4.
46825         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46826         only if the found frexp function actually works.
46827
46828 2007-03-22  Bruno Haible  <bruno@clisp.org>
46829
46830         * lib/frexp.c: Remove older implementation that uses divisions.
46831
46832 2007-03-21  Bruno Haible  <bruno@clisp.org>
46833
46834         * modules/frexp-tests: New file.
46835         * tests/test-frexp.c: New file.
46836
46837         * modules/frexp: New file.
46838         * lib/frexp.c: New file.
46839         * m4/frexp.m4: New file.
46840         * lib/math_.h (frexp): New declaration.
46841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46842         REPLACE_FREXP.
46843         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46844
46845 2007-03-21  Bruno Haible  <bruno@clisp.org>
46846
46847         * modules/isnanl-tests: New file.
46848         * tests/test-isnanl.c: New file.
46849
46850         * modules/isnanl: New file.
46851         * lib/isnanl.h: New file.
46852         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46853         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46854         gl_FUNC_ISNANL_WORKS.
46855         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46856         New macros.
46857
46858 2007-03-21  Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46861         lib/isnanl.h.
46862         (Include): Update.
46863         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46864         * lib/vasnprintf.c: Update.
46865         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46866         tests/test-isnanl.h, remove tests/test-isnanl.c.
46867         (Makefile.am): Update.
46868         * tests/test-isnanl-nolibm.c: New file.
46869         * tests/test-isnanl.h: New file.
46870         * tests/test-isnanl.c: Remove file.
46871
46872 2007-03-21  Jim Meyering  <jim@meyering.net>
46873
46874         When trying to open ".", treat ESTALE like EACCES.
46875         * lib/savewd.c (savewd_save): Resort to forking not just upon
46876         failure with EACCES, but also when errno is ESTALE.
46877
46878 2007-03-20  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46881         Needed on AIX 5.1. Reported by Matthew Woehlke.
46882
46883 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46884
46885         Suggestions by Bruno Haible:
46886         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46887         our own.
46888         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46889         * modules/acl (Depends-on): Add gettext.
46890
46891 2007-03-19  Bruno Haible  <bruno@clisp.org>
46892
46893         * modules/iconvme: Remove file.
46894         * lib/iconvme.h: Remove file.
46895         * lib/iconvme.c: Remove file.
46896         * m4/iconvme.m4: Remove file.
46897
46898 2007-03-19  Bruno Haible  <bruno@clisp.org>
46899
46900         * doc/relocatable-maint.texi: Break long shell script line.
46901         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46902
46903 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46904
46905         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46906         handle file_has_acl.
46907         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46908         * lib/acl.c: Move header inclusions and related macro defns into
46909         lib/acl-internal.h.
46910         (S_ISLNK): Remove defn, since that's now done for us.
46911         (file_has_acl): Move to lib/file-has-acl.c.
46912         Call acl_trivial if available.  This is the crucial part of the fix.
46913         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46914         shared within the library.  Rewrite a bit, partly to make it compatible
46915         with the GNU coding style.
46916         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46917         Remove unnecessary double-quotes.
46918         Don't test for acl_to_text; the build will catch that.
46919         Replace acl_entries if it doesn't exist and it is needed.
46920         Check for -lsec and acl_trivial (as used on Solaris 10).
46921         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46922         lib/file-has-acl.c.
46923         (Depends-on): Add sys_stat, for S_ISLNK.
46924
46925 2007-03-19  Ben Pfaff  <blp@gnu.org>
46926
46927         * doc/gnulib.texi: Fix typos.
46928         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46929
46930 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46931
46932         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46933         If size is zero here, buf must be zero.
46934
46935 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46936
46937         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46938         <bruno@clisp.org>.
46939
46940 2007-03-18  Bruno Haible  <bruno@clisp.org>
46941
46942         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46943         Suggested by Eric Blake.
46944
46945 2007-03-18  Ben Pfaff  <blp@gnu.org>
46946
46947         * doc/relocatable.texi: Recommend using as prefix a directory
46948         that does not exist and will never be created.  Based on
46949         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46950         and others.
46951
46952 2007-03-17  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/fchownat.c: Include lchown.h.
46955
46956 2007-03-17  Bruno Haible  <bruno@clisp.org>
46957
46958         Fix endless loop when the given allocated size was > INT_MAX.
46959         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46960         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46961         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46962         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46963         * lib/sprintf.c (sprintf): Likewise.
46964
46965 2007-03-17  Bruno Haible  <bruno@clisp.org>
46966
46967         * tests/test-argp-2.sh (func_compare): Output a context diff.
46968
46969 2007-03-17  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46972         locale's decimal-point character.
46973
46974 2007-03-17  Bruno Haible  <bruno@clisp.org>
46975
46976         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46977         before comparing it. Needed because on some platforms (e.g. x86) a
46978         'long double' occupies less bytes than sizeof (long double).
46979
46980 2007-03-17  Bruno Haible  <bruno@clisp.org>
46981
46982         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46983         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46984         * tests/test-getaddrinfo.c (simple): Likewise.
46985         * tests/test-read-file.c (main): Likewise.
46986
46987 2007-03-17  Bruno Haible  <bruno@clisp.org>
46988
46989         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46990
46991 2007-03-17  Bruno Haible  <bruno@clisp.org>
46992
46993         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46994         unused variable.
46995
46996 2007-03-17  Bruno Haible  <bruno@clisp.org>
46997
46998         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46999         * tests/test-c-strncasecmp.c: Likewise.
47000
47001 2007-03-17  Bruno Haible  <bruno@clisp.org>
47002
47003         * modules/stdlib (Depends-on): Add unistd.
47004         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47005         Needed for MacOS X 10.3.
47006
47007 2007-03-17  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47010
47011 2007-03-17  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47014
47015 2007-03-17  Bruno Haible  <bruno@clisp.org>
47016
47017         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47018         to reflect files copied from gnulib (with or without modifications).
47019         Suggested by Jim Meyering.
47020
47021 2007-03-17  Eric Blake  <ebb9@byu.net>
47022
47023         * NEWS: Document stdlib change from 2007-02-18.
47024
47025 2007-03-17  Jim Meyering  <jim@meyering.net>
47026
47027         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47028         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47029         someone uses a name containing shell meta-characters.
47030         Reported by Alfred M. Szmidt.
47031
47032         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47033
47034 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47035
47036         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47037         and copy gettext configuration files only if configure.ac contains
47038         a use of AM_GNU_GETTEXT_VERSION.
47039
47040 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47041
47042         * build-aux/bootstrap (gnulib_name): New variable.
47043         (gnulib_tool_options): Use it.
47044
47045 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47046
47047         * tests/test-des.c: Use new namespace.
47048
47049 2007-03-15  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47052         Reported by James Youngman <jay@gnu.org>.
47053
47054 2007-03-15  Bruno Haible  <bruno@clisp.org>
47055
47056         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47057         declared prototype. Needed with cc on OSF/1 5.1.
47058
47059 2007-03-15  Bruno Haible  <bruno@clisp.org>
47060
47061         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47062         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47063         (struct gl_list_implementation): Add dispose_fn argument to the
47064         'create_empty', 'create' methods.
47065         (struct gl_list_impl_base): Add field 'dispose_fn'.
47066         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47067         argument.
47068         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47069         dispose_fn argument.
47070         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47071         dispose_fn on the dropped values.
47072         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47073         dispose_fn argument.
47074         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47075         dropped values.
47076         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47077         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47078         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47079         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47080         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47081         argument.
47082         (gl_tree_list_free): Call dispose_fn on the dropped values.
47083         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47084         the dropped values.
47085         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47086         Add dispose_fn argument.
47087         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47088         Call dispose_fn on the dropped values.
47089         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47090         Add dispose_fn argument.
47091         (gl_sublist_create): Initialize the 'dispose_fn' field.
47092         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47093         * tests/test-array_list.c (main): Update.
47094         * tests/test-carray_list.c (main): Update.
47095         * tests/test-avltree_list.c (main): Update.
47096         * tests/test-rbtree_list.c (main): Update.
47097         * tests/test-avltreehash_list.c (main): Update.
47098         * tests/test-rbtreehash_list.c (main): Update.
47099         * tests/test-linked_list.c (main): Update.
47100         * tests/test-linkedhash_list.c (main): Update.
47101         * tests/test-array_oset.c (main): Update.
47102
47103 2007-03-15  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47106         (gl_oset_create_empty): Add dispose_fn argument.
47107         (struct gl_oset_implementation): Add dispose_fn argument to
47108         'create_empty' method.
47109         (struct gl_oset_impl_base): Add dispose_fn field.
47110         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47111         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47112         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47113         values.
47114         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47115         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47116         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47117         dropped value.
47118         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47119         dropped value.
47120         * tests/test-array_oset.c (main): Update.
47121         * tests/test-avltree_oset.c (main): Update.
47122         * tests/test-rbtree_oset.c (main): Update.
47123         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47124
47125 2007-03-13  Bruno Haible  <bruno@clisp.org>
47126
47127         * tests/test-stdbool.c (i): Update after last patch.
47128
47129 2007-03-12  Bruno Haible  <bruno@clisp.org>
47130
47131         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47132         the iswprint macro. Needed on Solaris 2.5.1.
47133
47134 2007-03-12  Bruno Haible  <bruno@clisp.org>
47135
47136         * tests/test-printf-frexp.c (main): Declare x as volatile.
47137
47138 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47139
47140         * doc/gnulib.texi (Build robot for gnulib): New section.
47141
47142 2007-03-12  Jim Meyering  <jim@meyering.net>
47143
47144         * build-aux/bootstrap: New file.
47145         * build-aux/bootstrap.conf: New file, from coreutils.
47146
47147 2007-03-11  Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47150
47151 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47152
47153         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47154         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47155         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47156
47157 2007-03-11  Bruno Haible  <bruno@clisp.org>
47158
47159         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47160         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47161
47162 2007-03-11  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47165         formula. Needed for SunPRO C 5.0.
47166
47167 2007-03-11  Bruno Haible  <bruno@clisp.org>
47168
47169         * modules/long-options (Depends-on): Add getopt.
47170
47171 2007-03-11  Bruno Haible  <bruno@clisp.org>
47172
47173         * modules/modechange (Depends-on): Add stdbool.
47174
47175 2007-03-11  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/i-ring (Depends-on): Add stdbool.
47178
47179 2007-03-11  Bruno Haible  <bruno@clisp.org>
47180
47181         * modules/gc-des (Depends-on): Add stdbool.
47182
47183 2007-03-11  Bruno Haible  <bruno@clisp.org>
47184
47185         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47186
47187 2007-03-11  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47190
47191 2007-03-11  Bruno Haible  <bruno@clisp.org>
47192
47193         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47194
47195 2007-03-11  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/vasnprintf.c (sprintf): Undefine.
47198
47199 2007-03-11  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47202         initializers in SunPRO C and Compaq C compilers.
47203
47204 2007-03-11  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47207         decrementing code ANSI C compliant.
47208
47209 2007-03-11  Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47212         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47213
47214 2007-03-11  Bruno Haible  <bruno@clisp.org>
47215
47216         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47217         <stdbool.h> substitute doesn't pass.
47218
47219 2007-03-11  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47222
47223 2007-03-11  Bruno Haible  <bruno@clisp.org>
47224
47225         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47226         script, for submission to autobuild.josefsson.org.
47227
47228 2007-03-10  Bruno Haible  <bruno@clisp.org>
47229
47230         * modules/canonicalize-lgpl-tests: New file.
47231         * tests/test-canonicalize-lgpl.sh: New file.
47232         * tests/test-canonicalize-lgpl.c: New file.
47233
47234         * modules/c-strcase-tests: New file.
47235         * tests/test-c-strcase.sh: New file.
47236         * tests/test-c-strcasecmp.c: New file.
47237         * tests/test-c-strncasecmp.c: New file.
47238
47239         * modules/atexit-tests: New file.
47240         * tests/test-atexit.sh: New file.
47241         * tests/test-atexit.c: New file.
47242
47243 2007-03-10  Bruno Haible  <bruno@clisp.org>
47244
47245         * tests/test-binary-io.sh: Use temporary filenames that are not so
47246         likely to clash with those of other tests (in a parallel make).
47247         * tests/test-binary-io.c: Likewise.
47248
47249 2007-03-10  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47252         fallback; use #error instead.
47253         Suggested by Simon Josefsson.
47254
47255 2007-03-10  Bruno Haible  <bruno@clisp.org>
47256
47257         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47258         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47259         first and the last.
47260
47261 2007-03-10  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47264
47265 2007-03-10  Bruno Haible  <bruno@clisp.org>
47266
47267         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47268         "make distcheck".
47269         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47270         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47271         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47272
47273 2007-03-10  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47276         variable.
47277         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47278         variable.
47279
47280 2007-03-09  Eric Blake  <ebb9@byu.net>
47281         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47282
47283         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47284         types are not being provided by gnulib.
47285         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47286         types are supported.
47287
47288 2007-03-10  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/stdio_.h (__attribute__): New macro.
47291         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
47292         vsprintf): Specify __attribute__ __format__ for GCC.
47293         Suggested by Eric Blake.
47294
47295 2007-03-09  Bruno Haible  <bruno@clisp.org>
47296
47297         * modules/printf-posix-tests: New file.
47298         * tests/test-printf-posix.sh: New file.
47299         * tests/test-printf-posix.c: New file.
47300
47301         * modules/printf-posix: New file.
47302         * lib/printf.c: New file.
47303         * m4/printf-posix-rpl.m4: New file.
47304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
47305         REPLACE_PRINTF.
47306         * lib/stdio_.h (printf): New declaration.
47307         (format, __format__, ____printf____, ____scanf____, ____strftime____,
47308         ____strfmon____): New macros.
47309         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
47310         REPLACE_PRINTF.
47311
47312 2007-03-09  Bruno Haible  <bruno@clisp.org>
47313
47314         * tests/test-vasnprintf-posix2.sh: New file.
47315         * tests/test-vasnprintf-posix2.c: New file.
47316         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
47317         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47318         (Makefile.am): Activate test-vasnprintf-posix2.sh.
47319
47320         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
47321         a locale dependent decimal point, rather than always '.'.
47322
47323 2007-03-09  Eric Blake  <ebb9@byu.net>
47324
47325         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
47326         spite of platforms like Tandem/NSK that define it to -1.
47327
47328 2007-03-08  Bruno Haible  <bruno@clisp.org>
47329
47330         * modules/vprintf-posix-tests: New file.
47331         * tests/test-vprintf-posix.sh: New file.
47332         * tests/test-vprintf-posix.c: New file.
47333         * tests/test-printf-posix.h: New file.
47334
47335         * modules/vprintf-posix: New file.
47336         * lib/vprintf.c: New file.
47337         * m4/vprintf-posix.m4: New file.
47338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47339         REPLACE_VPRINTF.
47340         * lib/stdio_.h (vprintf): New declaration.
47341         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47342         REPLACE_VPRINTF.
47343
47344 2007-03-08  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/fprintf-posix-tests: New file.
47347         * tests/test-fprintf-posix.sh: New file.
47348         * tests/test-fprintf-posix.c: New file.
47349
47350         * modules/fprintf-posix: New file.
47351         * lib/fprintf.c: New file.
47352         * m4/fprintf-posix.m4: New file.
47353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47354         REPLACE_FPRINTF.
47355         * lib/stdio_.h (fprintf): New declaration.
47356         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47357         REPLACE_FPRINTF.
47358
47359 2007-03-08  Bruno Haible  <bruno@clisp.org>
47360
47361         * modules/vfprintf-posix-tests: New file.
47362         * tests/test-vfprintf-posix.sh: New file.
47363         * tests/test-vfprintf-posix.c: New file.
47364         * tests/test-fprintf-posix.h: New file.
47365         * tests/test-fprintf-posix.out: New file.
47366
47367         * modules/vfprintf-posix: New file.
47368         * lib/vfprintf.c: New file.
47369         * m4/vfprintf-posix.m4: New file.
47370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47371         REPLACE_VFPRINTF.
47372         * lib/stdio_.h (vfprintf): New declaration.
47373         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47374         REPLACE_VFPRINTF.
47375
47376 2007-03-08  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47379
47380 2007-03-08  Bruno Haible  <bruno@clisp.org>
47381
47382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47383         instead of 'expr' invocations.
47384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47389         Suggested by Paul Eggert.
47390
47391 2007-03-08  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/fseterr-tests: New file.
47394         * tests/test-fseterr.c: New file.
47395
47396         * modules/fseterr: New file.
47397         * lib/fseterr.h: New file.
47398         * lib/fseterr.c: New file.
47399
47400 2007-03-08  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47403         * lib/getopt_.h: Likewise.
47404         * lib/mbswidth.h: Likewise.
47405         * lib/setenv.h: Likewise.
47406         * lib/vasnprintf.h: Likewise.
47407         * lib/vasprintf.h: Likewise.
47408         * lib/verror.h: Likewise.
47409         * lib/xsetenv.h: Likewise.
47410         * lib/xvasprintf.h: Likewise.
47411
47412 2007-03-08  Jim Meyering  <jim@meyering.net>
47413
47414         * users.txt: Add parted.
47415
47416         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47417
47418 2007-03-07  Bruno Haible  <bruno@clisp.org>
47419
47420         * m4/printf.m4: Make the shell script snippets copy&pastable.
47421
47422 2007-03-02  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/netinet_in_.h: New file.
47425         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47426         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47427         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47428         (Depends-on): Add absolute-header.
47429         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47430         into netinet/in.h.
47431
47432 2007-03-03  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/sys_select_.h: New file.
47435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47436         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47437         * modules/sys_select (Files): Add lib/sys_select_.h.
47438         (Depends-on): Add absolute-header.
47439         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47440         into sys/select.h.
47441
47442 2007-03-02  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47445         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47446         values.
47447         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47448         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47449         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47450         * modules/sys_socket (Depends-on): Add absolute-header.
47451         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47452         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47453         (Include): Remove requirement of inclusion of <sys/types.h>.
47454
47455 2007-03-02  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/byteswap_.h (bswap_32): Fix formula.
47458
47459 2007-03-06  Bruno Haible  <bruno@clisp.org>
47460
47461         * modules/sprintf-posix-tests: New file.
47462         * tests/test-sprintf-posix.c: New file.
47463
47464         * modules/sprintf-posix: New file.
47465         * lib/sprintf.c: New file.
47466         * m4/sprintf-posix.m4: New file.
47467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47468         REPLACE_SPRINTF.
47469         * lib/stdio_.h (sprintf): New declaration.
47470         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47471         REPLACE_SPRINTF.
47472
47473 2007-03-06  Bruno Haible  <bruno@clisp.org>
47474
47475         * modules/vsprintf-posix-tests: New file.
47476         * tests/test-vsprintf-posix.c: New file.
47477         * tests/test-sprintf-posix.h: New file.
47478
47479         * modules/vsprintf-posix: New file.
47480         * lib/vsprintf.c: New file.
47481         * m4/vsprintf-posix.m4: New file.
47482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47483         REPLACE_VSPRINTF.
47484         * lib/stdio_.h (vsprintf): New declaration.
47485         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47486         REPLACE_VSPRINTF.
47487
47488 2007-03-06  Bruno Haible  <bruno@clisp.org>
47489
47490         * modules/vsnprintf (Depend-on): Remove minmax.
47491
47492 2007-03-06  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/snprintf-posix-tests: New file.
47495         * tests/test-snprintf-posix.c: New file.
47496
47497         * modules/snprintf-posix: New file.
47498         * m4/snprintf-posix.m4: New file.
47499         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47500         gl_FUNC_SNPRINTF.
47501         (gl_FUNC_SNPRINTF): Invoke it.
47502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47503         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47504         is set.
47505         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47506
47507 2007-03-06  Bruno Haible  <bruno@clisp.org>
47508
47509         * modules/vsnprintf-posix-tests: New file.
47510         * tests/test-vsnprintf-posix.c: New file.
47511         * tests/test-snprintf-posix.h: New file.
47512
47513         * modules/vsnprintf-posix: New file.
47514         * m4/vsnprintf-posix.m4: New file.
47515         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47516         gl_FUNC_VSNPRINTF.
47517         (gl_FUNC_VSNPRINTF): Invoke it.
47518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47519         * lib/stdio_.h (vsnprintf): Define as a replacement if
47520         REPLACE_VSNPRINTF is set.
47521         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47522
47523 2007-03-06  Bruno Haible  <bruno@clisp.org>
47524
47525         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47527
47528 2007-03-06  Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47531         (asinl): Declare also if HAVE_DECL_ASINL is set.
47532         (atanl): Declare also if HAVE_DECL_ATANL is set.
47533         (ceill): Declare also if HAVE_DECL_CEILL is set.
47534         (cosl): Declare also if HAVE_DECL_COSL is set.
47535         (expl): Declare also if HAVE_DECL_EXPL is set.
47536         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47537         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47538         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47539         (logl): Declare also if HAVE_DECL_LOGL is set.
47540         (sinl): Declare also if HAVE_DECL_SINL is set.
47541         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47542         (tanl): Declare also if HAVE_DECL_TANL is set.
47543         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47545         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47546         declaration of frexpl, ldexpl.
47547         * modules/printf-frexpl (Depends-on): Add math.
47548         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47549
47550 2007-03-05  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47553         frexpl and ldexpl are declared.
47554         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47555
47556 2007-03-05  Bruno Haible  <bruno@clisp.org>
47557
47558         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47559         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47560
47561 2007-03-05  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/stdio_.h: Include <stddef.h>.
47564
47565 2007-03-05  Bruno Haible  <bruno@clisp.org>
47566
47567         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47568
47569 2007-03-05  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47572         NetBSD 4, from Ralf Wildenhues.
47573
47574 2007-03-04  Bruno Haible  <bruno@clisp.org>
47575
47576         * lib/vasprintf.h: Update #if logic for the case when the functions
47577         exist but are overridden.
47578
47579 2007-03-04  Bruno Haible  <bruno@clisp.org>
47580
47581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47582         implementations: glibc-2.4 and MacOS X 10.3.
47583         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47584         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47585         * tests/test-vasprintf-posix.c (test_function): Likewise.
47586
47587 2007-03-04  Bruno Haible  <bruno@clisp.org>
47588
47589         * modules/vasprintf-posix-tests: New file.
47590         * tests/test-vasprintf-posix.c: New file.
47591
47592         * modules/vasprintf-posix: New file.
47593         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47594         defined.
47595         * m4/vasprintf-posix.m4: New file.
47596         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47597         gl_FUNC_VASPRINTF.
47598         (gl_FUNC_VASPRINTF): Invoke it.
47599         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47600         here.
47601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47602
47603 2007-03-04  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47606         REPLACE_GETTIMEOFDAY.
47607         * modules/sys_time (Makefile.am): Likewise.
47608         * m4/sys_time_h.m4: Likewise.
47609         * m4/gettimeofday.m4: Likewise.
47610
47611 2007-03-04  Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/vasnprintf-posix-tests: New file.
47614         * tests/test-vasnprintf-posix.c: New file.
47615
47616         * modules/vasnprintf-posix: New file.
47617         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47618         printf-frexpl.h.
47619         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47620         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47621         REPLACE_VASNPRINTF is defined.
47622         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47623         gl_FUNC_VASNPRINTF.
47624         (gl_FUNC_VASNPRINTF): Invoke it.
47625         * m4/vasnprintf-posix.m4: New file.
47626         * m4/printf.m4: New file.
47627
47628 2007-03-04  Bruno Haible  <bruno@clisp.org>
47629
47630         Compile progreloc.c only if --enable-relocatable is specified.
47631         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47632         if --enable-relocatable was specified.
47633         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47634         lib_SOURCES.
47635
47636 2007-03-04  Jim Meyering  <jim@meyering.net>
47637
47638         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47639         Use it consistently, rather than enumerating errno constants.
47640
47641 2007-03-04  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/xvasprintf-tests: New file.
47644         * tests/test-xvasprintf.c: New file.
47645
47646         * modules/vasprintf-tests: New file.
47647         * tests/test-vasprintf.c: New file.
47648
47649         * modules/vasnprintf-tests: New file.
47650         * tests/test-vasnprintf.c: New file.
47651
47652         * modules/vsnprintf-tests: New file.
47653         * tests/test-vsnprintf.c: New file.
47654
47655         * modules/snprintf-tests: New file.
47656         * tests/test-snprintf.c: New file.
47657
47658 2007-03-04  Bruno Haible  <bruno@clisp.org>
47659
47660         Compile relocatable.c only if --enable-relocatable is specified.
47661         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47662         gl_RELOCATABLE_LIBRARY.
47663         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47664         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47665         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47666         gl_RELOCATABLE_LIBRARY.
47667         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47668         (Makefile.am): Remove lib_SOURCES.
47669         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47670         gl_RELOCATABLE_LIBRARY.
47671         (Makefile.am): Remove lib_SOURCES.
47672         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47673         always.
47674         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47675         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47676
47677 2007-03-04  Bruno Haible  <bruno@clisp.org>
47678
47679         * modules/argmatch-tests: New file.
47680         * tests/test-argmatch.c: New file.
47681
47682         * tests/test-allocsa.c (main): Halve the number of loop runs.
47683
47684         * modules/alloca-opt-tests: New file.
47685         * tests/test-alloca-opt.c: New file.
47686
47687 2007-03-04  Jim Meyering  <jim@meyering.net>
47688
47689         Work around difference between Linux ACLs and Solaris 10 ZFS.
47690         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47691         for EINVAL.
47692
47693 2007-03-03  Bruno Haible  <bruno@clisp.org>
47694
47695         * modules/relocatable-prog (Depends-on): Add back progreloc's
47696         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47697
47698 2007-03-03  Bruno Haible  <bruno@clisp.org>
47699
47700         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47701         * modules/relocatable-lib: New file.
47702
47703 2007-03-03  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/relocatable-prog: Renamed from modules/relocatable.
47706         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47707
47708 2007-03-03  Bruno Haible  <bruno@clisp.org>
47709
47710         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47711         m4/relocatable-lib.m4.
47712         (Depends-on): Remove 'relocatable'.
47713         (configure.ac): Add gl_RELOCATABLE_NOP.
47714
47715 2007-03-03  Bruno Haible  <bruno@clisp.org>
47716
47717         * modules/relocatable-prog-wrapper: New file.
47718         * modules/relocatable (Depends-on): Add it. Remove all other
47719         dependencies except progname.
47720         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47721
47722         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47723         (gl_FUNC_STRERROR): Nop.
47724         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47725
47726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47727         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47728
47729         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47730         (gl_FUNC_READLINK): Update.
47731
47732         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47733
47734 2007-03-03  Bruno Haible  <bruno@clisp.org>
47735
47736         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47737         * modules/xreadlink (Depends-on): Add unistd.
47738         * modules/xreadlink-with-size (Depends-on): Likewise.
47739
47740 2007-03-03  Bruno Haible  <bruno@clisp.org>
47741
47742         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47743         extracted from gt_FUNC_SETENV.
47744         (gt_FUNC_SETENV): Remove macro.
47745         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47746         remove gt_FUNC_SETENV.
47747
47748 2007-03-03  Bruno Haible  <bruno@clisp.org>
47749
47750         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47751         ENABLE_RELOCATABLE here.
47752         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47753
47754 2007-03-03  Bruno Haible  <bruno@clisp.org>
47755
47756         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47757         * tests/test-rbtreehash_list.c: Include progname.h.
47758         (main): Call set_program_name.
47759
47760         * modules/rbtree-oset-tests (Depends-on): Add progname.
47761         * tests/test-rbtree_oset.c: Include progname.h.
47762         (main): Call set_program_name.
47763
47764         * modules/rbtree-list-tests (Depends-on): Add progname.
47765         * tests/test-rbtree_list.c: Include progname.h.
47766         (main): Call set_program_name.
47767
47768         * modules/linked-list-tests (Depends-on): Add progname.
47769         * tests/test-linked_list.c: Include progname.h.
47770         (main): Call set_program_name.
47771
47772 2007-03-03  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47775         All uses of __restrict changed to _Restrict_.
47776         * lib/glob_.h (__restrict): Remove macro.
47777
47778 2007-03-02  Bruno Haible  <bruno@clisp.org>
47779
47780         * modules/gettext (configure.ac): Require gettext infrastructure
47781         from version 0.16.1.
47782
47783 2007-03-02  Bruno Haible  <bruno@clisp.org>
47784
47785         * modules/linkedhash-list-tests (Depends-on): Add progname.
47786         * tests/test-linkedhash_list.c: Include progname.h.
47787         (main): Call set_program_name.
47788
47789         * modules/carray-list-tests (Depends-on): Add progname.
47790         * tests/test-carray_list.c: Include progname.h.
47791         (main): Call set_program_name.
47792
47793         * modules/avltreehash-list-tests (Depends-on): Add progname.
47794         * tests/test-avltreehash_list.c: Include progname.h.
47795         (main): Call set_program_name.
47796
47797         * modules/avltree-oset-tests (Depends-on): Add progname.
47798         * tests/test-avltree_oset.c: Include progname.h.
47799         (main): Call set_program_name.
47800
47801         * modules/avltree-list-tests (Depends-on): Add progname.
47802         * tests/test-avltree_list.c: Include progname.h.
47803         (main): Call set_program_name.
47804
47805         * modules/array-oset-tests (Depends-on): Add progname.
47806         * tests/test-array_oset.c: Include progname.h.
47807         (main): Call set_program_name.
47808
47809         * modules/array-list-tests (Depends-on): Add progname.
47810         * tests/test-array_list.c: Include progname.h.
47811         (main): Call set_program_name.
47812
47813         * modules/argp-tests (Depends-on): Add progname.
47814         * tests/test-argp.c: Include argp.h first. Include progname.h.
47815         (main): Call set_program_name.
47816
47817 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47818
47819         * doc/gnulib-tool.texi (Initial import): Reword description of
47820         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47821         limited effect even if defined after the first system include.
47822
47823 2007-03-01  Bruno Haible  <bruno@clisp.org>
47824
47825         * build-aux/config.libpath: Update to libtool-1.5.22.
47826         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47827
47828 2007-03-01  Bruno Haible  <bruno@clisp.org>
47829
47830         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47831         foo_CFLAGS.
47832         Reported by Ralf Wildenhues.
47833
47834 2007-03-01  Bruno Haible  <bruno@clisp.org>
47835
47836         * build-aux/install-reloc: Remove object files left over by some
47837         compilers.
47838         Reported by Ralf Wildenhues.
47839
47840 2007-03-01  Bruno Haible  <bruno@clisp.org>
47841
47842         * build-aux/install-reloc: Break long lines.
47843
47844 2007-03-01  Bruno Haible  <bruno@clisp.org>
47845
47846         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47847         Reported by Ralf Wildenhues.
47848
47849 2007-03-01  Bruno Haible  <bruno@clisp.org>
47850
47851         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47852         include ordering constraints.
47853
47854 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47855
47856         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47858         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47859         as another example.
47860         * lib/time_.h: Fix misspelling.
47861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47862         Require gl_HEADER_TIME_H_DEFAULTS.
47863         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47864         * m4/time_r.m4 (gl_TIME_R): Likewise.
47865         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47866
47867 2007-03-01  Bruno Haible  <bruno@clisp.org>
47868
47869         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47870         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47871
47872 2007-03-01  Jim Meyering  <jim@meyering.net>
47873
47874         * modules/xreadlink (Maintainer): Add my name.
47875         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47876
47877 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47878             Bruno Haible  <bruno@clisp.org>
47879
47880         * build-aux/install-reloc: Compile also c-ctype.c.
47881         * build-aux/relocatable.sh.in: New file.
47882         * doc/relocatable.texi: New file.
47883         * doc/relocatable-maint.texi: New file.
47884         * doc/gnulib.texi: Include relocatable-maint.texi.
47885         * lib/progreloc.c: Include unistd.h unconditionally.
47886         * lib/relocwrapper.c: Include unistd.h unconditionally.
47887         Include c-ctype.h.
47888         (add_dotbin): Use c_tolower.
47889         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47890         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47891         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47892         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47893         to m4/relocatable-lib.m4.
47894         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47895         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47896         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47897         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47898         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47899         * modules/relocatable: New file.
47900         * modules/relocatable-lib: New file.
47901         * modules/relocatable-script: New file.
47902
47903 2007-02-28  Bruno Haible  <bruno@clisp.org>
47904
47905         Import --enable-relocatable infrastructure.
47906         * build-aux/config.libpath: New file, from GNU gettext.
47907         * build-aux/install-reloc: New file, from GNU gettext.
47908         * build-aux/reloc-ldflags: New file, from GNU gettext.
47909         * lib/relocatable.h: New file, from GNU gettext.
47910         * lib/relocatable.c: New file, from GNU gettext.
47911         * lib/relocwrapper.c: New file, from GNU gettext.
47912         * m4/relocatable.m4: New file, from GNU gettext.
47913
47914 2007-02-28  Bruno Haible  <bruno@clisp.org>
47915
47916         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47917
47918         * modules/xreadlink: New file, from GNU gettext with modifications.
47919         * lib/xreadlink.c: New file, from GNU gettext.
47920         * lib/xreadlink.h: Add comments.
47921         (xreadlink): New declaration.
47922
47923         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47924         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47925         lib/xreadlink-with-size.c.
47926         (configure.ac): Remove gl_XREADLINK invocation.
47927         (Makefile.am): Augment lib_SOURCES.
47928         * m4/xreadlink.m4: Remove file.
47929         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47930         (xreadlink_with_size): Renamed from xreadink.
47931         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47932         * modules/canonicalize (Depends-on): Replace xreadlink with
47933         xreadlink-with-size.
47934         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47935
47936 2007-02-25  Jim Meyering  <jim@meyering.net>
47937
47938         * build-aux/announce-gen: When complaining about excess arguments,
47939         list them.
47940
47941 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47942
47943         * README: Document signed integer overflow situation more
47944         accurately.
47945
47946 2007-02-25  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47949         'a' or 'A' conversion.
47950
47951 2007-02-25  Bruno Haible  <bruno@clisp.org>
47952
47953         * modules/filename: Renamed from modules/pathname.
47954         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47955         lib/concatpath.c with lib/concat-filename.c.
47956         (Makefile.am): Update.
47957         (Include): Replace pathname.h with filename.h.
47958         * lib/filename.h: Renamed from lib/pathname.h.
47959         (concatenated_filename): Renamed from concatenated_pathname.
47960         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47961         (concatenated_filename): Renamed from concatenated_pathname.
47962         * lib/findprog.c: Include filename.h instead of pathname.h.
47963         (find_in_path): Update.
47964         * lib/javacomp.c: Include filename.h instead of pathname.h.
47965         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47966         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47967         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47968         is_oldgcj_14_13_usable, is_javac_usable): Update.
47969         * lib/javaexec.c: Include filename.h instead of pathname.h.
47970         (execute_java_class): Update.
47971         * modules/findprog: Update.
47972         * modules/javacomp: Update.
47973         * modules/javaexec: Update.
47974         * MODULES.html.sh (File system functions): Add 'filename', remove
47975         'pathname'.
47976
47977 2007-02-25  Bruno Haible  <bruno@clisp.org>
47978
47979         * modules/printf-frexpl-tests: New file.
47980         * tests/test-printf-frexpl.c: New file.
47981
47982         * modules/printf-frexpl: New file.
47983         * lib/printf-frexpl.h: New file.
47984         * lib/printf-frexpl.c: New file.
47985         * m4/printf-frexpl.m4: New file.
47986
47987 2007-02-25  Bruno Haible  <bruno@clisp.org>
47988
47989         * modules/printf-frexp-tests: New file.
47990         * tests/test-printf-frexp.c: New file.
47991
47992         * modules/printf-frexp: New file.
47993         * lib/printf-frexp.h: New file.
47994         * lib/printf-frexp.c: New file.
47995         * m4/printf-frexp.m4: New file.
47996
47997 2007-02-25  Bruno Haible  <bruno@clisp.org>
47998
47999         Assume automake >= 1.10 for the tests.
48000         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48001         * modules/arctwo-tests: Likewise.
48002         * modules/argp-tests: Likewise.
48003         * modules/avltree-list-tests: Likewise.
48004         * modules/avltree-oset-tests: Likewise.
48005         * modules/avltreehash-list-tests: Likewise.
48006         * modules/carray-list-tests: Likewise.
48007         * modules/crc-tests: Likewise.
48008         * modules/des-tests: Likewise.
48009         * modules/gc-arcfour-tests: Likewise.
48010         * modules/gc-arctwo-tests: Likewise.
48011         * modules/gc-des-tests: Likewise.
48012         * modules/gc-hmac-md5-tests: Likewise.
48013         * modules/gc-hmac-sha1-tests: Likewise.
48014         * modules/gc-md2-tests: Likewise.
48015         * modules/gc-md4-tests: Likewise.
48016         * modules/gc-md5-tests: Likewise.
48017         * modules/gc-pbkdf2-sha1-tests: Likewise.
48018         * modules/gc-rijndael-tests: Likewise.
48019         * modules/gc-sha1-tests: Likewise.
48020         * modules/gc-tests: Likewise.
48021         * modules/getaddrinfo-tests: Likewise.
48022         * modules/hmac-md5-tests: Likewise.
48023         * modules/hmac-sha1-tests: Likewise.
48024         * modules/linked-list-tests: Likewise.
48025         * modules/linkedhash-list-tests: Likewise.
48026         * modules/lock-tests: Likewise.
48027         * modules/md2-tests: Likewise.
48028         * modules/md4-tests: Likewise.
48029         * modules/md5-tests: Likewise.
48030         * modules/rbtree-list-tests: Likewise.
48031         * modules/rbtree-oset-tests: Likewise.
48032         * modules/rbtreehash-list-tests: Likewise.
48033         * modules/read-file-tests: Likewise.
48034         * modules/rijndael-tests: Likewise.
48035         * modules/stdint-tests: Likewise.
48036         * modules/tls-tests: Likewise.
48037
48038 2007-02-24  Bruno Haible  <bruno@clisp.org>
48039
48040         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48041         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48042         function; instead check whether isnan with a double argument links.
48043         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48044         function; instead check whether isnan with a 'long double' argument
48045         links.
48046         Reported by Eric Blake <ebb9@byu.net>.
48047
48048 2007-02-24  Bruno Haible  <bruno@clisp.org>
48049
48050         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48051         defined.
48052         * lib/isnanl.c: Remove all code. Just include isnan.c.
48053         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48054
48055 2007-02-25  Jim Meyering  <jim@meyering.net>
48056
48057         Avoid conflicting types for 'unsetenv' on FreeBSD.
48058         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48059         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48060         in stdlib.h.
48061
48062 2007-02-24  Bruno Haible  <bruno@clisp.org>
48063
48064         * modules/isnanl-nolibm-tests: New file.
48065         * tests/test-isnanl.c: New file.
48066
48067         * modules/isnanl-nolibm: New file.
48068         * lib/isnanl.h: New file.
48069         * lib/isnanl.c: New file.
48070         * m4/isnanl.m4: New file.
48071
48072 2007-02-24  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/isnan-nolibm-tests: New file.
48075         * tests/test-isnan.c: New file.
48076
48077         * modules/isnan-nolibm: New file.
48078         * lib/isnan.h: New file.
48079         * lib/isnan.c: New file.
48080         * m4/isnan.m4: New file.
48081
48082 2007-02-24  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48085         assume that an exponent fits in 20 bits.
48086
48087 2007-02-24  Jim Meyering  <jim@meyering.net>
48088
48089         * m4/regex.m4: Update the description of the configure-time option,
48090         --without-included-regex, to state accurately what the defaults are,
48091         and perhaps to give people an idea why using this option is risky.
48092
48093 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48094
48095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48096         loops on small arguments.  This attempts to avoid the problem
48097         Bruno Haible reported for AIX 4.3.2 in
48098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48099
48100 2007-02-23  Bruno Haible  <bruno@clisp.org>
48101
48102         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48103         Needed for help2man.
48104
48105 2007-02-23  Karl Berry  <karl@gnu.org>
48106
48107         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48108         exists, foo.h should be cvs-ignored, not committed.
48109
48110 2007-02-23  Eric Blake  <ebb9@byu.net>
48111
48112         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48113         * lib/stat-time.h (includes): Likewise.
48114         * lib/utimecmp.c (includes): Likewise.
48115         * lib/utimens.h (includes): Likewise.
48116         * lib/getdate.y (includes): Also include "timespec.h" for use
48117         internal to the module.
48118         * modules/utimens (Depends-on): Revert yesterday's patch.
48119         * modules/nanosleep (Depends-on): Add missing dependency.
48120
48121 2007-02-22  Bruno Haible  <bruno@clisp.org>
48122
48123         * lib/glob.c: Don't include getlogin_r.h.
48124
48125 2007-02-22  Jim Meyering  <jim@meyering.net>
48126
48127         * modules/utimens (Depends-on): Add timespec, required for
48128         utimens.h's inclusion of timespec.h.
48129
48130 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48131
48132         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48133         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48134         Schwab in
48135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48136         I'll try to think of a better way to fix the Solaris problem.
48137
48138         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48139         like glibc; on Solaris 10, it fails with errno == EINVAL.
48140         POSIX says the behavior is unspecified if the first argument is NULL,
48141         so play it safe and never pass NULL to the system getcwd.
48142
48143 2007-02-21  Jim Meyering  <jim@meyering.net>
48144
48145         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48146         of gettimeofday.  It would conflict with the one now always
48147         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48148         an IRIX 6.5 build failure.
48149
48150 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48151
48152         Minor fixups to port to Solaris 10 with Sun C 5.8.
48153         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48154         * modules/getcwd (Depends-on): Add dirfd.
48155         * lib/putenv.c (putenv): #undef it.
48156         (rpl_putenv): New decl.
48157         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48158
48159 2007-02-20  Bruno Haible  <bruno@clisp.org>
48160
48161         * modules/stdio-tests: New file.
48162         * tests/test-stdio.c: New file.
48163
48164         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48165         (Depends-on): Add stdio.
48166         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48167         (Include): Use <stdio.h> instead of vsnprintf.h.
48168         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48169         HAVE_DECL_VSNPRINTF.
48170         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48171
48172         * modules/snprintf (Files): Remove lib/snprintf.h.
48173         (Depends-on): Add stdio.
48174         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48175         (Include): Use <stdio.h> instead of snprintf.h.
48176         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48177         HAVE_DECL_SNPRINTF.
48178         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48179         * lib/getaddrinfo.c: Likewise.
48180
48181         * modules/stdio: New file.
48182         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48183         * lib/snprintf.h: Remove file.
48184         * lib/vsnprintf.h: Remove file.
48185         * lib/.cppi-disable: Remove snprintf.h.
48186         * m4/stdio_h.m4: New file.
48187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48188
48189 2007-02-20  Jim Meyering  <jim@meyering.net>
48190
48191         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48192         used by e.g., mingw.  From Bruno Haible.
48193
48194 2007-02-19  Bruno Haible  <bruno@clisp.org>
48195
48196         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48197         warnings.
48198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48199
48200 2007-02-19  Bruno Haible  <bruno@clisp.org>
48201
48202         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48203         from mingw users.
48204
48205 2007-02-19  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48208         warnings.
48209         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48210
48211 2007-02-19  Jim Meyering  <jim@meyering.net>
48212
48213         Don't use FD after a successful "fdopendir (fd)".
48214         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48215         Reset it by calling dirfd on the just-obtained DIR*.
48216
48217         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48218         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48219
48220 2007-02-18  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/readlink.c: Include <unistd.h>.
48223         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48224         HAVE_READLINK.
48225         * modules/readlink (Depends-on): Add unistd.
48226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48227         (Include): Add <unistd.h>.
48228
48229         * lib/getlogin_r.h: Remove file.
48230         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48231         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48232         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48233         HAVE_DECL_GETLOGIN_R.
48234         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48236         (Include): Use <unistd.h> instead of getlogin_r.h.
48237
48238         * lib/getcwd.h: Remove file.
48239         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48240         * lib/xgetcwd.c: Likewise.
48241         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48242         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48243         * modules/getcwd (Files): Remove lib/getcwd.h.
48244         (Depends-on): Add unistd.
48245         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48246         (Include): Use <unistd.h> instad of getcwd.h.
48247
48248         * lib/ftruncate.c: Include <unistd.h> first.
48249         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48250         Set HAVE_FTRUNCATE.
48251         * modules/ftruncate (Depends-on): Add unistd.
48252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48253
48254         * lib/fchdir.c: Include <unistd.h> first.
48255         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48257         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48258         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48259         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48260
48261         * lib/dup2.c: Include <unistd.h> first.
48262         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48263         HAVE_DUP2.
48264         * modules/dup2 (Depends-on): Add unistd.
48265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48266
48267         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48268         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48269         REPLACE_CHOWN. Don't define chown as a macro here.
48270         * modules/chown (Depends-on): Add unistd.
48271         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48272
48273         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48274         Add definition for GL_LINK_WARNING.
48275         (chown, dup2): New declarations.
48276         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48277         link warning.
48278         (ftruncate): New declaration.
48279         (getcwd): New declaration, taken from old getcwd.h.
48280         (getlogin_r): New declaration, taken from old getlogin_r.h.
48281         (readlink): New declaration.
48282         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48283         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48284         (gl_PREREQ_UNISTD): Remove macro.
48285         (gl_UNISTD_MODULE_INDICATOR): New macro.
48286         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48287         many new variables. Don't set UNISTD_H.
48288         * modules/unistd (Description): Change.
48289         (Depends-on): Add link-warning.
48290         (configure.ac): Update.
48291         (Makefile.am): Create unistd.h always. Substitute many new variables
48292         into it.
48293
48294 2007-02-18  Bruno Haible  <bruno@clisp.org>
48295
48296         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
48297         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
48298         HAVE_GETSUBOPT.
48299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
48300         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
48301         * lib/getsubopt.h: Remove file.
48302         * modules/getsubopt (Files): Remove lib/getsubopt.h.
48303         (Depends-on): Add stdlib.
48304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48305         (Includes): Use <stdlib.h> instead of getsubopt.h.
48306         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
48307         Set HAVE_GETSUBOPT.
48308         * lib/getsubopt.c: Don't include getsubopt.h.
48309
48310 2007-02-18  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/fchdir (Depends-on): Add dup2.
48313
48314 2007-02-18  Bruno Haible  <bruno@clisp.org>
48315
48316         * lib/stdlib_.h: Handle glibc's special invocation convention
48317         specially.
48318
48319 2007-02-18  Bruno Haible  <bruno@clisp.org>
48320
48321         * modules/stdlib-tests: New file.
48322         * tests/test-stdlib.c: New file.
48323
48324         * modules/mkstemp (Files): Remove lib/mkstemp.h.
48325         (Depends-on): Add stdlib.
48326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48327         (Includes): Use <stdlib.h> instead of mkstemp.h.
48328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48329         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
48330         * lib/mkstemp.c: Don't include mkstemp.h.
48331         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
48332         * lib/stdlib--.h: Don't include mkstemp.h.
48333
48334         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48335         (Depends-on): Add stdlib.
48336         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48337         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48338         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48339         HAVE_MKDTEMP.
48340         * lib/mkdtemp.c: Don't include mkdtemp.h.
48341         * lib/clean-temp.c: Don't include mkdtemp.h.
48342
48343         * modules/exit (Files): Remove lib/exit.h.
48344         (Depends-on): Add stdlib.
48345         (Makefile.am): Remove lib_SOURCES.
48346         (Include): Use <stdlib.h> instead of exit.h.
48347         * lib/argmatch.c: Don't include exit.h.
48348         * lib/execute.c: Likewise.
48349         * lib/pagealign_alloc.c: Likewise.
48350         * lib/pipe.c: Likewise.
48351         * lib/wait-process.c: Likewise.
48352         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48353         * lib/exitfail.c: Likewise.
48354         * lib/savewd.c: Likewise.
48355         * lib/xsetenv.c: Likewise.
48356
48357         * modules/stdlib: New file.
48358         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48359         and extra comments about mkstemp().
48360         * lib/exit.h: Remove file.
48361         * lib/mkdtemp.h: Remove file.
48362         * lib/mkstemp.h: Remove file.
48363         * m4/stdlib_h.m4: New file.
48364         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48365
48366 2007-02-18  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/math-tests: New file.
48369         * tests/test-math.c: New file.
48370
48371         * modules/math: New file.
48372         * modules/mathl (Files): Remove lib/mathl.h.
48373         (Depends-on): Add math.
48374         (Makefile.am): Don't mention mathl.h.
48375         (Include): Use <math.h> instead of mathl.h.
48376         * lib/math_.h: New file.
48377         * lib/mathl.h: Remove file.
48378         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48379         mathl.h.
48380         * lib/asinl.c: Likewise.
48381         * lib/atanl.c: Likewise.
48382         * lib/ceill.c: Likewise.
48383         * lib/cosl.c: Likewise.
48384         * lib/expl.c: Likewise.
48385         * lib/floorl.c: Likewise.
48386         * lib/frexpl.c: Likewise.
48387         * lib/ldexpl.c: Likewise.
48388         * lib/logl.c: Likewise.
48389         * lib/sincosl.c: Likewise.
48390         * lib/sinl.c: Likewise.
48391         * lib/sqrtl.c: Likewise.
48392         * lib/tanl.c: Likewise.
48393         * lib/trigl.c: Likewise.
48394         * m4/math_h.m4: New file.
48395         * MODULES.html.sh (Mathematics): Add math.
48396
48397 2007-02-17  Bruno Haible  <bruno@clisp.org>
48398
48399         * modules/wctype-tests: New file.
48400         * tests/test-wctype.c: New file.
48401
48402         * modules/wchar-tests: New file.
48403         * tests/test-wchar.c: New file.
48404
48405         * modules/unistd-tests: New file.
48406         * tests/test-unistd.c: New file.
48407
48408         * modules/time-tests: New file.
48409         * tests/test-time.c: New file.
48410
48411         * modules/sysexits-tests: New file.
48412         * tests/test-sysexits.c: New file.
48413
48414         * modules/sys_time-tests: New file.
48415         * tests/test-sys_time.c: New file.
48416
48417         * modules/sys_stat-tests: New file.
48418         * tests/test-sys_stat.c: New file.
48419
48420         * modules/sys_socket-tests: New file.
48421         * tests/test-sys_socket.c: New file.
48422
48423         * modules/sys_select-tests: New file.
48424         * tests/test-sys_select.c: New file.
48425
48426         * modules/string-tests: New file.
48427         * tests/test-string.c: New file.
48428
48429         * modules/stdbool-tests: New file.
48430         * tests/test-stdbool.c: New file.
48431
48432         * modules/netinet_in-tests: New file.
48433         * tests/test-netinet_in.c: New file.
48434
48435         * modules/inttypes-tests: New file.
48436         * tests/test-inttypes.c: New file.
48437
48438         * modules/fcntl-tests: New file.
48439         * tests/test-fcntl.c: New file.
48440
48441         * modules/byteswap-tests: New file.
48442         * tests/test-byteswap.c: New file.
48443
48444         * modules/arpa_inet-tests: New file.
48445         * tests/test-arpa_inet.c: New file.
48446
48447 2007-02-17  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48450         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48451         if the corresponding module is not enabled. Emit link warnings if
48452         the function is used nevertheless.
48453         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48454         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48455         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48456         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48457         * modules/inttypes (Depends-on): Add link-warning.
48458         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48459         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48460         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48461         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48462         * modules/imaxdiv (configure.ac): Likewise.
48463         * modules/strtoimax (configure.ac): Likewise.
48464         * modules/strtoumax (configure.ac): Likewise.
48465
48466 2007-02-17  Bruno Haible  <bruno@clisp.org>
48467
48468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48469         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48470         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48471         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48472
48473 2007-02-17  Bruno Haible  <bruno@clisp.org>
48474
48475         * modules/link-warning: New file.
48476         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48477         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48478         * modules/string (Depends-on): Add link-warning.
48479         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48480         string.h.
48481         * MODULES.html.sh (Support for building libraries and executables): Add
48482         link-warning.
48483
48484 2007-02-17  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48487         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48488         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48489         long lines.
48490
48491 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48492             Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/tmpfile: New file.
48495         * lib/tmpfile.c: New file.
48496         * m4/tmpfile.m4: New file.
48497         * MODULES.html.sh (func_all_modules): New section "Input/output".
48498
48499 2007-02-15  Bruno Haible  <bruno@clisp.org>
48500
48501         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48502         (supports_delete_on_close): New function.
48503         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48504
48505 2007-02-14  Bruno Haible  <bruno@clisp.org>
48506
48507         * modules/mbspcasecmp-tests: New file.
48508         * tests/test-mbspcasecmp.sh: New file.
48509         * tests/test-mbspcasecmp.c: New file.
48510
48511         New module mbspcasecmp.
48512         * modules/mbspcasecmp: New file.
48513         * lib/mbspcasecmp.c: New file.
48514         * lib/string_.h (strncasecmp): Change warning message.
48515         (mbspcasecmp): New declaration.
48516         * m4/mbspcasecmp.m4: New file.
48517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48518         GNULIB_MBSPCASECMP.
48519         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48520         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48521
48522 2007-02-14  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/mbsncasecmp-tests: New file.
48525         * tests/test-mbsncasecmp.sh: New file.
48526         * tests/test-mbsncasecmp.c: New file.
48527
48528         New module mbsncasecmp.
48529         * modules/mbsncasecmp: New file.
48530         * lib/mbsncasecmp.c: New file.
48531         * lib/string_.h (mbsncasecmp): New declaration.
48532         * m4/mbsncasecmp.m4: New file.
48533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48534         GNULIB_MBSNCASECMP.
48535         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48536         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48537
48538 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48539
48540         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48541         Verify that it doesn't overlap with our flags.
48542         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48543         do not have the desired effect in multibyte locales; instead, use
48544         mbscasecmp.
48545         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48546         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48547         we don't require GNU fnmatch ourselves (if our users require it, they
48548         should do so explicitly).
48549
48550         Fix regex code so it doesn't rely on strcasecmp.
48551         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48552         Otherwise, include gnulib's langinfo.h.
48553         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48554         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48555         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48556         * modules/regex (FILES): Remove m4/codeset.m4.
48557         (Depends-on): Add localcharset.  Remove strcase.
48558
48559 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48560
48561         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48562         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48563
48564 2007-02-13  Bruno Haible  <bruno@clisp.org>
48565
48566         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48567         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48568
48569 2007-02-12  Bruno Haible  <bruno@clisp.org>
48570
48571         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48572         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48573         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48574         time warning rather than a link error.
48575
48576 2007-02-12  Bruno Haible  <bruno@clisp.org>
48577
48578         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48579         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48581
48582 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48583
48584         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48585         args, not 2.
48586
48587 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         New module 'time', so that apps can include <time.h> as per
48590         POSIX and GNU instead of separate include files like time_r.h
48591         and timegm.h.  This implementation tries out a simpler approach
48592         for replacing decls in standard include files (as compared to
48593         the string module), somewhat as an experiment.
48594
48595         * config/srclist.txt: Comment out mktime.c for now.
48596         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48597         since it doesn't apply any more.  Use generic wording instead.
48598         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48599         'time'.
48600         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48601         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48602         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48603         Don't include <sys/types.h>; no longer needed since we assume C89.
48604         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48605         * lib/strftime.c: Likewise.
48606         * lib/time_r.c: Likewise.
48607         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48608         * lib/nanosleep.c: Include <time.h> first, to check interface.
48609         * lib/strptime.c: Likewise.
48610         * lib/time_r.c: Likewise.
48611         * lib/timegm.c: Likewise.
48612         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48613         needed.
48614         * lib/timegm.c: Don't include timegm.h; no longer needed.
48615         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48616         time.h now handles any problems in that area.
48617         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48618         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48619         that time.h defines struct timespec.
48620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48621         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48622         handles that.
48623         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48624         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48625         needed.  Set REPLACE_LOCALTIME.
48626         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48627         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48628         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48629         nanosleep; time_h.m4 now does that.  Don't require
48630         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48631         module handles this now.
48632         * modules/getdate (Depends-on): Remove timespec.  Add time.
48633         * modules/nanosleep (Depends-on): Likewise.
48634         * modules/stat-time (Depends-on): Likewise.
48635         * modules/nanosleep (Include): Include time.h, not timespec.h.
48636         * modules/strptime (Files): Remove lib/strptime.h.
48637         (Depends-on): Add extensions, time.
48638         (Include): Include time.h, not strptime.h.
48639         * modules/time_r (Files): Remove lib/time_r.h.
48640         (Depends-on): Add time.
48641         (Include): Include time.h, not time_r.h.
48642         * modules/timegm: Likewise.
48643         * modules/timespec (Description): Now does timespec-related decls
48644         of our own, instead of struct timespec itself.
48645         (Depends-on): Add time; remove extensions.
48646         (Maintainer): Add self.
48647         * modules/utimecmp (Depends-on): Add time; remove timespec.
48648         * modules/utimens (Depends-on): Likewise.
48649         * modules/xnanosleep (Depends-on): Likewise.
48650
48651 2007-02-11  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/c-strstr.c: Include allocsa.h.
48654         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48655         * lib/c-strcasestr.c: Include allocsa.h.
48656         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48657         * lib/strcasestr.c: Include allocsa.h.
48658         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48659         * lib/mbsstr.c: Include allocsa.h.
48660         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48661         allocsa/freesa instead of malloc/free.
48662         * lib/mbscasestr.c: Include allocsa.h.
48663         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48664         allocsa/freesa instead of malloc/free.
48665         * modules/c-strstr (Depends-on): Add allocsa.
48666         * modules/c-strcasestr (Depends-on): Likewise.
48667         * modules/strcasestr (Depends-on): Likewise.
48668         * modules/mbsstr (Depends-on): Likewise.
48669         * modules/mbscasestr (Depends-on): Likewise.
48670
48671 2007-02-11  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48674
48675         * modules/mbsspn-tests: New file.
48676         * tests/test-mbsspn.sh: New file.
48677         * tests/test-mbsspn.c: New file.
48678
48679 2007-02-11  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48682
48683         * modules/mbspbrk-tests: New file.
48684         * tests/test-mbspbrk.sh: New file.
48685         * tests/test-mbspbrk.c: New file.
48686
48687 2007-02-11  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48690         unneeded cast.
48691
48692         * modules/mbscspn-tests: New file.
48693         * tests/test-mbscspn.sh: New file.
48694         * tests/test-mbscspn.c: New file.
48695
48696 2007-02-11  Bruno Haible  <bruno@clisp.org>
48697
48698         * modules/mbscasecmp-tests: New file.
48699         * tests/test-mbscasecmp.sh: New file.
48700         * tests/test-mbscasecmp.c: New file.
48701
48702 2007-02-11  Bruno Haible  <bruno@clisp.org>
48703
48704         Ensure O(n) worst-case complexity of mbscasestr.
48705         * lib/mbscasestr.c: Include stdbool.h.
48706         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48707         functions.
48708         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48709         the bookkeeping indicates that it's worth it.
48710         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48711
48712         * modules/mbscasestr-tests: New file.
48713         * tests/test-mbscasestr1.c: New file.
48714         * tests/test-mbscasestr2.sh: New file.
48715         * tests/test-mbscasestr2.c: New file.
48716         * tests/test-mbscasestr3.sh: New file.
48717         * tests/test-mbscasestr3.c: New file.
48718         * tests/test-mbscasestr4.sh: New file.
48719         * tests/test-mbscasestr4.c: New file.
48720         * m4/locale-tr.m4: New file.
48721
48722 2007-02-11  Bruno Haible  <bruno@clisp.org>
48723
48724         Ensure O(n) worst-case complexity of mbsstr.
48725         * lib/mbsstr.c: Include stdbool.h.
48726         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48727         functions.
48728         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48729         bookkeeping indicates that it's worth it.
48730         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48731
48732         * modules/mbsstr-tests: New file.
48733         * tests/test-mbsstr1.c: New file.
48734         * tests/test-mbsstr2.sh: New file.
48735         * tests/test-mbsstr2.c: New file.
48736         * tests/test-mbsstr3.sh: New file.
48737         * tests/test-mbsstr3.c: New file.
48738         * m4/locale-fr.m4: New file.
48739
48740 2007-02-11  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/mbsrchr.c (mbsrchr): Fix bug.
48743
48744         * modules/mbsrchr-tests: New file.
48745         * tests/test-mbsrchr.sh: New file.
48746         * tests/test-mbsrchr.c: New file.
48747
48748 2007-02-11  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/mbschr.c (mbschr): Fix bug.
48751
48752         * modules/mbschr-tests: New file.
48753         * tests/test-mbschr.sh: New file.
48754         * tests/test-mbschr.c: New file.
48755         * m4/locale-zh.m4: New file.
48756
48757 2007-02-11  Bruno Haible  <bruno@clisp.org>
48758
48759         Support for copying multibyte string iterators.
48760         * lib/mbiter.h: Include <string.h>.
48761         (mbiter_multi_copy): New function.
48762         (mbi_copy): New macro.
48763         * lib/mbuiter.h: Include <string.h>.
48764         (mbuiter_multi_copy): New function.
48765         (mbui_copy): New macro.
48766
48767 2007-02-11  Bruno Haible  <bruno@clisp.org>
48768
48769         New module mbslen.
48770         * modules/mbslen: New file.
48771         * lib/mbslen.c: New file.
48772         * lib/string_.h (mbslen): New declaration.
48773         * m4/mbslen.m4: New file.
48774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48775         GNULIB_MBSLEN.
48776         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48777         * MODULES.html.sh (Internationalization functions): Add mbslen.
48778
48779 2007-02-11  Bruno Haible  <bruno@clisp.org>
48780
48781         Ensure O(n) worst-case complexity of strcasestr substitute.
48782         * lib/strcasestr.c: Include stdbool.h.
48783         (knuth_morris_pratt): New function.
48784         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48785         bookkeeping indicates that it's worth it.
48786         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48787
48788         * modules/strcasestr-tests: New file.
48789         * tests/test-strcasestr.c: New file.
48790
48791 2007-02-11  Bruno Haible  <bruno@clisp.org>
48792
48793         Ensure O(n) worst-case complexity of c_strcasestr.
48794         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48795         (knuth_morris_pratt): New function.
48796         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48797         the bookkeeping indicates that it's worth it.
48798         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48799
48800         * modules/c-strcasestr-tests: New file.
48801         * tests/test-c-strcasestr.c: New file.
48802
48803 2007-02-11  Bruno Haible  <bruno@clisp.org>
48804
48805         Ensure O(n) worst-case complexity of c_strstr.
48806         * lib/c-strstr.c: Include stdbool.h, string.h.
48807         (knuth_morris_pratt): New function.
48808         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48809         bookkeeping indicates that it's worth it.
48810         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48811
48812         * lib/c-strstr.c: Complete rewrite for maintainability.
48813
48814         * modules/c-strstr-tests: New file.
48815         * tests/test-c-strstr.c: New file.
48816
48817 2007-02-11  Bruno Haible  <bruno@clisp.org>
48818
48819         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48820         5.2.1 and earlier, whereby \055 was treated just like the range
48821         delimiter '-'.
48822         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48823
48824 2007-02-08  Bruno Haible  <bruno@clisp.org>
48825
48826         * modules/regex (Depends-on): Add stdbool.
48827         Reported by Dalibor Topic <robilad@kaffe.org>.
48828
48829 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48830
48831         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48832         Prefer returning from main to exiting from it.
48833         Remove unnecessary parens after sizeof.
48834
48835 2007-02-05  Bruno Haible  <bruno@clisp.org>
48836
48837         New module mbssep.
48838         * modules/mbssep: New file.
48839         * lib/mbssep.c: New file.
48840         * lib/string_.h (strsep): Add a conditional link warning.
48841         (mbssep): New declaration.
48842         * m4/mbssep.m4: New file.
48843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48844         GNULIB_MBSSEP.
48845         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48846         * MODULES.html.sh (Internationalization functions): Add mbssep.
48847
48848 2007-02-05  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48851         Optimize search in case of 1 delimiter.
48852
48853 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48854
48855         * lib/acl.h: Include sys/types.h before sys/acl.h.
48856
48857 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48858
48859         Merge upstream fix for glibc bugzilla #3957:
48860
48861         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48862
48863         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48864         bit for RE_HAT_LISTS_NOT_NEWLINE.
48865         (build_charclass_op): Remove bogus comment.
48866
48867 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48868
48869         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48870
48871 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48872
48873         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48874         * lib/memmem.c [!defined _LIBC]: Include config.h.
48875
48876 2007-02-04  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48879         warning message.
48880
48881 2007-02-04  Bruno Haible  <bruno@clisp.org>
48882
48883         New module mbstok_r.
48884         * modules/mbstok_r: New file.
48885         * lib/mbstok_r.c: New file.
48886         * lib/string_.h (strtok_r): Change argument names to match the
48887         comments. Add a conditional link warning.
48888         (mbstok_r): New declaration.
48889         * m4/mbstok_r.m4: New file.
48890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48891         GNULIB_MBSTOK_R.
48892         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48893         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48894
48895 2007-02-04  Bruno Haible  <bruno@clisp.org>
48896
48897         New module mbsspn.
48898         * modules/mbsspn: New file.
48899         * lib/mbsspn.c: New file.
48900         * lib/string_.h (strspn): Add a conditional link warning.
48901         (mbsspn): New declaration.
48902         * m4/mbsspn.m4: New file.
48903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48904         GNULIB_MBSSPN.
48905         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48906         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48907
48908 2007-02-04  Bruno Haible  <bruno@clisp.org>
48909
48910         New module mbspbrk.
48911         * modules/mbspbrk: New file.
48912         * lib/mbspbrk.c: New file.
48913         * lib/string_.h (strpbrk): Add a conditional link warning.
48914         (mbspbrk): New declaration.
48915         * m4/mbspbrk.m4: New file.
48916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48917         GNULIB_MBSPBRK.
48918         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48919         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48920
48921 2007-02-04  Bruno Haible  <bruno@clisp.org>
48922
48923         New module mbscspn.
48924         * modules/mbscspn: New file.
48925         * lib/mbscspn.c: New file.
48926         * lib/string_.h (strcspn): Add a conditional link warning.
48927         (mbscspn): New declaration.
48928         * m4/mbscspn.m4: New file.
48929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48930         GNULIB_MBSCSPN.
48931         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48932         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48933
48934 2007-02-04  Bruno Haible  <bruno@clisp.org>
48935
48936         New module mbscasestr, reduced goal of strcasestr.
48937         * modules/mbscasestr: New file.
48938         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48939         (mbscasestr): Renamed from strcasestr.
48940         * lib/strcasestr.c: Don't include mbuiter.h.
48941         (strcasestr): Remove support for multibyte locales.
48942         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48943         Change the conditional link warning.
48944         (mbscasestr): New declaration.
48945         * m4/mbscasestr.m4: New file.
48946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48947         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48948         REPLACE_STRCASESTR.
48949         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48951         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48952         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48953         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48954         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48955         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48956         (Depends-on): Remove mbuiter.
48957         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48958
48959 2007-02-04  Bruno Haible  <bruno@clisp.org>
48960
48961         Simplify handling of strncasecmp.
48962         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48963         the conditional link warning.
48964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48965         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48966         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48967         * modules/strcase (configure.ac): Don't invoke
48968         gl_STRING_MODULE_INDICATOR.
48969         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48970
48971 2007-02-04  Bruno Haible  <bruno@clisp.org>
48972
48973         New module mbscasecmp, reduced goal of strcasecmp.
48974         * modules/mbscasecmp: New file.
48975         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48976         (mbscasecmp): Renamed from strcasecmp.
48977         * lib/strcasecmp.c: Don't include mbuiter.h.
48978         (strcasecmp): Remove support for multibyte locales.
48979         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48980         Change the conditional link warning.
48981         (mbscasecmp): New declaration.
48982         * m4/mbscasecmp.m4: New file.
48983         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48984         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48985         REPLACE_STRCASECMP.
48986         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48988         GNULIB_MBSCASECMP.
48989         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48990         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48991         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48992         (Depends-on): Remove mbuiter.
48993         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48994
48995 2007-02-04  Bruno Haible  <bruno@clisp.org>
48996
48997         New module mbsstr. Remove module strstr.
48998         * modules/mbsstr: New file.
48999         * modules/strstr: Remove file.
49000         * lib/mbsstr.c: Renamed from lib/strstr.c.
49001         (mbsstr): Renamed from strstr.
49002         * lib/string_.h (strstr): Remove declaration. Change the conditional
49003         link warning.
49004         (mbsstr): New declaration.
49005         * m4/mbsstr.m4: New file.
49006         * m4/strstr.m4: Remove file.
49007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49008         REPLACE_STRSTR.
49009         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49010         Don't initialize GNULIB_STRSTR.
49011         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49012         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49013         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49014         (Support for systems lacking ANSI C 89): Remove strstr.
49015
49016 2007-02-04  Bruno Haible  <bruno@clisp.org>
49017
49018         New module mbsrchr.
49019         * modules/mbsrchr: New file.
49020         * lib/mbsrchr.c: New file.
49021         * lib/string_.h (strrchr): Add a conditional link warning.
49022         (mbsrchr): New declaration.
49023         * m4/mbsrchr.m4: New file.
49024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49025         GNULIB_MBSRCHR.
49026         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49027         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49028
49029 2007-02-04  Bruno Haible  <bruno@clisp.org>
49030
49031         New module mbschr.
49032         * modules/mbschr: New file.
49033         * lib/mbschr.c: New file.
49034         * lib/string_.h (strchr): Add a conditional link warning.
49035         (mbschr): New declaration.
49036         * m4/mbschr.m4: New file.
49037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49038         GNULIB_MBSCHR.
49039         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49040         * MODULES.html.sh (Internationalization functions): Add mbschr.
49041
49042 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49043
49044         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49045
49046         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49047
49048 2007-02-04  Bruno Haible  <bruno@clisp.org>
49049
49050         New module description section 'configure.ac-early'.
49051         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49052         (func_get_autoconf_early_snippet): New function.
49053         (func_import, func_create_testdir): Use it. Remove special cases for
49054         modules 'extensions' and 'lock'.
49055         * modules/extensions (configure.ac-early): Require
49056         gl_USE_SYSTEM_EXTENSIONS.
49057         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49058
49059 2007-02-04  Bruno Haible  <bruno@clisp.org>
49060
49061         Make use of gcj-4.3's -fsource and -ftarget option.
49062         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49063         and if so try the options -fsource and -ftarget.
49064         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49065         source_version, ftarget_option, target_version arguments.
49066         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49067         (is_envjavac_oldgcj_14_14_usable): Renamed from
49068         is_envjavac_gcj_14_14_usable.
49069         (is_envjavac_oldgcj_14_13_usable): Renamed from
49070         is_envjavac_gcj_14_13_usable.
49071         (is_gcj_present): Update.
49072         (is_gcj_43, is_gcj43_usable): New functions.
49073         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49074         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49075         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49076         try the options -fsource and -ftarget.
49077
49078 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49079
49080         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49081         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49082         larger value.
49083
49084 2007-02-03  Jim Meyering  <jim@meyering.net>
49085
49086         Give tools a better chance to allocate space for very large buffers.
49087         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49088
49089         Make pwd and readlink work also when run with an unreadable parent dir
49090         on systems with openat support.
49091         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49092         provided getcwd function, even when we have openat support.
49093         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49094
49095 2007-02-02  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49098         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49099         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49100         portability problems if one of these functions is only used on specific
49101         platforms.
49102         Reported by Paul Eggert.
49103
49104 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49105
49106         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49107         is causing more trouble than it's curing.
49108         * lib/regex_internal.h (__mempcpy): Remove.
49109         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49110         (and make the code a tad smaller to boot).
49111         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49112
49113 2007-02-02  Jim Meyering  <jim@meyering.net>
49114
49115         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49116         section, not in the Makefile.am: one.
49117
49118 2007-02-02  Eric Blake  <ebb9@byu.net>
49119
49120         * lib/strchrnul.c: Always include config.h first.
49121
49122         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49123         gnulib strstr is not necessary here.
49124
49125 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49126
49127         * m4/socklen.m4: Fix typo.
49128
49129 2007-02-02  Eric Blake  <ebb9@byu.net>
49130
49131         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49132         * modules/netinet_in (Makefile.am): Likewise.
49133
49134 2007-02-01  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/string_.h (GL_LINK_WARNING): New macro.
49137         (strcasecmp, strstr, strcasestr): If provided by the system,
49138         conditionally define as a macro that leads to a warning instead of to
49139         an error.
49140         (strncasecmp): Conditionally define as a macro that leads to a warning.
49141
49142 2007-02-01  Karl Berry  <karl@gnu.org>
49143
49144         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49145
49146 2007-02-01  Bruno Haible  <bruno@clisp.org>
49147
49148         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49149         renamings.
49150
49151 2007-02-01  Eric Blake  <ebb9@byu.net>
49152
49153         * modules/regex (Depends-on): Revert dependence on mempcpy.
49154         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49155         module's definition of mempcpy.
49156         Reported by Paul Eggert.
49157
49158 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49159
49160         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49161         the symbol XYZ before redefining it.  This fixes a problem with
49162         programs that don't use XYZ, when compiled on systems that define
49163         XYZ to something else.
49164
49165 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49166
49167         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49168         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49169         writeable to group or other and (2) is intended to have a special
49170         mode bit that is set or cleared.  In such a case, the directory
49171         should be neither group- nor other-writeable until the special
49172         mode bits are right.
49173
49174 2007-01-31  Eric Blake  <ebb9@byu.net>
49175
49176         * modules/mountlist (Depends-on): Add strstr.
49177
49178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49179         bug.
49180         * modules/string (Makefile.am): Remove redundant replacement.
49181         * modules/regex (Depends-on): Add mempcpy.
49182
49183 2007-01-31  Bruno Haible  <bruno@clisp.org>
49184
49185         New module description field 'Link'.
49186         * gnulib-tool (func_usage): Document --extract-link-directive.
49187         (sed_extract_prog): Recognize 'Link' directive.
49188         (func_get_link_directive): New function.
49189         (func_import): Show summary of link directives.
49190         Handle --extract-link-directive option.
49191         * modules/acl (Link): New section.
49192         * modules/clock-time (Link): New section.
49193         * modules/euidaccess (Link): New section.
49194         * modules/gettext (Link): New section.
49195         * modules/iconv (Link): New section.
49196         * modules/lock (Link): New section.
49197         * modules/nanosleep (Link): New section.
49198         * modules/readline (Link): New section.
49199
49200 2007-01-27  Bruno Haible  <bruno@clisp.org>
49201
49202         Enforce the use of gnulib modules for unportable <string.h> functions.
49203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49204         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49205         (gl_HEADER_STRING_H_BODY): Require it.
49206         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49207         the symbol XYZ to one that gives a link error.
49208         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49209         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49210         * modules/mempcpy (configure.ac): Likewise.
49211         * modules/memrchr (configure.ac): Likewise.
49212         * modules/stpcpy (configure.ac): Likewise.
49213         * modules/stpncpy (configure.ac): Likewise.
49214         * modules/strcase (configure.ac): Likewise.
49215         * modules/strcasestr (configure.ac): Likewise.
49216         * modules/strchrnul (configure.ac): Likewise.
49217         * modules/strdup (configure.ac): Likewise.
49218         * modules/strndup (configure.ac): Likewise.
49219         * modules/strnlen (configure.ac): Likewise.
49220         * modules/strpbrk (configure.ac): Likewise.
49221         * modules/strsep (configure.ac): Likewise.
49222         * modules/strstr (configure.ac): Likewise.
49223         * modules/strtok_r (configure.ac): Likewise.
49224
49225 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49226
49227         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49228
49229 2007-01-30  Jim Meyering  <jim@meyering.net>
49230
49231         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49232
49233 2007-01-29  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49236         * lib/execute.c: Likewise.
49237         * lib/pipe.c: Likewise.
49238         * lib/printf-args.h: Likewise.
49239         * lib/printf-args.c: Likewise.
49240         * lib/printf-parse.c: Likewise.
49241         * lib/vasnprintf.c: Likewise.
49242
49243 2007-01-29  Eric Blake  <ebb9@byu.net>
49244
49245         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49246         declaration.
49247
49248 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49249
49250         * lib/strptime.h (strptime): Use 'restrict' for args where
49251         POSIX requires this.
49252         * lib/strptime.c (strptime): Likewise.
49253         Change license notice from LGPL to GPL, since gnulib-tool will
49254         change this as needed.
49255         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49256         defined.
49257         Include "strptime.h" first, to check interface.
49258         Do not #undef _LIBC and _NL_CURRENT.
49259         Do not include <stdlib.h>; no longer needed.
49260         Include "time_r.h" and declare ptime_locale_status
49261         only if _LIBC is not defined.
49262         (__P): Remove unused macro.
49263         (match_string): Bring back glibc version, but use it only if _LIBC
49264         is defined.
49265         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49266         Remove unnecessary assertion and abort() call.
49267         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49268         * m4/strptime.m4: Fix serial number comment.
49269         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49270         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49271         (Depends-on): Add time_r.
49272
49273 2007-01-29  Bruno Haible  <bruno@clisp.org>
49274
49275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49276         strptime.
49277         * modules/strptime (Depends-on): Add stdbool.
49278         * lib/strptime.h: Include <time.h> always. Add comments.
49279
49280 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49281
49282         * modules/strptime: New file.
49283         * lib/strptime.h: New file.
49284         * lib/strptime.c: New file.
49285         * m4/strptime.m4: New file.
49286
49287 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49288
49289         * MODULES.html.sh: New module mpsort.
49290         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
49291
49292         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
49293         a circularity problem with HP-UX ia64 reported by Bob Proulx in
49294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
49295         All uses changed.
49296         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
49297         All uses changed.
49298         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
49299         to _Restrict_.
49300         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
49301         the parameter matches the prototype.
49302
49303 2007-01-28  Jim Meyering  <jim@meyering.net>
49304
49305         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
49306         sys/time.h here, reverting that part of the previous patch:
49307         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
49308
49309 2007-01-28  Bruno Haible  <bruno@clisp.org>
49310
49311         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
49312         value of $(SYS_TIME_H).
49313         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
49314         remove it conditionally, too. [added by Jim Meyering]
49315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
49316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49317         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
49318         GETTIMEOFDAY_REPLACEMENT to 1.
49319
49320 2007-01-28  Bruno Haible  <bruno@clisp.org>
49321
49322         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
49323         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
49324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
49325         Set UNISTD_H instead of UNISTD_H2.
49326         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
49327
49328 2007-01-28  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
49331         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
49332
49333 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49334
49335         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49336         (func_create_testdir): Ensure C locale for `grep' and `tr'
49337         character ranges.
49338         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49339         ACLOCAL_AMFLAGS parsing state machine.
49340
49341 2007-01-27  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/unistr/base: Update.
49344
49345 2007-01-27  Bruno Haible  <bruno@clisp.org>
49346
49347         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49348         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49349         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49350         modules/unistr/u32-mbtouc.
49351         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49352         * lib/unistr.h: Update.
49353         * lib/linebreak.c: Update.
49354         * modules/unistr/u32-mbtouc: Renamed from
49355         modules/unistr/u32-mbtouc-safe.
49356         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49357         * lib/unistr.h: Update.
49358         * lib/unistr/u32-to-u8.c: Update.
49359         * lib/unistr/u32-to-u16.c: Update.
49360
49361 2007-01-27  Bruno Haible  <bruno@clisp.org>
49362
49363         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49364         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49365         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49366         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49367         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49368         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49369         modules/unistr/u16-mbtouc.
49370         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49371         * lib/unistr.h: Update.
49372         * lib/linebreak.c: Update.
49373         * modules/linebreak: Update.
49374         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49375         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49376         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49377         * modules/unistr/u16-mbtouc: Renamed from
49378         modules/unistr/u16-mbtouc-safe.
49379         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49380         * lib/unistr.h: Update.
49381         * lib/unistr/u16-to-u8.c: Update.
49382         * modules/unistr/u16-to-u8: Update.
49383         * lib/unistr/u16-to-u32.c: Update.
49384         * modules/unistr/u16-to-u32: Update.
49385
49386 2007-01-27  Bruno Haible  <bruno@clisp.org>
49387
49388         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49389         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49390         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49391         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49392         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49393         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49394         modules/unistr/u8-mbtouc.
49395         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49396         * lib/unistr.h: Update.
49397         * lib/striconveh.c: Update.
49398         * modules/striconveh: Update.
49399         * lib/linebreak.c: Update.
49400         * modules/linebreak: Update.
49401         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49402         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49403         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49404         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49405         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49406         * lib/unistr.h: Update.
49407         * lib/striconveh.c: Update.
49408         * modules/striconveh: Update.
49409         * lib/unistr/u8-to-u16.c: Update.
49410         * modules/unistr/u8-to-u16: Update.
49411         * lib/unistr/u8-to-u32.c: Update.
49412         * modules/unistr/u8-to-u32: Update.
49413
49414 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49415
49416         Sync from Libtool.
49417         * lib/argz.c: Do not include strings.h nor memory.h, include
49418         string.h unconditionally.  Patch by Simon Josefsson.
49419
49420 2007-01-27  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49423         from gl_HEADER_STRING_H_BODY.
49424         (gl_HEADER_STRING_H_BODY): Require it.
49425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49426         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49427         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49428         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49430         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49432         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49433         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49435         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49436         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49437         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49438         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49440
49441 2007-01-27  Bruno Haible  <bruno@clisp.org>
49442
49443         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49444         check_PROGRAMS into noinst_PROGRAMS.
49445         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49446         check_PROGRAMS in this case.
49447         (func_import): Set for_test to false.
49448         (func_create_testdir): Set for_test to true.
49449
49450 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49451             Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49454         (Depends-on): Add string.
49455         (Includes): Use <string.h> instead of strcasestr.h.
49456         * modules/string (Makefile.am): Also substitute the value of
49457         REPLACE_STRCASESTR.
49458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49459         assume strcasestr is declared in <string.h> not <strings.h>. Also
49460         set REPLACE_STRCASESTR.
49461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49462         REPLACE_STRCASESTR.
49463         * lib/strcasestr.h: Remove file.
49464         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49465         * lib/string_.h (strcasestr): New declaration.
49466
49467 2007-01-27  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/string_.h: Use 'extern'.
49470
49471 2007-01-27  Jim Meyering  <jim@meyering.net>
49472
49473         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49474         of set-but-not-used local, "q".
49475
49476         * lib/mempcpy.c: Include <config.h> before <string.h>.
49477         This fixes a compilation error on HP-UX, due to the system's
49478         "restrict"-using mempcpy prototype.
49479
49480 2007-01-26  Bruno Haible  <bruno@clisp.org>
49481
49482         Small optimization.
49483         * lib/javacomp.c: Include c-strstr.h.
49484          (is_envjavac_gcj): Use c_strstr instead of strstr.
49485         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49486
49487 2007-01-26  Bruno Haible  <bruno@clisp.org>
49488
49489         * MODULES.html.sh (Unicode string functions): Add the new modules.
49490
49491         * modules/uniconv/u32-strconv-to-locale: New file.
49492         * lib/uniconv/u32-strconv-to-locale.c: New file.
49493
49494         * modules/uniconv/u16-strconv-to-locale: New file.
49495         * lib/uniconv/u16-strconv-to-locale.c: New file.
49496
49497         * modules/uniconv/u8-strconv-to-locale: New file.
49498         * lib/uniconv/u8-strconv-to-locale.c: New file.
49499
49500         * modules/uniconv/u32-strconv-from-locale: New file.
49501         * lib/uniconv/u32-strconv-from-locale.c: New file.
49502
49503         * modules/uniconv/u16-strconv-from-locale: New file.
49504         * lib/uniconv/u16-strconv-from-locale.c: New file.
49505
49506         * modules/uniconv/u8-strconv-from-locale: New file.
49507         * lib/uniconv/u8-strconv-from-locale.c: New file.
49508
49509         * modules/uniconv/u32-strconv-to-enc: New file.
49510         * lib/uniconv/u32-strconv-to-enc.c: New file.
49511         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49512         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49513
49514         * modules/uniconv/u16-strconv-to-enc: New file.
49515         * lib/uniconv/u16-strconv-to-enc.c: New file.
49516         * lib/uniconv/u-strconv-to-enc.h: New file.
49517         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49518         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49519
49520         * modules/uniconv/u8-strconv-to-enc: New file.
49521         * lib/uniconv/u8-strconv-to-enc.c: New file.
49522         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49523         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49524
49525         * modules/uniconv/u32-strconv-from-enc: New file.
49526         * lib/uniconv/u32-strconv-from-enc.c: New file.
49527         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49528         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49529
49530         * modules/uniconv/u16-strconv-from-enc: New file.
49531         * lib/uniconv/u16-strconv-from-enc.c: New file.
49532         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49533         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49534
49535         * modules/uniconv/u8-strconv-from-enc: New file.
49536         * lib/uniconv/u8-strconv-from-enc.c: New file.
49537         * lib/uniconv/u-strconv-from-enc.h: New file.
49538         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49539         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49540
49541         * modules/uniconv/u32-conv-from-enc: New file.
49542         * lib/uniconv/u32-conv-from-enc.c: New file.
49543         * modules/uniconv/u32-conv-from-enc-tests: New file.
49544         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49545
49546         * modules/uniconv/u16-conv-from-enc: New file.
49547         * lib/uniconv/u16-conv-from-enc.c: New file.
49548         * lib/uniconv/u-conv-from-enc.h: New file.
49549         * modules/uniconv/u16-conv-from-enc-tests: New file.
49550         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49551
49552         * modules/uniconv/u8-conv-from-enc: New file.
49553         * lib/uniconv/u8-conv-from-enc.c: New file.
49554         * modules/uniconv/u8-conv-from-enc-tests: New file.
49555         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49556
49557         * modules/uniconv/base: New file.
49558         * lib/uniconv.h: New file.
49559
49560 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49561
49562         * doc/gnulib-tool.texi (Initial import): Update to match current
49563         behavior with strdup module.
49564         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49565         * lib/memmem.h: Remove; all uses removed.  This is now done
49566         by <string.h>.
49567         * lib/mempcpy.h: Likewise.
49568         * lib/memrchr.h: Likewise.
49569         * lib/stpcpy.h: Likewise.
49570         * lib/stpncpy.h: Likewise.
49571         * lib/strcase.h: Likewise.
49572         * lib/strchrnul.h: Likewise.
49573         * lib/strdup.h: Likewise.
49574         * lib/strndup.h: Likewise.
49575         * lib/strnlen.h: Likewise.
49576         * lib/strpbrk.h: Likewise.
49577         * lib/strsep.h: Likewise.
49578         * lib/strstr.h: Likewise.
49579         * lib/strtok_r.h: Likewise.
49580         * lib/string_.h: New file.
49581         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49582         Rely on <string.h> instead.
49583         * lib/canon-host.c: Likewise.
49584         * lib/chdir-long.c: Likewise.
49585         * lib/concatpath.c: Likewise.
49586         * lib/exclude.c: Likewise.
49587         * lib/fchdir.c: Likewise.
49588         * lib/getaddrinfo.c: Likewise.
49589         * lib/getcwd.c: Likewise.
49590         * lib/getsubopt.c: Likewise.
49591         * lib/glob.c: Likewise.
49592         * lib/hard-locale.c: Likewise.
49593         * lib/iconvme.c: Likewise.
49594         * lib/javacomp.c: Likewise.
49595         * lib/mempcpy.c: Likewise.
49596         * lib/memrchr.c: Likewise.
49597         * lib/regex_internal.h: Likewise.
49598         * lib/stpncpy.c: Likewise.
49599         * lib/strcasecmp.c: Likewise.
49600         * lib/strchrnul.c: Likewise.
49601         * lib/strdup.c: Likewise.
49602         * lib/striconv.c: Likewise.
49603         * lib/striconveh.c: Likewise.
49604         * lib/striconveha.c: Likewise.
49605         * lib/strncasecmp.c: Likewise.
49606         * lib/strndup.c: Likewise.
49607         * lib/strnlen.c: Likewise.
49608         * lib/strsep.c: Likewise.
49609         * lib/strstr.c: Likewise.
49610         * lib/strtok_r.c: Likewise.
49611         * lib/userspec.c: Likewise.
49612         * lib/w32spawn.h: Likewise.
49613         * lib/xstrndup.c: Likewise.
49614         * lib/mountlist.c (strstr): Remove decl.
49615         * m4/string_h.m4: New file.
49616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49617         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49618         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49619         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49620         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49621         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49622         Set REPLACE_STRCASECMP if necessary.
49623         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49624         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49625         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49627         HAVE_DECL_STRDUP if necessary.
49628         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49629         since gl_FUNC_STRNDUP does that now.
49630         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49631         Check for decl here...
49632         (gl_PREREQ_STRNLEN): ... not here.
49633         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49634         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49635         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49636         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49637         necessary.
49638         * modules/string: New file.
49639         * modules/memmem (Files): Remove special-purpose include file.
49640         (Depends-on): Add string.
49641         (Include): Include <string.h>, not the removed file.
49642         * modules/mempcpy: Likewise.
49643         * modules/memrchr: Likewise.
49644         * modules/stpcpy: Likewise.
49645         * modules/stpncpy: Likewise.
49646         * modules/strcase: Likewise.
49647         * modules/strchrnul: Likewise.
49648         * modules/strdup: Likewise.
49649         * modules/strndup: Likewise.
49650         * modules/strnlen: Likewise.
49651         * modules/strpbrk: Likewise.
49652         * modules/strsep: Likewise.
49653         * modules/strstr: Likewise.
49654         * modules/strtok_r: Likewise.
49655         * tests/test-dirname.c: Don't include "strdup.h", since
49656         <string.h> now suffices.
49657         * tests/test-memmem.c: Don't include "memmem.h", since
49658         <string.h> now suffices.
49659
49660 2007-01-25  Bruno Haible  <bruno@clisp.org>
49661
49662         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49663         *resultp is 0.
49664
49665         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49666         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49667         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49668         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49669
49670         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49671         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49672         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49673         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49674         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49675         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49676
49677 2007-01-24  Bruno Haible  <bruno@clisp.org>
49678
49679         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49681         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49682         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49683         gl_FUNC_FTS_CORE.
49684         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49685         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49686         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49687         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49688         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49689         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49690         gl_FUNC_FCHOWNAT.
49691         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49692         gl_FUNC_STRFTIME.
49693         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49694         Reported by Ralf Wildenhues.
49695
49696 2007-01-24  Bruno Haible  <bruno@clisp.org>
49697
49698         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49699         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49700         gl_GETADDRINFO.
49701         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49702         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49703         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49704
49705 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49706
49707         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49708         Don't use 'exit'; just return from 'main'.
49709         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49710
49711         * lib/fnmatch_.h: Readjust white space and comments to match
49712         glibc, to avoid spurious diffs.
49713
49714 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49715
49716         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49717         2004-12-01 change by Jakub Jelinek, since this code won't compile
49718         if !LIBC.  Problem reported by Bob Proulx.
49719
49720 2007-01-23  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/striconveh.c: Include c-strcaseeq.h.
49723         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49724         * modules/striconveh (Depends-on): Add c-strcaseeq.
49725
49726 2007-01-23  Bruno Haible  <bruno@clisp.org>
49727
49728         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49729
49730         * modules/c-strcaseeq: New file.
49731         * lib/c-strcaseeq.h: New file.
49732
49733         * modules/streq: New file.
49734         * lib/streq.h: New file.
49735
49736 2007-01-23  Bruno Haible  <bruno@clisp.org>
49737
49738         * modules/striconveha-tests: New file.
49739         * tests/test-striconveha.c: New file.
49740
49741         * lib/striconveha.h: Include <stdbool.h>.
49742         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49743         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49744         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49745         (mem_iconveha): New function.
49746         (str_iconveha_notranslit): Renamed from str_iconveha.
49747         (str_iconveha): New function.
49748         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49749         c-strcase.
49750
49751 2007-01-23  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49754         encodings without forgiving before trying any encoding with handler.
49755         (str_iconveha): Try all encodings without forgiving before trying any
49756         encoding with handler.
49757
49758 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         Import the following changes from libc.
49761
49762         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49763
49764         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49765
49766         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49767
49768         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49769         normal_bracket label.
49770
49771         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49772
49773         [BZ #361]
49774         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49775         to normal_bracket after fetching the next character.
49776
49777 2007-01-22  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49780         argument.
49781         * lib/striconveh.c (iconv_carefully_1): New function.
49782         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49783         argument.
49784         (str_cd_iconveh): Update.
49785         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49786         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49787         * tests/test-striconveh.c (MAGIC): New macro.
49788         (new_offsets): New function.
49789         (main): Test call with and without offsets.
49790
49791 2007-01-22  Bruno Haible  <bruno@clisp.org>
49792
49793         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49794         * modules/sys_select (Makefile.am): Likewise.
49795         * modules/sys_socket (Makefile.am): Likewise.
49796         * modules/sys_time (Makefile.am): Likewise.
49797
49798 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * modules/gettimeofday (License): Change from GPL to LGPL, since
49801         gettimeofday is a library function.
49802
49803 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49804
49805         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49806
49807 2007-01-21  Bruno Haible  <bruno@clisp.org>
49808
49809         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49810
49811 2007-01-21  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/striconveha: New file.
49814         * lib/striconveha.h: New file.
49815         * lib/striconveha.c: New file.
49816         * MODULES.html.sh (Internationalization functions): Add striconveha.
49817         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49818         string.
49819         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49820
49821 2007-01-21  Bruno Haible  <bruno@clisp.org>
49822
49823         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49824         * lib/striconveh.c (str_iconveh): Likewise.
49825
49826 2007-01-21  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/striconveh.h (mem_iconveh): New declaration.
49829         * lib/striconveh.c (mem_iconveh): New function.
49830         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49831
49832 2007-01-21  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49835
49836         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49837         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49838         original result buffer.
49839         (str_cd_iconveh): Update.
49840         * tests/test-striconveh.c (main): Update.
49841
49842         * lib/striconv.h (mem_cd_iconv): Change specification.
49843         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49844         result buffer.
49845         (str_cd_iconv): Update.
49846         * tests/test-striconv.c (main): Update.
49847
49848 2007-01-21  Bruno Haible  <bruno@clisp.org>
49849
49850         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49851
49852 2007-01-20  Jim Meyering  <jim@meyering.net>
49853
49854         * lib/userspec.c (parse_with_separator): If a user or group string
49855         starts with "+", skip the corresponding name-to-ID look-up, since
49856         such a look-up must fail: user and group names may not include "+".
49857
49858 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49859
49860         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49861         since we now assume the sys_time module.
49862         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49863         check for sys/time.h; no longer needed.
49864         * modules/poll (Depends-on): Depend on sys_time.
49865
49866 2007-01-18  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49869         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49870
49871         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49872         gettimeofday.
49873
49874         * tests/test-gettimeofday.c: Include <time.h>.
49875         (dummy): Remove variable.
49876
49877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49878         gl_HEADER_SYS_TIME_H.
49879         (gl_HEADER_SYS_TIME_H): New macro.
49880
49881         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49882         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49884         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49885         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49886         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49887         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49888         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49889         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49890         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49891         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49892
49893         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49894         last change; it caused a compilation error when cross-compiling to
49895         Cygwin.
49896
49897 2007-01-18  Jim Meyering  <jim@meyering.net>
49898
49899         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49900         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49901         than the race-prone "test -d sys || mkdir sys".
49902         (configure.ac): Use AC_PROG_MKDIR_P.
49903         * modules/sys_select: Likewise.
49904         * modules/sys_socket: Likewise.
49905         * modules/sys_time: Likewise.
49906
49907 2007-01-18  Eric Blake  <ebb9@byu.net>
49908
49909         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49910         replace gettimeofday.
49911         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49912         name, to avoid infinite recursion.
49913
49914 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49915
49916         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49917         module sys_time.
49918         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49919         assume timespec.h defines struct timeval.
49920         * lib/settime.c: Likewise.
49921         * lib/utimens.c: Likewise.
49922         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49923         since we now assume the gettimeofday module.
49924         * lib/tempname.c (__gen_tempname): Likewise.
49925         * lib/gettimeofday.h: Remove.
49926         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49927         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49928         Include <time.h>, for 'time()'.
49929         (localtime_buffer_addr): Also use this workaround if
49930         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49931         to simplify the uses.  All uses changed.
49932         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49933         that #undef is inside {}, and 'const' follows type name consistently.
49934         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49935         (gettimeofday): Do not use the maximum possible value for
49936         tv->tv_usec, since that might break usages other than ls.c.
49937         Instead, we'll leave ls.c alone.  This undoes today's patch
49938         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49939         we've never observed the problem but might as well keep the
49940         canary.
49941         * lib/nanosleep.c: Include timespec.h first, for interface check.
49942         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49943         now assume the sys_time module.
49944         * lib/tempname.c: Likewise.
49945         * lib/timespec.h: Likewise.
49946         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49947         needed.
49948         * lib/strftime.c: Likewise.
49949         * lib/timespec.h: Likewise.
49950         * lib/posixtm.c: Include posixtm.h first, for interface check.
49951         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49952         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49953         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49954         * lib/sys_time_.h: New file.
49955         * lib/timespec.h (struct timespec): Use long int, not long.
49956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49957         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49958         Remove obsolescent call to AC_HEADER_TIME.
49959         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49961         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49962         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49963         Likewise.
49964         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49965         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49967         into the sys_time module.  Check for gettimeofday just once.
49968         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49969         for gettimeofday signature to just check the signature.  Merely
49970         compile it, since linking doesn't test signature.  Improve test for
49971         whether gettimeofday.o is actually needed.
49972         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49973         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49974         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49975         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49976         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49977         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49978         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49979         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49980         than worrying about sys/time.h.
49981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49982         Don't bother worrying about TIME_WITH_SYS_TIME.
49983         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49984         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49985         * m4/sys_time_h.m4: New file.
49986         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49987         Don't include sys/time.h.  Return from main rather than exiting.
49988         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49989         all uses changed.
49990         * modules/gethrxtime (Depends-on): Add sys_time.
49991         * modules/gettime (Depends-on): Likewise.
49992         * modules/gettimeofday (Depends-on): Likewise.
49993         * modules/nanosleep (Depends-on): Likewise.
49994         * modules/settime (Depends-on): Likewise.
49995         * modules/tempname (Depends-on): Likewise.
49996         * modules/utimens (Depends-on): Likewise.
49997         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49998         (Include:) Change back to <sys/time.h>.
49999         (Maintainer:) Add self.
50000         * modules/sys_time: New file.
50001         * modules/tempname (Depends-on): Add gettimeofday.
50002         * tests/test-gettimeofday.c: Include <sys/time.h>
50003         rather than gettimeofday.h.
50004
50005 2007-01-17  Bruno Haible  <bruno@clisp.org>
50006
50007         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50008         the license default to GPL.
50009         (func_create_testdir): Don't complain if a module is LGPL and its
50010         tests module depends on GPLed modules.
50011
50012 2007-01-17  Bruno Haible  <bruno@clisp.org>
50013
50014         * lib/gettimeofday.c (gettimeofday): Add code for the case
50015         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50016         maximum possible value for tv->tv_usec, rather than the minimum one.
50017
50018 2005-10-08  Martin Lambers  <marlam@marlam.de>
50019 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50020 2007-01-16  Bruno Haible  <bruno@clisp.org>
50021
50022         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50023         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50024         gl_FUNC_GETTIMEOFDAY.
50025         (Include): Add gettimeofday.h.
50026         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50027         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50028         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50029         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50030         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50031         * lib/gettimeofday.h: New file.
50032         * lib/gettimeofday.c: Include <sys/timeb.h>.
50033         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50034         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50035         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50036         fall back on time().
50037
50038         * tests/test-gettimeofday.c: New file.
50039         * modules/gettimeofday-tests: New file.
50040
50041 2007-01-16  Eric Blake  <ebb9@byu.net>
50042
50043         * modules/fnmatch (Depends-on): Depend on wchar.
50044         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50045         * m4/fnmatch.m4: Likewise.
50046         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50047         * m4/mbchar.m4: Likewise.
50048         * modules/mbswidth (Depends-on): Depend on wchar.
50049         * lib/mbswidth.c: Assume <wchar.h>.
50050         * m4/mbswidth.m4: Likewise.
50051         * modules/quotearg (Depends-on): Depend on wchar.
50052         * lib/quotearg.c: Assume <wchar.h>.
50053         * m4/quotearg.m4: Likewise.
50054         * modules/regex (Depends-on): Depend on wchar.
50055         * lib/regex_internal.h: Assume <wchar.h>.
50056         * m4/regex.m4: Likewise.
50057         * modules/stdint (Depends-on): Depend on wchar.
50058         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50059         * m4/stdint.m4: Likewise.
50060         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50061         * modules/strftime (Depends-on): Depend on wchar.
50062         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50063         * modules/strtol (Depends-on): Depend on wchar.
50064         * lib/strtol.c: Assume <wchar.h>.
50065         * modules/wcwidth (Depends-on): Depend on wchar.
50066         * lib/wcwidth.h: Assume <wchar.h>.
50067         * m4/wcwidth.m4: Likewise.
50068
50069 2007-01-16  Bruno Haible  <bruno@clisp.org>
50070
50071         * modules/csharpexec-script: New, created from...
50072         * modules/csharpexec: ... this.
50073
50074 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50075
50076         * modules/javaexec-script: New, created from...
50077         * modules/javaexec: ... this.
50078
50079 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50080
50081         * modules/poll (Dependencies): Add sys_select.
50082
50083 2007-01-15  Jim Meyering  <jim@meyering.net>
50084
50085         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50086         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50087         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50088         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50089
50090 2007-01-15  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/striconveh: New file.
50093         * lib/striconveh.h: New file.
50094         * lib/striconveh.c: New file.
50095         * MODULES.html.sh (Internationalization functions): Add striconveh.
50096
50097         * modules/striconveh-tests: New file.
50098         * tests/test-striconveh.c: New file.
50099
50100 2007-01-15  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50103         not from GNU libiconv or GNU libc.
50104
50105 2007-01-15  Bruno Haible  <bruno@clisp.org>
50106
50107         * doc/gnulib-intro.texi (Copyright): Explain the different license
50108         terms for module descriptions, autoconf macros, tests, documentation.
50109
50110 2007-01-14  Bruno Haible  <bruno@clisp.org>
50111
50112         * modules/striconv-tests: New file.
50113         * tests/test-striconv.c: New file.
50114
50115 2007-01-14  Bruno Haible  <bruno@clisp.org>
50116
50117         * modules/iconv-tests: New file.
50118         * tests/test-iconv.c: New file.
50119
50120 2007-01-14  Bruno Haible  <bruno@clisp.org>
50121
50122         * gnulib-tool (func_get_license): For test modules, use the license of
50123         the main module.
50124
50125 2007-01-14  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50128         if iconv is found to exist.
50129
50130 2007-01-14  Bruno Haible  <bruno@clisp.org>
50131
50132         * modules/c-ctype-tests: New file.
50133         * tests/test-c-ctype.c: New file.
50134
50135 2007-01-14  Bruno Haible  <bruno@clisp.org>
50136
50137         * modules/binary-io-tests: New file.
50138         * tests/test-binary-io.sh: New file.
50139         * tests/test-binary-io.c: New file.
50140
50141 2007-01-14  Bruno Haible  <bruno@clisp.org>
50142
50143         * modules/array-oset-tests: New file.
50144         * tests/test-array_oset.c: New file.
50145
50146 2007-01-14  Bruno Haible  <bruno@clisp.org>
50147
50148         * modules/array-list-tests: New file.
50149         * tests/test-array_list.c: New file.
50150
50151 2007-01-14  Bruno Haible  <bruno@clisp.org>
50152
50153         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50154         and make.
50155         Reported by Simon Josefsson in
50156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50157
50158 2007-01-14  Bruno Haible  <bruno@clisp.org>
50159
50160         * modules/allocsa-tests: New file.
50161         * tests/test-allocsa.c: New file.
50162
50163 2007-01-14  Bruno Haible  <bruno@clisp.org>
50164
50165         * modules/fchdir (Depends-on): Add absolute-header.
50166         * modules/unistd (Depends-on): Likewise.
50167
50168 2006-12-30  Bruno Haible  <bruno@clisp.org>
50169
50170         * modules/fchdir: New file.
50171         * modules/unistd (Files): Add lib/unistd_.h.
50172         (Makefile.am): Generate unistd.h from unistd_.h.
50173         * lib/fchdir.c: New file.
50174         * lib/dirent_.h: New file.
50175         * lib/unistd_.h: New file.
50176         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50177         * m4/fchdir.m4: New file.
50178         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50179         (gl_HEADER_UNISTD): Invoke it.
50180         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50181         function.
50182         * lib/backupfile.c (opendir, closedir): Undefine.
50183         * lib/chown.c (open, close): Undefine.
50184         * lib/clean-temp.c (open, close): Undefine.
50185         * lib/copy-file.c (open, close): Undefine.
50186         * lib/execute.c (open, close): Undefine.
50187         * lib/fsusage.c (open, close): Undefine.
50188         * lib/gc-gnulib.c (open, close): Undefine.
50189         * lib/getcwd.c (opendir, closedir): Undefine.
50190         * lib/glob.c (opendir, closedir): Undefine.
50191         * lib/javacomp.c (open, close): Undefine.
50192         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50193         * lib/openat-proc.c (open, close): Undefine.
50194         * lib/pagealign_alloc.c (open, close): Undefine.
50195         * lib/pipe.c (open, close): Undefine.
50196         * lib/progreloc.c (open, close): Undefine.
50197         * lib/savedir.c (opendir, closedir): Undefine.
50198         * lib/utime.c (open, close): Undefine.
50199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50200
50201 2007-01-10  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50204
50205 2007-01-12  Eric Blake  <ebb9@byu.net>
50206
50207         Provide a robust <wchar.h>.  Further simplifications are now
50208         possible in other modules, but not included here.
50209         * modules/wchar: New module.
50210         * m4/wchar.m4: New file.
50211         * lib/wchar_.h: Likewise.
50212         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50213         of the new module.
50214         * MODULES.html.sh (Extended multibyte and wide character utilities):
50215         New section.
50216
50217 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50218
50219         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50220         to a reasonable default for memory allocation.
50221         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50222         file system that reports garbage st_size values for symlinks.
50223         Problem reported by Liyang Hu.
50224
50225 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50226
50227         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50228         Emacs .#* auto-save files).
50229
50230 2007-01-11  Bruno Haible  <bruno@clisp.org>
50231
50232         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50233         directory.
50234
50235 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50236
50237         Use @...@ consistently in lib/wctype_.h.
50238         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50239         on it being set to 1 or 0.
50240         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50241         go back to AC_SUBSTing it.
50242         * modules/wctype (Makefile.am): Undo previous change.
50243
50244 2007-01-10  Eric Blake  <ebb9@byu.net>
50245
50246         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50247         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50248         * modules/wctype (Makefile.am): Likewise.
50249         Reported by Chris McGuire.
50250
50251 2007-01-10  Jim Meyering  <jim@meyering.net>
50252
50253         fts.c: a small readability/maintainability improvement
50254         * lib/fts.c (fts_read): Make this code slightly more readable and
50255         maintainable by hoisting the "sp->fts_cur = p" assignments to
50256         immediately follow the statements that set P.  Derived from
50257         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50258
50259 2007-01-10  Eric Blake  <ebb9@byu.net>
50260
50261         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50262         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50264         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50265         Reported by Chris McGuire.
50266
50267 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50268
50269         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50270         in sed script.
50271
50272 2007-01-09  Bruno Haible  <bruno@clisp.org>
50273
50274         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50275         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50276         variables.
50277         (func_module): Use them.
50278
50279 2007-01-09  Bruno Haible  <bruno@clisp.org>
50280
50281         * modules/unistr/base: New file.
50282         * lib/unistr.h: New file.
50283
50284         * modules/unistr/u8-to-u16: New file.
50285         * lib/unistr/u8-to-u16.c: New file.
50286
50287         * modules/unistr/u8-to-u32: New file.
50288         * lib/unistr/u8-to-u32.c: New file.
50289
50290         * modules/unistr/u16-to-u8: New file.
50291         * lib/unistr/u16-to-u8.c: New file.
50292
50293         * modules/unistr/u16-to-u32: New file.
50294         * lib/unistr/u16-to-u32.c: New file.
50295
50296         * modules/unistr/u32-to-u8: New file.
50297         * lib/unistr/u32-to-u8.c: New file.
50298
50299         * modules/unistr/u32-to-u16: New file.
50300         * lib/unistr/u32-to-u16.c: New file.
50301
50302         * modules/unistr/u8-check: New file.
50303         * modules/unistr/u16-check: New file.
50304         * modules/unistr/u32-check: New file.
50305         * lib/unistr/u8-check.c: New file.
50306         * lib/unistr/u16-check.c: New file.
50307         * lib/unistr/u32-check.c: New file.
50308
50309         * modules/unistr/u8-chr: New file.
50310         * modules/unistr/u16-chr: New file.
50311         * modules/unistr/u32-chr: New file.
50312         * lib/unistr/u8-chr.c: New file.
50313         * lib/unistr/u16-chr.c: New file.
50314         * lib/unistr/u32-chr.c: New file.
50315
50316         * modules/unistr/u8-cmp: New file.
50317         * modules/unistr/u16-cmp: New file.
50318         * modules/unistr/u32-cmp: New file.
50319         * lib/unistr/u8-cmp.c: New file.
50320         * lib/unistr/u16-cmp.c: New file.
50321         * lib/unistr/u32-cmp.c: New file.
50322
50323         * modules/unistr/u8-cpy: New file.
50324         * modules/unistr/u16-cpy: New file.
50325         * modules/unistr/u32-cpy: New file.
50326         * lib/unistr/u8-cpy.c: New file.
50327         * lib/unistr/u16-cpy.c: New file.
50328         * lib/unistr/u32-cpy.c: New file.
50329         * lib/unistr/u-cpy.h: New file.
50330
50331         * modules/unistr/u8-cpy-alloc: New file.
50332         * modules/unistr/u16-cpy-alloc: New file.
50333         * modules/unistr/u32-cpy-alloc: New file.
50334         * lib/unistr/u8-cpy-alloc.c: New file.
50335         * lib/unistr/u16-cpy-alloc.c: New file.
50336         * lib/unistr/u32-cpy-alloc.c: New file.
50337         * lib/unistr/u-cpy-alloc.h: New file.
50338
50339         * modules/unistr/u8-endswith: New file.
50340         * modules/unistr/u16-endswith: New file.
50341         * modules/unistr/u32-endswith: New file.
50342         * lib/unistr/u8-endswith.c: New file.
50343         * lib/unistr/u16-endswith.c: New file.
50344         * lib/unistr/u32-endswith.c: New file.
50345         * lib/unistr/u-endswith.h: New file.
50346
50347         * modules/unistr/u8-mblen: New file.
50348         * modules/unistr/u16-mblen: New file.
50349         * modules/unistr/u32-mblen: New file.
50350         * lib/unistr/u8-mblen.c: New file.
50351         * lib/unistr/u16-mblen.c: New file.
50352         * lib/unistr/u32-mblen.c: New file.
50353
50354         * modules/unistr/u8-mbtouc: New file.
50355         * modules/unistr/u16-mbtouc: New file.
50356         * modules/unistr/u32-mbtouc: New file.
50357         * lib/unistr/u8-mbtouc.c: New file.
50358         * lib/unistr/u16-mbtouc.c: New file.
50359         * lib/unistr/u32-mbtouc.c: New file.
50360
50361         * modules/unistr/u8-mbtouc-safe: New file.
50362         * modules/unistr/u16-mbtouc-safe: New file.
50363         * modules/unistr/u32-mbtouc-safe: New file.
50364         * lib/unistr/u8-mbtouc-safe.c: New file.
50365         * lib/unistr/u16-mbtouc-safe.c: New file.
50366         * lib/unistr/u32-mbtouc-safe.c: New file.
50367
50368         * modules/unistr/u8-move: New file.
50369         * modules/unistr/u16-move: New file.
50370         * modules/unistr/u32-move: New file.
50371         * lib/unistr/u8-move.c: New file.
50372         * lib/unistr/u16-move.c: New file.
50373         * lib/unistr/u32-move.c: New file.
50374         * lib/unistr/u-move.h: New file.
50375
50376         * modules/unistr/u8-next: New file.
50377         * modules/unistr/u16-next: New file.
50378         * modules/unistr/u32-next: New file.
50379         * lib/unistr/u8-next.c: New file.
50380         * lib/unistr/u16-next.c: New file.
50381         * lib/unistr/u32-next.c: New file.
50382
50383         * modules/unistr/u8-prev: New file.
50384         * modules/unistr/u16-prev: New file.
50385         * modules/unistr/u32-prev: New file.
50386         * lib/unistr/u8-prev.c: New file.
50387         * lib/unistr/u16-prev.c: New file.
50388         * lib/unistr/u32-prev.c: New file.
50389
50390         * modules/unistr/u8-set: New file.
50391         * modules/unistr/u16-set: New file.
50392         * modules/unistr/u32-set: New file.
50393         * lib/unistr/u8-set.c: New file.
50394         * lib/unistr/u16-set.c: New file.
50395         * lib/unistr/u32-set.c: New file.
50396         * lib/unistr/u-set.h: New file.
50397
50398         * modules/unistr/u8-startswith: New file.
50399         * modules/unistr/u16-startswith: New file.
50400         * modules/unistr/u32-startswith: New file.
50401         * lib/unistr/u8-startswith.c: New file.
50402         * lib/unistr/u16-startswith.c: New file.
50403         * lib/unistr/u32-startswith.c: New file.
50404         * lib/unistr/u-startswith.h: New file.
50405
50406         * modules/unistr/u8-stpcpy: New file.
50407         * modules/unistr/u16-stpcpy: New file.
50408         * modules/unistr/u32-stpcpy: New file.
50409         * lib/unistr/u8-stpcpy.c: New file.
50410         * lib/unistr/u16-stpcpy.c: New file.
50411         * lib/unistr/u32-stpcpy.c: New file.
50412         * lib/unistr/u-stpcpy.h: New file.
50413
50414         * modules/unistr/u8-stpncpy: New file.
50415         * modules/unistr/u16-stpncpy: New file.
50416         * modules/unistr/u32-stpncpy: New file.
50417         * lib/unistr/u8-stpncpy.c: New file.
50418         * lib/unistr/u16-stpncpy.c: New file.
50419         * lib/unistr/u32-stpncpy.c: New file.
50420         * lib/unistr/u-stpncpy.h: New file.
50421
50422         * modules/unistr/u8-strcat: New file.
50423         * modules/unistr/u16-strcat: New file.
50424         * modules/unistr/u32-strcat: New file.
50425         * lib/unistr/u8-strcat.c: New file.
50426         * lib/unistr/u16-strcat.c: New file.
50427         * lib/unistr/u32-strcat.c: New file.
50428         * lib/unistr/u-strcat.h: New file.
50429
50430         * modules/unistr/u8-strchr: New file.
50431         * modules/unistr/u16-strchr: New file.
50432         * modules/unistr/u32-strchr: New file.
50433         * lib/unistr/u8-strchr.c: New file.
50434         * lib/unistr/u16-strchr.c: New file.
50435         * lib/unistr/u32-strchr.c: New file.
50436
50437         * modules/unistr/u8-strcmp: New file.
50438         * modules/unistr/u16-strcmp: New file.
50439         * modules/unistr/u32-strcmp: New file.
50440         * lib/unistr/u8-strcmp.c: New file.
50441         * lib/unistr/u16-strcmp.c: New file.
50442         * lib/unistr/u32-strcmp.c: New file.
50443
50444         * modules/unistr/u8-strcpy: New file.
50445         * modules/unistr/u16-strcpy: New file.
50446         * modules/unistr/u32-strcpy: New file.
50447         * lib/unistr/u8-strcpy.c: New file.
50448         * lib/unistr/u16-strcpy.c: New file.
50449         * lib/unistr/u32-strcpy.c: New file.
50450         * lib/unistr/u-strcpy.h: New file.
50451
50452         * modules/unistr/u8-strcspn: New file.
50453         * modules/unistr/u16-strcspn: New file.
50454         * modules/unistr/u32-strcspn: New file.
50455         * lib/unistr/u8-strcspn.c: New file.
50456         * lib/unistr/u16-strcspn.c: New file.
50457         * lib/unistr/u32-strcspn.c: New file.
50458         * lib/unistr/u-strcspn.h: New file.
50459
50460         * modules/unistr/u8-strdup: New file.
50461         * modules/unistr/u16-strdup: New file.
50462         * modules/unistr/u32-strdup: New file.
50463         * lib/unistr/u8-strdup.c: New file.
50464         * lib/unistr/u16-strdup.c: New file.
50465         * lib/unistr/u32-strdup.c: New file.
50466         * lib/unistr/u-strdup.h: New file.
50467
50468         * modules/unistr/u8-strlen: New file.
50469         * modules/unistr/u16-strlen: New file.
50470         * modules/unistr/u32-strlen: New file.
50471         * lib/unistr/u8-strlen.c: New file.
50472         * lib/unistr/u16-strlen.c: New file.
50473         * lib/unistr/u32-strlen.c: New file.
50474         * lib/unistr/u-strlen.h: New file.
50475
50476         * modules/unistr/u8-strmblen: New file.
50477         * modules/unistr/u16-strmblen: New file.
50478         * modules/unistr/u32-strmblen: New file.
50479         * lib/unistr/u8-strmblen.c: New file.
50480         * lib/unistr/u16-strmblen.c: New file.
50481         * lib/unistr/u32-strmblen.c: New file.
50482
50483         * modules/unistr/u8-strmbtouc: New file.
50484         * modules/unistr/u16-strmbtouc: New file.
50485         * modules/unistr/u32-strmbtouc: New file.
50486         * lib/unistr/u8-strmbtouc.c: New file.
50487         * lib/unistr/u16-strmbtouc.c: New file.
50488         * lib/unistr/u32-strmbtouc.c: New file.
50489
50490         * modules/unistr/u8-strncat: New file.
50491         * modules/unistr/u16-strncat: New file.
50492         * modules/unistr/u32-strncat: New file.
50493         * lib/unistr/u8-strncat.c: New file.
50494         * lib/unistr/u16-strncat.c: New file.
50495         * lib/unistr/u32-strncat.c: New file.
50496         * lib/unistr/u-strncat.h: New file.
50497
50498         * modules/unistr/u8-strncmp: New file.
50499         * modules/unistr/u16-strncmp: New file.
50500         * modules/unistr/u32-strncmp: New file.
50501         * lib/unistr/u8-strncmp.c: New file.
50502         * lib/unistr/u16-strncmp.c: New file.
50503         * lib/unistr/u32-strncmp.c: New file.
50504
50505         * modules/unistr/u8-strncpy: New file.
50506         * modules/unistr/u16-strncpy: New file.
50507         * modules/unistr/u32-strncpy: New file.
50508         * lib/unistr/u8-strncpy.c: New file.
50509         * lib/unistr/u16-strncpy.c: New file.
50510         * lib/unistr/u32-strncpy.c: New file.
50511         * lib/unistr/u-strncpy.h: New file.
50512
50513         * modules/unistr/u8-strnlen: New file.
50514         * modules/unistr/u16-strnlen: New file.
50515         * modules/unistr/u32-strnlen: New file.
50516         * lib/unistr/u8-strnlen.c: New file.
50517         * lib/unistr/u16-strnlen.c: New file.
50518         * lib/unistr/u32-strnlen.c: New file.
50519         * lib/unistr/u-strnlen.h: New file.
50520
50521         * modules/unistr/u8-strpbrk: New file.
50522         * modules/unistr/u16-strpbrk: New file.
50523         * modules/unistr/u32-strpbrk: New file.
50524         * lib/unistr/u8-strpbrk.c: New file.
50525         * lib/unistr/u16-strpbrk.c: New file.
50526         * lib/unistr/u32-strpbrk.c: New file.
50527         * lib/unistr/u-strpbrk.h: New file.
50528
50529         * modules/unistr/u8-strrchr: New file.
50530         * modules/unistr/u16-strrchr: New file.
50531         * modules/unistr/u32-strrchr: New file.
50532         * lib/unistr/u8-strrchr.c: New file.
50533         * lib/unistr/u16-strrchr.c: New file.
50534         * lib/unistr/u32-strrchr.c: New file.
50535
50536         * modules/unistr/u8-strspn: New file.
50537         * modules/unistr/u16-strspn: New file.
50538         * modules/unistr/u32-strspn: New file.
50539         * lib/unistr/u8-strspn.c: New file.
50540         * lib/unistr/u16-strspn.c: New file.
50541         * lib/unistr/u32-strspn.c: New file.
50542         * lib/unistr/u-strspn.h: New file.
50543
50544         * modules/unistr/u8-strstr: New file.
50545         * modules/unistr/u16-strstr: New file.
50546         * modules/unistr/u32-strstr: New file.
50547         * lib/unistr/u8-strstr.c: New file.
50548         * lib/unistr/u16-strstr.c: New file.
50549         * lib/unistr/u32-strstr.c: New file.
50550         * lib/unistr/u-strstr.h: New file.
50551
50552         * modules/unistr/u8-strtok: New file.
50553         * modules/unistr/u16-strtok: New file.
50554         * modules/unistr/u32-strtok: New file.
50555         * lib/unistr/u8-strtok.c: New file.
50556         * lib/unistr/u16-strtok.c: New file.
50557         * lib/unistr/u32-strtok.c: New file.
50558         * lib/unistr/u-strtok.h: New file.
50559
50560         * modules/unistr/u8-uctomb: New file.
50561         * modules/unistr/u16-uctomb: New file.
50562         * modules/unistr/u32-uctomb: New file.
50563         * lib/unistr/u8-uctomb.c: New file.
50564         * lib/unistr/u16-uctomb.c: New file.
50565         * lib/unistr/u32-uctomb.c: New file.
50566
50567         * MODULES.html.sh (Unicode string functions): Add the new modules.
50568
50569 2007-01-08  Bruno Haible  <bruno@clisp.org>
50570
50571         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50572         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50573         subdirectories.
50574
50575 2007-01-08  Karl Berry  <karl@gnu.org>
50576
50577         * doc/error.texi: mention that main() fns must set program_name
50578         when progname is used.
50579
50580 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50581
50582         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50583         WCTYPE_H is empty, for the benefit of builds from non-distclean
50584         directories.  Problem reported by Eric Blake in
50585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50586
50587 2007-01-08  Bruno Haible  <bruno@clisp.org>
50588
50589         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50590         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50591         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50592         PROVIDE_CANONICALIZE_FILENAME_MODE.
50593         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50594
50595 2007-01-08  Bruno Haible  <bruno@clisp.org>
50596
50597         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50598         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50599         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50600         * lib/fts.c: Likewise.
50601         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50602
50603 2006-12-25  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/utf8-ucs4-safe: New file.
50606         * lib/utf8-ucs4-safe.h: New file.
50607         * lib/unistr/utf8-ucs4-safe.c: New file.
50608
50609         * modules/utf16-ucs4-safe: New file.
50610         * lib/utf16-ucs4-safe.h: New file.
50611         * lib/unistr/utf16-ucs4-safe.c: New file.
50612
50613         * MODULES.html.sh (Unicode string functions): Add the new modules.
50614
50615 2007-01-08  Bruno Haible  <bruno@clisp.org>
50616
50617         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50618         (Depends-on): Add unitypes.
50619         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50620         (u8_mbtouc_aux): Move out to separate file.
50621         (u8_mbtouc): Use ucs4_t, uint8_t types.
50622         * lib/unistr/utf8-ucs4.c: New file.
50623
50624         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50625         (Depends-on): Add unitypes.
50626         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50627         (u16_mbtouc_aux): Move out to separate file.
50628         (u16_mbtouc): Use ucs4_t, uint16_t types.
50629         * lib/unistr/utf16-ucs4.c: New file.
50630
50631         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50632         (Depends-on): Add unitypes.
50633         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50634         (u8_uctomb_aux): Move out to separate file.
50635         (u8_uctomb): Use ucs4_t, uint8_t types.
50636         * lib/unistr/ucs4-utf8.c: New file.
50637
50638         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50639         (Depends-on): Add unitypes.
50640         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50641         (u16_uctomb_aux): Move out to separate file.
50642         (u16_uctomb): Use ucs4_t, uint16_t types.
50643         * lib/unistr/ucs4-utf16.c: New file.
50644
50645 2006-12-25  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/unitypes: New file.
50648         * lib/unitypes.h: New file.
50649         * MODULES.html.sh (func_all_modules): New section "Unicode string
50650         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50651         this section. Add unitypes.
50652
50653 2007-01-08  Bruno Haible  <bruno@clisp.org>
50654
50655         Avoid variable names that conflict with those from libtool.
50656         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50657         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50658         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50659         library_names_spec to acl_library_names_spec, hardcode_* to
50660         acl_hardcode_*.
50661         Reported by Ralf Wildenhues.
50662
50663 2007-01-08  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50666         definition.
50667         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50668         definition.
50669         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50670         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50671         definition.
50672         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50673         definition.
50674         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50675         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50676         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50677         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50678         definition.
50679         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50680         definition.
50681         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50682         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50683         GC_USE_<algorithm>.
50684         * lib/gc-libgcrypt.c: Likewise.
50685         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50686         * modules/gc-arctwo (configure.ac): Likewise.
50687         * modules/gc-des (configure.ac): Likewise.
50688         * modules/gc-hmac-md5 (configure.ac): Likewise.
50689         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50690         * modules/gc-md2 (configure.ac): Likewise.
50691         * modules/gc-md4 (configure.ac): Likewise.
50692         * modules/gc-md5 (configure.ac): Likewise.
50693         * modules/gc-random (configure.ac): Likewise.
50694         * modules/gc-rijndael (configure.ac): Likewise.
50695         * modules/gc-sha1 (configure.ac): Likewise.
50696
50697 2007-01-08  Bruno Haible  <bruno@clisp.org>
50698
50699         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50700         macro definition.
50701         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50702         definition.
50703         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50704         definition.
50705         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50706         * modules/fcntl-safer (configure.ac): Likewise.
50707         * modules/fopen-safer (configure.ac): Likewise.
50708         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50709         GNULIB_FWRITEERROR macro definition.
50710
50711 2007-01-08  Bruno Haible  <bruno@clisp.org>
50712
50713         * m4/gnulib-common.m4: New file.
50714         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50715         (func_get_filelist): Add m4/gnulib-common.m4.
50716
50717 2007-01-08  Bruno Haible  <bruno@clisp.org>
50718
50719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50720         command.
50721
50722 2007-01-08  Jim Meyering  <jim@meyering.net>
50723
50724         Use a more robust test for a "can't happen" condition.
50725         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50726         narrowed the st_size value.  Presuming the "can't happen" condition
50727         is true, that narrowing could conceivably convert an invalid st_size
50728         value into a valid one.  Instead, use a change based on Matthew
50729         Woehlke's original patch.
50730
50731         Slight readability improvement: use an assert-like macro
50732         in place of literal "abort ()" uses.
50733         * lib/fts.c (fts_assert): Define.
50734         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50735         Use this macro instead of a bare 'abort'.
50736
50737 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50740         simply work around them.
50741         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50742         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50743         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50744         declaring.
50745         Don't bother to define as macros, since the standard doesn't require it.
50746         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50747         longer worry about IRIX 5.3.
50748         (HAVE_WCTYPE_CTMP_BUG): Remove.
50749
50750 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50753         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50754         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50755         Problems reported by Georg Schwarz for IRIX 5.3.
50756
50757         * gnulib-tool (autoconf_minversion): Take the maximum version number
50758         found, not the minimum.  Problem reported by James Youngman.
50759
50760 2007-01-03  Karl Berry  <karl@gnu.org>
50761
50762         * doc/error.texi: new file, explaining interaction with progname.
50763         * doc/gnulib.texi: include it.  Update copyright.
50764
50765 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50766
50767         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50768         AC_CANONICAL_HOST, to improve autobuild outputs.
50769
50770 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50771             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50772
50773         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50774         sockets, server sockets, and other file descriptors.  Count errors
50775         to compute the return value.  Reorder the code a bit to be easier
50776         to follow.  Don't set event bits that were not requested (except
50777         POLLERR and POLLHUP).
50778
50779 2007-01-01  Bruno Haible  <bruno@clisp.org>
50780
50781         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50782
50783 2007-01-03  Jim Meyering  <jim@meyering.net>
50784
50785         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50786
50787 2007-01-02  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/settime (Include): Require timespec.h.
50790         * modules/nanosleep (Include): Likewise.
50791
50792 2007-01-01  Bruno Haible  <bruno@clisp.org>
50793
50794         * gnulib-tool (func_emit_copyright_notice): Bump year.
50795         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50796
50797 2007-01-01  Bruno Haible  <bruno@clisp.org>
50798
50799         Improve support for OpenBSD.
50800         * build-aux/config.rpath (libname_spec): Export.
50801         (library_names_spec): New variable. Export.
50802         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50803         library_names_spec from the config.rpath output. Locate shared library
50804         through the name pattern in library_names_spec.
50805
50806 2007-01-01  Eric Blake  <ebb9@byu.net>
50807
50808         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50809
50810 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50811
50812         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50813         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50814         assume the C locale, and avoid an "eval" that could cause trouble.
50815         Problem with SORT reported by Bob Proulx.
50816
50817         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50818         Define.  Trivial patch from Henning Nielsen Lund, originally
50819         sent to bug-grep@gnu.org today.
50820
50821 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50822
50823         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50824         struct stat.  Problem reported by Henning Nielsen Lund.
50825         * lib/acl.c: Include acl.h first, to check interface.  Don't
50826         bother to include sys/types.h and sys/stat.h again.
50827
50828 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         Import the following change from libc; problem reported by
50831         Sven Verdoolaege.
50832
50833         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50834
50835         [BZ #1373]
50836         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50837
50838 2006-12-28  Jim Meyering  <jim@meyering.net>
50839
50840         * build-aux/announce-gen: Do not assume that the package
50841         builds any of tar.gz, tar.bz2, and .xdelta files.
50842         Suggestion from Simon Josefsson.
50843
50844 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50845
50846         * modules/announce-gen: New file.
50847
50848 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50851         handles its gotchas now.
50852         * lib/mbswidth.c: Likewise.
50853         * lib/wcwidth.h: Likewise.
50854         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50855         and iswcntrl; the wctype module does this stuff now.
50856         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50858         * modules/mbchar (Depends-on): Add wctype.
50859         * modules/mbswidth (Depends-on): Likewise.
50860         * modules/wcwidth (Depends-on): Likewise.
50861
50862 2006-12-27  Eric Blake  <ebb9@byu.net>
50863
50864         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50865         module uses more than what <wctype.h> is required to provide.
50866
50867 2006-12-26  Eric Blake  <ebb9@byu.net>
50868
50869         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50870
50871 2006-12-26  Eric Blake  <ebb9@byu.net>
50872
50873         * modules/absolute-header: New module.
50874         * modules/fcntl (Depends-on): Depend on it.
50875         * modules/inttypes (Depends-on): Likewise.
50876         * modules/stdint (Depends-on): Likewise.
50877         * modules/sys_stat (Depends-on): Likewise.
50878         * modules/wctype (Depends-on): Likewise.
50879         * MODULES.html.sh (Support for building libraries and
50880         executables): Document it.
50881
50882 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50883
50884         * gnulib-tool (SED): Remove, undoing previous change.
50885         The problem was that it broke coreutils on Solaris, because
50886         "sed --posix" leaked into a makefile.
50887         (sed): New alias, if 'alias' and GNU sed.
50888
50889 2006-12-24  Jim Meyering  <jim@meyering.net>
50890
50891         Work around an fchownat bug in glibc-2.4:
50892         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50893         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50894         in spite of the -P option.
50895         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50896         New macros.
50897         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50898         * modules/openat (Files): Add lib/fchownat.c.
50899         * lib/openat.c (fchownat): Don't define here.  Move to...
50900         * lib/fchownat.c: ...this new file.
50901
50902 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         Fix bug reported by Bruno Haible in
50905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50906         where quotearg.c didn't compile on Mac OS X 10.2 because it
50907         lacks <wchar.h> and wint_t.
50908         * lib/wctype_.h (__wctype_wint_t): New type.
50909         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50910         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50911         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50912         Arg is now of type __wctype_wint_t, not wint_t.
50913         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50914         substitute HAVE_WINT_T.
50915         * modules/wctype (Files): Add m4/wint_t.m4.
50916         (wctype.h): Substitute HAVE_WINT_T.
50917
50918 2006-12-23  Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50921
50922 2006-12-23  Bruno Haible  <bruno@clisp.org>
50923
50924         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50925         S_ISLNK.
50926         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50927         mingw.
50928
50929 2006-12-22  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/copy-file.c: Include acl.h.
50932         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50933         Close the file descriptors only after being done with copy_acl.
50934         * modules/copy-file (Depends-on): Add acl.
50935
50936 2006-12-22  Bruno Haible  <bruno@clisp.org>
50937
50938         * gnulib-tool (SED): New variable.
50939         Use $SED instead of sed everywhere.
50940
50941 2006-12-22  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/no-c++: New file.
50944         * m4/no-c++.m4: New file.
50945         * MODULES.html.sh (Support for building libraries and executables):
50946         Add no-c++.
50947
50948 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50949
50950         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50951         Include <limits.h>, and use its INT_MAX to rewrite the
50952         j loop so that it does not overflow 'int'.  Problem reported by
50953         Ralf Wildenhues in
50954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50955         Play it safe by shifting left by 1 rather than multiplying by 2,
50956         as GCC is less likely to optimize this away when the value
50957         is signed (when it assumes overflow leads to undefined behavior).
50958         Also, don't assume time_t uses two's complement.
50959
50960 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * MODULES.html.sh: New module wctype.
50963         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50964         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50965         <wctype.h>, since the new wctype module should fix this.
50966         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50967         the wctype module should arrange for it.
50968         * lib/regex_internal.h: Likewise.
50969         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50970         since the wctype module should handle this now.
50971         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50972         * modules/fnmatch (Depends-on): Add wctype.
50973         * modules/quotearg (Depends-on): Likewise.
50974         * modules/regex (Depends-on): Likewise.
50975
50976 2006-12-19  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50979         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50980
50981 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50982
50983         * modules/savewd (Depends-on): Fix dependency on fcntl.
50984
50985 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50988         conforms to C99, rather than relying on the user's environment
50989         setting of STDINT_H.
50990
50991 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50992         and Eric Blake  <ebb9@byu.net>
50993
50994         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50995         This is more consistent with the other defines here.
50996         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50997         Port to z/OS.  Problem reported by Paul Gilmartin.
50998         Change local vars to use gl_ prefix rather than ac_.
50999         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51000         with other defines.
51001         * modules/double-slash-root: New module.
51002         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51003         (Depends-on): Add double-slash-root.
51004         * MODULES.html.sh (File system functions): Mention new module.
51005
51006 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51007
51008         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51009         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51010         This is for the benefit of gzip, which doesn't do i18n.
51011
51012 2006-12-12  Jim Meyering  <jim@meyering.net>
51013
51014         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51015         Reported by Andreas Schwab <schwab@suse.de>.
51016
51017 2006-12-12  Bruno Haible  <bruno@clisp.org>
51018
51019         Merge these changes.
51020         2006-09-05  Bruno Haible  <bruno@clisp.org>
51021         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51022         iconv_alloc succeeded.
51023         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51024         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51025         test for " && dest " at the end - dest is always != NULL there. Call
51026         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51027         with 2xNULL arguments, also to flush the state storage. Handle the
51028         IRIX iconv behaviour. Realloc the final result, to throw away unused
51029         memory.
51030
51031 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51032
51033         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51034         and fchmodat unconditionally, since glibc 2.4 has them.
51035         Problem reported by Arkadiusz Miskiewicz.
51036
51037 2006-12-10  Bruno Haible  <bruno@clisp.org>
51038
51039         * gnulib-tool (func_import): Show the include files only for those
51040         modules that are copied and specified.
51041         Reported by Karl Berry.
51042
51043 2006-12-08  Jim Meyering  <jim@meyering.net>
51044
51045         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51046         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51047
51048         * build-aux/announce-gen: Add two new options, both optional:
51049         --bootstrap-tools=TOOL_LIST
51050               a comma-separated list of tools, e.g.,
51051               autoconf,automake,bison,gnulib
51052         --gnulib-snapshot-date=DATE
51053               if gnulib is in the bootstrap tool list,
51054               then report this as the snapshot date.
51055               If not specified, use the current date/time.
51056               If you specify a date here, be sure it's UTC.
51057
51058 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51059
51060         * tests/test-argp-2.sh: Fix test to match actual output.
51061         (func_compare): Fix sed script to be portable.
51062
51063 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51066         workaround for this case.  It is not autoconfigured now; offhand
51067         it's hard to see how to autoconfigure it.
51068
51069 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51072         a directory that is about to be chowned.  Such a directory's
51073         initial file permissions should permit the owner only and this
51074         should not be changed until after the chown, since the group and
51075         other bits would be incorrect if they granted permission before
51076         the chown.
51077
51078         Fix porting problem for iswctype reported by Georg Schwarz in:
51079         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51080         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51081         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51082         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51083         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51084
51085 2006-12-03  Jim Meyering  <jim@meyering.net>
51086
51087         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51088         p->fts_statp may not yet be defined.
51089         (fts_read): Instead, set it in the caller, once p->fts_statp is
51090         sure to be defined, and corresponds to a top-level directory.
51091         This bug made du -x fail.  Here's the coreutils test case:
51092         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51093         Reported by Mike Frysinger.
51094
51095 2006-12-01  Jim Meyering  <jim@meyering.net>
51096
51097         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51098         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51099         Reported by Simon Josefsson.
51100
51101 2006-11-30  Jim Meyering  <jim@meyering.net>
51102
51103         * m4/warning.m4: Use the all-permissive copyright notice
51104         recommended by RMS (rather than LGPL).
51105         * m4/vararrays.m4: Likewise.
51106         * m4/flexmember.m4: Likewise.
51107
51108 2006-11-29  Bruno Haible  <bruno@clisp.org>
51109
51110         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51111         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51112         using +=.
51113         Reported by Simon Josefsson <simon@josefsson.org>.
51114
51115 2006-11-28  James Youngman <jay@gnu.org>
51116
51117         * README: Advise users that they might find the bug-gnulib@gnu.org
51118         and autotools-announce@gnu.org mailing lists useful.
51119
51120 2006-11-28  Bruno Haible  <bruno@clisp.org>
51121
51122         * m4/ptrdiff_max.m4: Remove file.
51123
51124 2006-11-21  Bruno Haible  <bruno@clisp.org>
51125
51126         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51127         _AC_COMPUTE_INT.
51128         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51129         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51130         _AC_COMPUTE_INT.
51131         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51132         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51133         _AC_COMPUTE_INT.
51134         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51135
51136 2006-11-28  Jim Meyering  <jim@meyering.net>
51137
51138         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51139         warning from "gcc -Wshadow" about shadowing the builtin.
51140
51141 2006-11-27  Bruno Haible  <bruno@clisp.org>
51142
51143         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51144         _AC_COMPUTE_INT.
51145         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51146
51147 2006-11-27  Bruno Haible  <bruno@clisp.org>
51148             Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51151
51152 2006-11-26  Bruno Haible  <bruno@clisp.org>
51153
51154         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51155         noinst_LTLIBRARIES.
51156
51157 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51158             Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51161         if compiling with "gcc -ansi".
51162
51163 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51164
51165         Fix some incompatibilities with gcc -ansi -pedantic.
51166         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51167         if compiling pedantically with GCC, unless it's C99 or later.
51168         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51169         it mishandles gcc -ansi -pedantic as well.
51170         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51171         if gcc -pedantic.
51172         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51173         initializers for struct if -pedantic, unless it's C99 or later.
51174
51175 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51176
51177         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51178         Don't close an fd more than once. Identical atimes indicate
51179         success, not failure.
51180
51181 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51182
51183         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51184
51185 2006-11-23  Jim Meyering  <jim@meyering.net>
51186
51187         * build-aux/announce-gen: New file.  From coreutils.
51188
51189 2006-11-22  Jim Meyering  <jim@meyering.net>
51190
51191         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51192         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51193         (fts_read): Use a temporary to narrow the overused st_size member
51194         before using it in a switch statement.  Reported by Matthew Woehlke.
51195
51196         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51197         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51198
51199 2006-11-20  Bruno Haible  <bruno@clisp.org>
51200
51201         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51202         changequote instead of pairs of brackets.
51203         Reported by Andreas Schwab <schwab@suse.de>.
51204
51205 2006-11-21  Jim Meyering  <jim@meyering.net>
51206
51207         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51208         so as to remain compatible with older compilers.
51209         Patch from Michael Deutschmann.
51210
51211 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         * MODULES.html.sh (File system functions): Add openat.
51214
51215         * lib/openat.h (rpl_fstatat): New macro, if
51216         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51217         (fstatat): Define to rpl_fstatat under the same conditions,
51218         unless COMPILING_FSTATAT.
51219         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51220         seems to have the bug.
51221         * lib/fstatat.c: New file.
51222         * modules/openat (Files): Add it.
51223
51224 2006-11-20  Bruno Haible  <bruno@clisp.org>
51225
51226         * Makefile: New file.
51227
51228 2006-11-20  Jim Meyering  <jim@meyering.net>
51229
51230         The beginnings of syntax-related checks for gnulib.
51231         * lib/Makefile: New file.
51232         * lib/t-idcache: New script.  Ensure that the two halves of
51233         idcache.c stay in sync.
51234
51235         * lib/idcache.c: Adjust comments in user- and group- portions to
51236         be more accurate, and to be consistent with one another.
51237
51238 2006-11-20  Jim Meyering  <jim@meyering.net>
51239
51240         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51241         continue using the flexible array member (thus, this module performs
51242         half as many malloc calls), with the addition that...
51243         (getgroup, getuser): Consistently record a non-match via an empty
51244         "name" string, and map an empty string match to a NULL return value.
51245         * modules/idcache (Depends-on): Re-add flexmember.
51246
51247         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51248         (getuidbyname, getgroup, getgidbyname): Likewise.
51249
51250         Use cleaner syntax: NULL rather than 0.
51251         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51252
51253 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51254
51255         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51256         It mishandled the case where the group was missing.
51257         Problem reported by Greg Schafer.
51258         * modules/idcache: Likewise.
51259
51260 2006-11-18  Jim Meyering  <jim@meyering.net>
51261
51262         * check-module (%exempt_header): Add exception for some
51263         conditionally-included headers.
51264
51265         * modules/i-ring (Depends-on): Add verify.
51266         (License): Change to LGPL.
51267
51268 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51271         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51272         and inttostr.h.  Use snprintf rather than uinttostr, so that
51273         LGPLed code doesn't depend on GPLed.
51274
51275 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * modules/inline (License): Change from GPL to LGPL.
51278
51279 2006-11-17  Jim Meyering  <jim@meyering.net>
51280
51281         * modules/d-type (License): Switch to LGPL.
51282
51283 2006-11-15  Bruno Haible  <bruno@clisp.org>
51284
51285         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51286
51287 2006-11-15  Eric Blake  <ebb9@byu.net>
51288
51289         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51290         the module dependency.
51291
51292 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51293             Bruno Haible  <bruno@clisp.org>
51294
51295         * gnulib-tool (func_create_testdir): Add license consistency check.
51296
51297 2006-11-15  Eric Blake  <ebb9@byu.net>
51298
51299         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
51300         random "(cached)" in configure output.
51301
51302 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51303
51304         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
51305         test for conforming inttypes.h is both announced and cached.
51306
51307         * MODULES.html.sh (seen_modules, seen_files): New variables.
51308         (func_module): Rewrite to use a few less gnulib-tool and sed
51309         invocations.  Avoid a couple of quadratic algorithms for ...
51310         (missed_modules, missed_files): ... these, with ...
51311         (func_append, func_tmpdir): ... these new functions, from
51312         gnulib-tool.  Analogously, install traps for cleanup.
51313
51314         * tests/test-gc.c (main): Remove unused variables.
51315         * tests/test-read-file.c: Include stdlib.h, for 'free'.
51316
51317 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
51318
51319         * modules/inttostr (License): Change to LGPL.
51320
51321 2006-11-14  Eric Blake  <ebb9@byu.net>
51322
51323         * modules/tempname (License): Change to LGPL.
51324
51325 2006-11-14  Eric Blake  <ebb9@byu.net>
51326
51327         * doc/functions.texi (Function Portability): *printf functions on
51328         Cygwin now understand all POSIX size specifiers.
51329
51330 2006-11-14  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/c-ctype (License): Change to LGPL.
51333
51334 2006-11-12  Bruno Haible  <bruno@clisp.org>
51335
51336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51337         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51338         for GNOME libraries, for which the include files are installed in
51339         subdirectories of $prefix/include.
51340
51341 2006-11-12  Bruno Haible  <bruno@clisp.org>
51342
51343         * m4/lib-link.m4: Require at least autoconf-2.54.
51344         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51345         name to underscores for the --with option.
51346
51347 2006-11-13  Bruno Haible  <bruno@clisp.org>
51348
51349         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51350         the tests directory.
51351         Reported by Ralf Wildenhues.
51352
51353 2006-11-13  Bruno Haible  <bruno@clisp.org>
51354
51355         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51356         (func_emit_initmacro_end): Undo the override here.
51357         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51358         Works around the famous automake error in coreutils.
51359
51360 2006-11-13  Eric Blake  <ebb9@byu.net>
51361
51362         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51363         element, not its node.
51364
51365 2006-11-12  Bruno Haible  <bruno@clisp.org>
51366
51367         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51368         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51369
51370 2006-11-12  Bruno Haible  <bruno@clisp.org>
51371
51372         * gnulib-tool: New option --local-symlink.
51373         (func_usage): Document it.
51374         (lsymbolic): New variable.
51375         (func_import, func_create_testdir): If --symlink was not specified,
51376         test whether --local-symlink was specified and the file comes from
51377         the local_gnulib_dir.
51378
51379 2006-11-12  Bruno Haible  <bruno@clisp.org>
51380
51381         * gnulib-tool (func_ln): New function.
51382         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51383
51384 2006-11-12  Bruno Haible  <bruno@clisp.org>
51385
51386         Finish support for source files in subdirectories.
51387         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51388         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51389         AUTOMAKE_OPTIONS.
51390         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51391
51392 2006-11-12  Bruno Haible  <bruno@clisp.org>
51393
51394         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51395         EXTRA_lib_SOURCES augmentation.
51396         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51397
51398 2006-11-12  Jim Meyering  <jim@meyering.net>
51399
51400         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51401         file descriptors.  This also averts a failure on systems with
51402         native openat support when a traversed directory lacks "x" access.
51403         * lib/fts_.h: Include "i-ring.h"
51404         (struct FTS) [fts_fd_ring]: New member.
51405         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51406         (FCHDIR): Add parentheses.
51407         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51408         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51409         When descending, rather than simply closing the previous
51410         fts_cwd_fd value, push that file descriptor onto the ring.
51411         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51412         (fts_open): Initialize the new fd_ring member.
51413         (fts_close): Clear the ring.
51414         (fts_safe_changedir): When possible, use our new fd_ring to skip
51415         the diropen and fstat and dev/ino comparison that would normally
51416         accompany a virtual `chdir ("..")'.
51417
51418         * modules/fts (Depends-on): Add i-ring.
51419         * modules/i-ring: New module.
51420         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51421         * m4/i-ring.m4: New file.
51422
51423 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51424
51425         * gnulib-tool (func_create_testdir): Fix replacement of
51426         `build-aux' in configure.ac.  Run autotools in gltests
51427         subdirectory.
51428         (func_create_testdir, func_create_megatestdir, test): There is
51429         no need for '--force' in most autotool invocations in a new
51430         tree.  Actually fail the whole test if any of the tools, or the
51431         configure or make stages fail.
51432
51433         Sync from Automake.
51434         * build-aux/gnupload: Revert last change.  Add pointer to upload
51435         instructions of the GNU Maintenance Instructions.
51436         Suggestion by Karl Berry.
51437
51438 2006-11-10  Jim Meyering  <jim@meyering.net>
51439
51440         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51441
51442 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51443
51444         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51445         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51446         (bind_textdomain_codeset) [! ENABLE_NLS]:
51447         Evaluate all the arguments.  That way, callers get compatible behavior
51448         if the arguments have side effects.  Also, it avoids some GCC
51449         diagnostics in some cases; Joel E. Denny reported problems when Bison
51450         was configured with --enable-gcc-warnigs.
51451
51452 2006-11-10  Jim Meyering  <jim@meyering.net>
51453
51454         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51455         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51456         account.
51457
51458 2006-11-10  Jim Meyering  <jim@meyering.net>
51459
51460         * modules/inline: New file/module.
51461         * modules/xalloc (Files): Remove m4/inline.m4.
51462         (Depends-on): Add inline, instead.
51463         * modules/oset: Likewise.
51464         * modules/list: Likewise.
51465
51466 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51467
51468         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51469         Problem reported by Matthew Woehlke.
51470
51471 2006-11-09  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/tempname.c (gen_tempname): Remove variant that invokes
51474         __gen_tempname.
51475         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51476         __gen_tempname.
51477
51478 2006-11-08  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51481         to 'yes' instead of 'cross-compiling'.
51482
51483 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * lib/quotearg.h (quotearg_free): New decl.
51486         * lib/quotearg.c (quotearg_free): New function.
51487         (slot0, nslots, slotvec0, slotvec):
51488         Now file-scope so that quotearg_free can get at them.
51489
51490 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51491
51492         Sync from Automake.
51493         * build-aux/gnupload: Add missing 'gnu' to example URL.
51494         Report by Karl Berry.
51495
51496 2006-11-08  Bruno Haible  <bruno@clisp.org>
51497
51498         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51499         Suggested by Paul Eggert.
51500
51501 2006-11-08  Jim Meyering  <jim@meyering.net>
51502
51503         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51504         It's already included if !_LIBC.
51505         (fts_safe_changedir): Add a comment.
51506
51507 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51510         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51511         Matthew Woehlke.
51512
51513         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51514         definitions up, to avoid colliding with change below.
51515         (static_inline) [HAVE_INLINE]: New macro.
51516         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51517         Provide extern decls when !HAVE_INLINE.  Do not define unless
51518         static_inline is defined, either by us or by xmalloc.c.  Use
51519         static_inline rather than static inline.
51520         (XCALLOC): Optimize sizeof(T) = 1 case.
51521         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51522
51523 2006-11-07  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51526         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51527         AC_C_INLINE.
51528         * modules/xalloc (Files): Add m4/inline.m4.
51529
51530 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51531
51532         * README: Fix typo.
51533         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51534         (Miscellanous Notes): ...from this.
51535
51536 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51539         Mention that offsetof should be used instead of sizeof.
51540         From Bruno Haible.
51541
51542 2006-11-07  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51545
51546 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51549         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51550         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51551         (gl_tree_add_before, gl_tree_add_after):
51552         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51553         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51554         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51555         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51556         (gl_linked_add_after, gl_linked_add_at): Likewise.
51557         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51558         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51559         (gl_tree_add_before, gl_tree_add_after): Likewise.
51560         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51561         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51562         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51563
51564 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51565
51566         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51567
51568 2006-11-06  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/inline.m4: New file.
51571         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51572         * modules/list (Files): Add m4/inline.m4.
51573         * modules/oset (Files): Likewise.
51574
51575 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51576
51577         * lib/idcache.c: Include <stddef.h>, for offsetof.
51578         (struct userid.name): Change from char * to a flexible array member.
51579         All uses changed.
51580         * modules/idcache (Depends-on): Add flexmember.
51581
51582         * MODULES.html.sh (Core language properties): New module flexmember.
51583         * modules/flexmember, m4/flexmember.m4: New files.
51584
51585         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51586         inline functions that are identical with the old xnmalloc_inline,
51587         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51588         that we can avoid some unnecessary integer multiplications and
51589         divisions in the common case where the element size is known at
51590         compile time.
51591         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51592         needed.
51593         (xnboundedmalloc): Remove.
51594         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51595         arguments, for consistency with rest of this header.
51596         (xcharalloc): Rewrite using XNMALLOC.
51597         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51598         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51599         versions have been moved to lib/xalloc.h and renamed to be the
51600         non-*_inline versions.
51601         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51602         and xnrealloc functions, since those functions are now inline and
51603         now call us.
51604         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51605         renaming described above.
51606         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51607         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51608         captures the dependency in AC_C_INLINE.
51609
51610         New module canonicalize-lgpl, proposed by Charles Wilson in
51611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51612         with a few small changes afterwards.
51613         * MODULES.html.sh (File system functions): New module
51614         canonicalize-lgpl.
51615         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51616         and canonicalize_file_name.
51617         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51618         * modules/canonicalize-lgpl: New files.
51619
51620 2006-11-05  Bruno Haible  <bruno@clisp.org>
51621
51622         * gnulib-tool (func_import, func_create_testdir): Create directories
51623         also for files in subdirectories of lib/.
51624
51625 2006-11-05  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51628         ANSI C compliant.
51629
51630 2006-11-03  Bruno Haible  <bruno@clisp.org>
51631
51632         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51633         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51634         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51635         (xnboundedmalloc): New inline function.
51636         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51637         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51638         xmalloc.
51639         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51640         xmalloc.
51641         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51642         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51643         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51644         xmalloc.
51645         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51646         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51647         xmalloc.
51648         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51649         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51650         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51651         xmalloc.
51652         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51653         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51654         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51655         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51656         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51657         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51658         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51659
51660 2006-11-03  Bruno Haible  <bruno@clisp.org>
51661
51662         * lib/c-ctype.h [C++]: Define functions without name mangling.
51663         * lib/fwriteerror.h [C++]: Likewise.
51664         * lib/gcd.h [C++]: Likewise.
51665         * lib/linebreak.h [C++]: Likewise.
51666
51667 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51670         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51671         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51672         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51673         Check for functions and headers just once.
51674         Check for declaration of canonicalize_file_name.
51675         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51676
51677 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51678
51679         * gnulib-tool (func_import): Fix typo in actioncmd.
51680
51681 2006-11-02  Bruno Haible  <bruno@clisp.org>
51682
51683         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51684         newline sequence in the Makefile.am snippet as a space, like "make"
51685         does.
51686         Reported by Roger Persson <perrog@gmail.com>.
51687
51688 2006-11-01  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51691         already declared in <string.h>.
51692         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51693
51694 2006-11-01  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51697         * lib/strcase.h: Include <string.h>.
51698         (strcasecmp): Define to rpl_strcasecmp here.
51699
51700 2006-11-01  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51703
51704 2006-11-01  Eric Blake  <ebb9@byu.net>
51705
51706         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51707
51708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51709
51710 2006-10-29  Bruno Haible  <bruno@clisp.org>
51711
51712         Make it compile in C++ mode.
51713         * lib/full-write.c (full_rw): Add a cast.
51714
51715 2006-11-01  Bruno Haible  <bruno@clisp.org>
51716
51717         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51718         be POSIX compliant.
51719         Reported by Roger Persson <perrog@gmail.com>.
51720
51721 2006-11-01  Eric Blake  <ebb9@byu.net>
51722
51723         * lib/getopt_.h: Fix comments.
51724
51725 2006-10-31  Eric Blake  <ebb9@byu.net>
51726
51727         * modules/tmpdir (Depends-on): Add sys_stat.
51728         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51729         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51730         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51731         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51732         tempname.
51733
51734 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         Avoid some C++ diagnostics reported by Bruno Haible.
51737         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51738         xmalloc.
51739         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51740         (struct slotvec): Move to top level.
51741         (quotearg_n_options): Rewrite to avoid xmalloc.
51742         * lib/xalloc.h (xcharalloc): New function.
51743         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51744         [defined __cplusplus]: Add function template that provides result
51745         type propagation.  This part of the change is from Bruno Haible.
51746
51747 2006-10-29  Bruno Haible  <bruno@clisp.org>
51748
51749         Make it compile in C++ mode.
51750         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51751         * lib/strnlen1.c (strnlen1): Cast memchr result.
51752         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51753         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51754         (create_temp_dir): Rename local variable 'template'.
51755         (compile_csharp_using_sscli): Add cast.
51756         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51757         * lib/findprog.c (find_in_path): Likewise.
51758         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51759         * lib/wait-process.c (register_slave_subprocess): Likewise.
51760
51761 2006-10-22  Bruno Haible  <bruno@clisp.org>
51762
51763         * modules/tsearch: New file.
51764         * lib/tsearch.h: New file.
51765         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51766         * m4/tsearch.m4: New file.
51767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51768
51769 2006-10-29  Eric Blake  <ebb9@byu.net>
51770
51771         * lib/arcfour.c: Assume config.h.
51772         * lib/arctwo.c: Likewise.
51773         * lib/base64.c: Likewise.
51774         * lib/check-version.c: Likewise.
51775         * lib/crc.c: Likewise.
51776         * lib/des.c: Likewise.
51777         * lib/gc-gnulib.c: Likewise.
51778         * lib/gc-libgcrypt.c: Likewise.
51779         * lib/gc-pbkdf2-sha1.c: Likewise.
51780         * lib/getaddrinfo.c: Likewise.
51781         * lib/getdelim.c: Likewise.
51782         * lib/getline.c: Likewise.
51783         * lib/hmac-md5.c: Likewise.
51784         * lib/hmac-sha1.c: Likewise.
51785         * lib/iconvme.c: Likewise.
51786         * lib/md2.c: Likewise.
51787         * lib/md4.c: Likewise.
51788         * lib/memxor.c: Likewise.
51789         * lib/read-file.c: Likewise.
51790         * lib/readline.c: Likewise.
51791         * lib/rijndael-alg-fst.c: Likewise.
51792         * lib/rijndael-api-fst.c: Likewise.
51793         * lib/xgetdomainname.c: Likewise.
51794
51795 2006-10-28  Eric Blake  <ebb9@byu.net>
51796
51797         * lib/xstrndup.c: Assume config.h.
51798
51799 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51802         stat-macros.h is now for our own macros, whereas stat_h is for
51803         macros in the <sys/stat.h> name space.
51804         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51805         (STAT_MACROS_H): Remove.
51806         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51807         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51808         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51809         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51810         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51811         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51812         Move these macros to ...
51813         * lib/stat_.h: here.  Don't include stat-macros.h.
51814         * lib/canonicalize.c: Don't include stat-macros.h.
51815         * lib/chown.c: Likewise.
51816         * lib/euidaccess.c: Likewise.
51817         * lib/file-type.c: Likewise.
51818         * lib/filemode.c: Likewise.
51819         * lib/glob.c: Likewise.
51820         * lib/isapipe.c: Likewise.
51821         * lib/lchown.c: Likewise.
51822         * lib/lstat.c: Likewise.
51823         * lib/mkdir-p.c: Likewise.
51824         * lib/rmdir.c: Likewise.
51825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51827         unless mkdir isn't declared, to speed up 'configure'.
51828         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51829         would define all the S_* symbols.
51830         * modules/canonicalize (Depends-on):
51831         Depend on sys_stat, not stat-macros.
51832         * modules/chown: Likewise.
51833         * modules/euidaccess: Likewise.
51834         * modules/filemode: Likewise.
51835         * modules/file-type: Likewise.
51836         * modules/glob: Likewise.
51837         * modules/isapipe: Likewise.
51838         * modules/lchown: Likewise.
51839         * modules/lstat: Likewise.
51840         * modules/mkancesdirs: Likewise.
51841         * modules/rmdir: Likewise.
51842         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51843         * modules/modechange: Likewise.
51844         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51845         (configure.ac): Remove gl_STAT_MACROS.
51846         * modules/sys_stat (Depends-on): Remove stat-macros.
51847
51848 2006-10-27  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/signed.m4: Remove file.
51851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51852         invocation.
51853         * modules/vasnprintf (Files): Remove m4/signed.m4.
51854
51855 2006-10-27  Bruno Haible  <bruno@clisp.org>
51856
51857         Update to GNU gettext 0.16.
51858         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51859         m4/inttypes-h.m4, m4/signed.m4.
51860         * m4/gettext.m4: Update to GNU gettext 0.16.
51861         * m4/intl.m4: New file, from GNU gettext.
51862         * m4/intldir.m4: New file, from GNU gettext.
51863         * config/srclist.txt: Update
51864
51865 2006-10-27  Eric Blake  <ebb9@byu.net>
51866
51867         * MODULES.html.sh: Document tempname.
51868         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51869         dependencies.
51870         (Files): Move lib/tempname.c...
51871         * modules/tempname: ...to this new module.
51872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51873         (gl_PREREQ_TEMPNAME): Move...
51874         * m4/tempname.m4: ...to this new file.
51875         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51876         * modules/sys_stat (Depends-on): Add stat-macros.
51877         * lib/stat_.h (includes): Pick up stat macros.
51878         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51879         if stat macros are broken.
51880         * lib/tempname.c (includes): No need to include "stat-macros.h".
51881         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51882         (direxists, __path_search) [!_LIBC]: Don't compile these in
51883         gnulib; the tmpdir module covers that.
51884         * lib/tempname.h: New file.
51885
51886 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * COPYING: Explain how gnulib-tool converts licence headers.
51889         Almost all wording by Eric Blake.
51890
51891 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         * lib/mbchar.h (is_basic_table): Make read-only.
51894         * lib/mbchar.c (is_basic_table): Likewise.
51895         Reported by John Darrington.
51896
51897 2006-10-25  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/progname.h (set_program_name): Undefine before defining.
51900
51901 2006-10-25  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51904         false for non-gcc C++ compilers.
51905         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51906
51907 2006-10-24  Bruno Haible  <bruno@clisp.org>
51908
51909         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51910         iconv implementations like Irix iconv.
51911
51912 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51913
51914         * modules/vararrays: New file.
51915         * m4/vararrays.m4: New file, taken from diffutils.
51916         * MODULES.html.sh: New module vararrays.
51917
51918 2006-10-24  Karl Berry  <karl@gnu.org>
51919
51920         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51921         Don't call GNU Unix.
51922
51923 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51924
51925         * users.txt: Add Libtool.
51926
51927         Sync from Libtool:
51928
51929         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51932         to gnulib's policy of including config.h unconditionally.
51933
51934 2006-10-24  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/wcwidth (Files): Add m4/wint_t.m4.
51937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51938         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51939
51940 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51941
51942         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51943         to pacify GCC with some -W flags enabled.  Problem reported by
51944         Bruno Haible.
51945
51946 2006-10-24  Jim Meyering  <jim@meyering.net>
51947
51948         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51949         Reported by Karl Berry.
51950
51951 2006-10-23  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51954
51955 2006-10-24  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/gl_list.h: Use C comment style, not C++ comment style.
51958
51959 2006-10-23  Eric Blake  <ebb9@byu.net>
51960
51961         * lib/getaddrinfo.c (includes): Add missing include.
51962
51963 2006-10-23  Bruno Haible  <bruno@clisp.org>
51964             Paul Eggert  <eggert@cs.ucla.edu>
51965
51966         Ability to rename obstack_free.
51967         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51968         obstack_free.
51969         (obstack_free): Invoke the __obstack_free macro.
51970         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51971
51972 2006-10-23  Bruno Haible  <bruno@clisp.org>
51973             Paul Eggert  <eggert@cs.ucla.edu>
51974
51975         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51976         __argc, __argv from the declaration. (They are defined as macros on
51977         mingw.)
51978
51979 2006-10-22  Bruno Haible  <bruno@clisp.org>
51980
51981         * doc/gnulib-intro.texi: New file.
51982         * doc/gnulib.texi: Include it.
51983
51984 2006-10-21  Bruno Haible  <bruno@clisp.org>
51985
51986         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51987         "Introduction", "Miscellanous Notes", "Particular Modules".
51988
51989 2006-10-21  Bruno Haible  <bruno@clisp.org>
51990
51991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51992         Change mostlyclean-local rule to avoid sh syntax error from bash
51993         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51994
51995 2006-10-23  Jim Meyering  <jim@meyering.net>
51996
51997         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51998         in place of snprintf.
51999
52000         * modules/inttostr (Files): Add lib/uinttostr.c.
52001         * lib/uinttostr.c (inttostr): New file/function.
52002         * lib/inttostr.h (uinttostr): Declare.
52003         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52004         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52005         Add uinttostr.
52006         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52007
52008 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         * lib/canonicalize.c (ELOOP): Define if not already defined.
52011         Problem reported by Bruno Haible in
52012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52013
52014 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52015
52016         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52017         Problem reported by Perry Smith and Ville Laurikari.
52018
52019         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52020         uses.
52021
52022 2006-10-19  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52025         for mingw.
52026
52027 2006-10-19  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52030         Needed for mingw.
52031
52032 2006-10-19  Bruno Haible  <bruno@clisp.org>
52033
52034         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52035
52036 2006-10-19  Bruno Haible  <bruno@clisp.org>
52037
52038         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52039         it.
52040
52041 2006-10-19  Bruno Haible  <bruno@clisp.org>
52042
52043         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52044         invocation.
52045
52046 2006-10-19  Bruno Haible  <bruno@clisp.org>
52047
52048         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52049         mountlist by default.
52050
52051 2006-10-16  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/c-strstr.c: Include c-strstr.h.
52054
52055 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52056
52057         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52058         in a slash.
52059
52060 2006-10-18  Bruno Haible  <bruno@clisp.org>
52061
52062         * lib/lock.h [C++]: Wrap definitions in extern "C".
52063
52064 2006-10-18  Bruno Haible  <bruno@clisp.org>
52065
52066         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52067         gl_LIBOBJS list.
52068
52069 2006-10-18  Bruno Haible  <bruno@clisp.org>
52070
52071         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52072
52073 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * lib/xstrtol.h: Include gettext.h.
52076         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52077         Problem reported by Eric Blake.
52078         * modules/xstrtol (Depends-on): Add gettext-h.
52079
52080 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52081
52082         * lib/strftime.c (advance): New macro.
52083         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52084         incomplete type, so you can't add 0 to it.  Problem and patch
52085         reported by Eelco Dolstra for dietlibc.
52086
52087 2006-10-18  Jim Meyering  <jim@meyering.net>
52088
52089         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52090         type for a local, and rename it: s/up/user_proc/.
52091
52092 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52093
52094         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52095         READ_UTMP_USER_PROCESS.
52096         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52097
52098 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52101         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52102
52103 2006-10-17  Eric Blake  <ebb9@byu.net>
52104
52105         * lib/sigprocmask.c (sigprocmask): Fix typo.
52106
52107         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52108
52109         * modules/clean-temp (Makefile.am): Don't add to make output...
52110         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52111         config.h.
52112
52113 2006-10-17  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52116         differently if DEFAULT_TEXT_DOMAIN is set.
52117
52118 2006-10-16  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/clean-temp.c: Include fwriteerror.h.
52121
52122 2006-10-16  Bruno Haible  <bruno@clisp.org>
52123
52124         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52125
52126 2006-10-16  Bruno Haible  <bruno@clisp.org>
52127
52128         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52129         * lib/sigprocmask.h: Include <sys/types.h>.
52130         (sigset_t): Use the system's definition if present.
52131
52132 2006-10-17  Eric Blake  <ebb9@byu.net>
52133
52134         * lib/xvasprintf.c (includes): Assume config.h.
52135         * lib/xasprintf.c (includes): Likewise.
52136
52137 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52140         at least as wide as intmax_t.
52141
52142 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52143
52144         (Imported from Automake.)
52145         * build-aux/gnupload: Update to version 1.1 of directive file.
52146
52147 2006-10-16  Eric Blake  <ebb9@byu.net>
52148
52149         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52150         match Automake 1.10a.
52151
52152 2006-10-14  Bruno Haible  <bruno@clisp.org>
52153
52154         * modules/sigprocmask: New file.
52155         * lib/sigprocmask.h: New file.
52156         * lib/sigprocmask.c: New file.
52157         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52158         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52159         request sigprocmask.o.
52160         (gl_PREREQ_SIGPROCMASK): New macro.
52161         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52162         (Depends-on): Add sigprocmask.
52163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52164         gt_SIGNALBLOCKING. Test for 'raise' only once.
52165         * lib/fatal-signal.c: Include sigprocmask.h.
52166         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52167         unblock_fatal_signals): Define always.
52168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52169         sigprocmask.
52170
52171 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52172
52173         Sync from Automake.
52174         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52175         which incorrectly sets the mode of an existing destination
52176         directory.  In some cases the unpatched install-sh could do the
52177         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52178         system.  We hope this is rare in practice, but it's clearly worth
52179         fixing.  Problem reported by Alex Unleashed in
52180         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52181         Also, don't bother to check for -m bugs unless we're using -m;
52182         suggested by Stepan Kasal.
52183
52184 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52185
52186         Sync from Automake.
52187         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52188         `-c' flag, so they appear at the same position as in %FASTDEP%
52189         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52190         which ignores unknown options only after the first non-option.
52191         Bug report against M4 by Nelson H. F. Beebe.
52192
52193 2006-10-13  Jim Meyering  <jim@meyering.net>
52194
52195         Fix a bug in yesterday's change.
52196         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52197         p->fts_statp->st_dev would be used uninitialized.
52198         Ensures that we always call fts_stat on the very first entry.
52199         Miklos Szeredi reported that find -xdev stopped working.
52200
52201 2006-10-12  Bruno Haible  <bruno@clisp.org>
52202
52203         * gnulib-tool (func_get_automake_snippet): Append an automatically
52204         computed EXTRA_DIST augmentation.
52205         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52206         * modules/alloca-opt (Makefile.am): Likewise.
52207         * modules/allocsa (Makefile.am): Likewise.
52208         * modules/arcfour (Makefile.am): Likewise.
52209         * modules/arctwo (Makefile.am): Likewise.
52210         * modules/argmatch (Makefile.am): Likewise.
52211         * modules/argz (Makefile.am): Likewise.
52212         * modules/atexit (Makefile.am): Likewise.
52213         * modules/backupfile (Makefile.am): Likewise.
52214         * modules/byteswap (Makefile.am): Likewise.
52215         * modules/c-strtod (Makefile.am): Likewise.
52216         * modules/c-strtold (Makefile.am): Likewise.
52217         * modules/calloc (Makefile.am): Likewise.
52218         * modules/canon-host (Makefile.am): Likewise.
52219         * modules/canonicalize (Makefile.am): Likewise.
52220         * modules/chdir-long (Makefile.am): Likewise.
52221         * modules/chdir-safer (Makefile.am): Likewise.
52222         * modules/check-version (Makefile.am): Likewise.
52223         * modules/chown (Makefile.am): Likewise.
52224         * modules/cloexec (Makefile.am): Likewise.
52225         * modules/close-stream (Makefile.am): Likewise.
52226         * modules/closeout (Makefile.am): Likewise.
52227         * modules/crc (Makefile.am): Likewise.
52228         * modules/csharpexec (Makefile.am): Likewise.
52229         * modules/cycle-check (Makefile.am): Likewise.
52230         * modules/des (Makefile.am): Likewise.
52231         * modules/dev-ino (Makefile.am): Likewise.
52232         * modules/dirfd (Makefile.am): Likewise.
52233         * modules/dirname (Makefile.am): Likewise.
52234         * modules/dup2 (Makefile.am): Likewise.
52235         * modules/eealloc (Makefile.am): Likewise.
52236         * modules/error (Makefile.am): Likewise.
52237         * modules/euidaccess (Makefile.am): Likewise.
52238         * modules/exclude (Makefile.am): Likewise.
52239         * modules/exitfail (Makefile.am): Likewise.
52240         * modules/fcntl-safer (Makefile.am): Likewise.
52241         * modules/fcntl (Makefile.am): Likewise.
52242         * modules/file-type (Makefile.am): Likewise.
52243         * modules/fileblocks (Makefile.am): Likewise.
52244         * modules/filemode (Makefile.am): Likewise.
52245         * modules/filenamecat (Makefile.am): Likewise.
52246         * modules/fnmatch (Makefile.am): Likewise.
52247         * modules/fopen-safer (Makefile.am): Likewise.
52248         * modules/fpending (Makefile.am): Likewise.
52249         * modules/fprintftime (Makefile.am): Likewise.
52250         * modules/free (Makefile.am): Likewise.
52251         * modules/fsusage (Makefile.am): Likewise.
52252         * modules/ftruncate (Makefile.am): Likewise.
52253         * modules/fts (Makefile.am): Likewise.
52254         * modules/gc-arcfour (Makefile.am): Likewise.
52255         * modules/gc-des (Makefile.am): Likewise.
52256         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52257         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52258         * modules/gc-md4 (Makefile.am): Likewise.
52259         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52260         * modules/gc-sha1 (Makefile.am): Likewise.
52261         * modules/gc (Makefile.am): Likewise.
52262         * modules/getaddrinfo (Makefile.am): Likewise.
52263         * modules/getcwd (Makefile.am): Likewise.
52264         * modules/getdelim (Makefile.am): Likewise.
52265         * modules/getdomainname (Makefile.am): Likewise.
52266         * modules/getgroups (Makefile.am): Likewise.
52267         * modules/gethostname (Makefile.am): Likewise.
52268         * modules/gethrxtime (Makefile.am): Likewise.
52269         * modules/getline (Makefile.am): Likewise.
52270         * modules/getloadavg (Makefile.am): Likewise.
52271         * modules/getlogin_r (Makefile.am): Likewise.
52272         * modules/getndelim2 (Makefile.am): Likewise.
52273         * modules/getopt (Makefile.am): Likewise.
52274         * modules/getpagesize (Makefile.am): Likewise.
52275         * modules/getpass-gnu (Makefile.am): Likewise.
52276         * modules/getpass (Makefile.am): Likewise.
52277         * modules/getsubopt (Makefile.am): Likewise.
52278         * modules/gettime (Makefile.am): Likewise.
52279         * modules/gettimeofday (Makefile.am): Likewise.
52280         * modules/getugroups (Makefile.am): Likewise.
52281         * modules/getusershell (Makefile.am): Likewise.
52282         * modules/glob (Makefile.am): Likewise.
52283         * modules/group-member (Makefile.am): Likewise.
52284         * modules/hard-locale (Makefile.am): Likewise.
52285         * modules/hash (Makefile.am): Likewise.
52286         * modules/hmac-md5 (Makefile.am): Likewise.
52287         * modules/hmac-sha1 (Makefile.am): Likewise.
52288         * modules/human (Makefile.am): Likewise.
52289         * modules/idcache (Makefile.am): Likewise.
52290         * modules/imaxabs (Makefile.am): Likewise.
52291         * modules/imaxdiv (Makefile.am): Likewise.
52292         * modules/inet_ntop (Makefile.am): Likewise.
52293         * modules/inet_pton (Makefile.am): Likewise.
52294         * modules/intprops (Makefile.am): Likewise.
52295         * modules/inttostr (Makefile.am): Likewise.
52296         * modules/inttypes (Makefile.am): Likewise.
52297         * modules/isapipe (Makefile.am): Likewise.
52298         * modules/javaversion (Makefile.am): Likewise.
52299         * modules/lchmod (Makefile.am): Likewise.
52300         * modules/lchown (Makefile.am): Likewise.
52301         * modules/localcharset (Makefile.am): Likewise.
52302         * modules/long-options (Makefile.am): Likewise.
52303         * modules/lstat (Makefile.am): Likewise.
52304         * modules/malloc (Makefile.am): Likewise.
52305         * modules/mathl (Makefile.am): Likewise.
52306         * modules/mbchar (Makefile.am): Likewise.
52307         * modules/md2 (Makefile.am): Likewise.
52308         * modules/md4 (Makefile.am): Likewise.
52309         * modules/md5 (Makefile.am): Likewise.
52310         * modules/memcasecmp (Makefile.am): Likewise.
52311         * modules/memchr (Makefile.am): Likewise.
52312         * modules/memcmp (Makefile.am): Likewise.
52313         * modules/memcoll (Makefile.am): Likewise.
52314         * modules/memcpy (Makefile.am): Likewise.
52315         * modules/memmem (Makefile.am): Likewise.
52316         * modules/memmove (Makefile.am): Likewise.
52317         * modules/mempcpy (Makefile.am): Likewise.
52318         * modules/memrchr (Makefile.am): Likewise.
52319         * modules/memset (Makefile.am): Likewise.
52320         * modules/memxor (Makefile.am): Likewise.
52321         * modules/mkancesdirs (Makefile.am): Likewise.
52322         * modules/mkdir-p (Makefile.am): Likewise.
52323         * modules/mkdir (Makefile.am): Likewise.
52324         * modules/mkdtemp (Makefile.am): Likewise.
52325         * modules/mkstemp (Makefile.am): Likewise.
52326         * modules/mktime (Makefile.am): Likewise.
52327         * modules/modechange (Makefile.am): Likewise.
52328         * modules/mountlist (Makefile.am): Likewise.
52329         * modules/nanosleep (Makefile.am): Likewise.
52330         * modules/obstack (Makefile.am): Likewise.
52331         * modules/openat (Makefile.am): Likewise.
52332         * modules/pagealign_alloc (Makefile.am): Likewise.
52333         * modules/pathmax (Makefile.am): Likewise.
52334         * modules/physmem (Makefile.am): Likewise.
52335         * modules/poll (Makefile.am): Likewise.
52336         * modules/posixtm (Makefile.am): Likewise.
52337         * modules/posixver (Makefile.am): Likewise.
52338         * modules/putenv (Makefile.am): Likewise.
52339         * modules/quote (Makefile.am): Likewise.
52340         * modules/quotearg (Makefile.am): Likewise.
52341         * modules/raise (Makefile.am): Likewise.
52342         * modules/read-file (Makefile.am): Likewise.
52343         * modules/readline (Makefile.am): Likewise.
52344         * modules/readlink (Makefile.am): Likewise.
52345         * modules/readtokens (Makefile.am): Likewise.
52346         * modules/readutmp (Makefile.am): Likewise.
52347         * modules/realloc (Makefile.am): Likewise.
52348         * modules/regex (Makefile.am): Likewise.
52349         * modules/rename-dest-slash (Makefile.am): Likewise.
52350         * modules/rename (Makefile.am): Likewise.
52351         * modules/rijndael (Makefile.am): Likewise.
52352         * modules/rmdir (Makefile.am): Likewise.
52353         * modules/rpmatch (Makefile.am): Likewise.
52354         * modules/safe-read (Makefile.am): Likewise.
52355         * modules/safe-write (Makefile.am): Likewise.
52356         * modules/same-inode (Makefile.am): Likewise.
52357         * modules/same (Makefile.am): Likewise.
52358         * modules/save-cwd (Makefile.am): Likewise.
52359         * modules/savedir (Makefile.am): Likewise.
52360         * modules/setenv (Makefile.am): Likewise.
52361         * modules/settime (Makefile.am): Likewise.
52362         * modules/sha1 (Makefile.am): Likewise.
52363         * modules/sig2str (Makefile.am): Likewise.
52364         * modules/snprintf (Makefile.am): Likewise.
52365         * modules/stat-macros (Makefile.am): Likewise.
52366         * modules/stat-time (Makefile.am): Likewise.
52367         * modules/stdbool (Makefile.am): Likewise.
52368         * modules/stdint (Makefile.am): Likewise.
52369         * modules/stdlib-safer (Makefile.am): Likewise.
52370         * modules/stpcpy (Makefile.am): Likewise.
52371         * modules/stpncpy (Makefile.am): Likewise.
52372         * modules/strcase (Makefile.am): Likewise.
52373         * modules/strcasestr (Makefile.am): Likewise.
52374         * modules/strchrnul (Makefile.am): Likewise.
52375         * modules/strcspn (Makefile.am): Likewise.
52376         * modules/strdup (Makefile.am): Likewise.
52377         * modules/strerror (Makefile.am): Likewise.
52378         * modules/strftime (Makefile.am): Likewise.
52379         * modules/strndup (Makefile.am): Likewise.
52380         * modules/strnlen (Makefile.am): Likewise.
52381         * modules/strpbrk (Makefile.am): Likewise.
52382         * modules/strsep (Makefile.am): Likewise.
52383         * modules/strstr (Makefile.am): Likewise.
52384         * modules/strtod (Makefile.am): Likewise.
52385         * modules/strtoimax (Makefile.am): Likewise.
52386         * modules/strtok_r (Makefile.am): Likewise.
52387         * modules/strtol (Makefile.am): Likewise.
52388         * modules/strtoll (Makefile.am): Likewise.
52389         * modules/strtoul (Makefile.am): Likewise.
52390         * modules/strtoull (Makefile.am): Likewise.
52391         * modules/strtoumax (Makefile.am): Likewise.
52392         * modules/strverscmp (Makefile.am): Likewise.
52393         * modules/sys_socket (Makefile.am): Likewise.
52394         * modules/sys_stat (Makefile.am): Likewise.
52395         * modules/sysexits (Makefile.am): Likewise.
52396         * modules/time_r (Makefile.am): Likewise.
52397         * modules/timegm (Makefile.am): Likewise.
52398         * modules/timespec (Makefile.am): Likewise.
52399         * modules/tmpfile-safer (Makefile.am): Likewise.
52400         * modules/trim (Makefile.am): Likewise.
52401         * modules/unistd-safer (Makefile.am): Likewise.
52402         * modules/unlinkdir (Makefile.am): Likewise.
52403         * modules/unlocked-io (Makefile.am): Likewise.
52404         * modules/userspec (Makefile.am): Likewise.
52405         * modules/utime (Makefile.am): Likewise.
52406         * modules/utimecmp (Makefile.am): Likewise.
52407         * modules/utimens (Makefile.am): Likewise.
52408         * modules/vasnprintf (Makefile.am): Likewise.
52409         * modules/vasprintf (Makefile.am): Likewise.
52410         * modules/vsnprintf (Makefile.am): Likewise.
52411         * modules/xalloc (Makefile.am): Likewise.
52412         * modules/xgetcwd (Makefile.am): Likewise.
52413         * modules/xnanosleep (Makefile.am): Likewise.
52414         * modules/xreadlink (Makefile.am): Likewise.
52415         * modules/xstrtod (Makefile.am): Likewise.
52416         * modules/xstrtol (Makefile.am): Likewise.
52417         * modules/xstrtold (Makefile.am): Likewise.
52418         * modules/yesno (Makefile.am): Likewise.
52419         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52420
52421 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * modules/error (Makefile.am): Distribute files through
52424         EXTRA_DIST, not lib_SOURCES.
52425
52426 2006-10-12  Eric Blake  <ebb9@byu.net>
52427
52428         * modules/error (Makefile.am): Distribute files in /lib.
52429         * modules/obstack (Makefile.am): Likewise.
52430
52431 2006-10-12  Bruno Haible  <bruno@clisp.org>
52432
52433         * modules/acl (Makefile.am): Distribute all files in lib/ through
52434         EXTRA_DIST.
52435         * modules/arcfour (Makefile.am): Likewise.
52436         * modules/arctwo (Makefile.am): Likewise.
52437         * modules/argmatch (Makefile.am): Likewise.
52438         * modules/argz (Makefile.am): Likewise.
52439         * modules/atexit (Makefile.am): Likewise.
52440         * modules/backupfile (Makefile.am): Likewise.
52441         * modules/c-strtod (Makefile.am): Likewise.
52442         * modules/c-strtold (Makefile.am): Likewise.
52443         * modules/calloc (Makefile.am): Likewise.
52444         * modules/canon-host (Makefile.am): Likewise.
52445         * modules/canonicalize (Makefile.am): Likewise.
52446         * modules/chdir-long (Makefile.am): Likewise.
52447         * modules/chdir-safer (Makefile.am): Likewise.
52448         * modules/check-version (Makefile.am): Likewise.
52449         * modules/chown (Makefile.am): Likewise.
52450         * modules/cloexec (Makefile.am): Likewise.
52451         * modules/close-stream (Makefile.am): Likewise.
52452         * modules/closeout (Makefile.am): Likewise.
52453         * modules/crc (Makefile.am): Likewise.
52454         * modules/cycle-check (Makefile.am): Likewise.
52455         * modules/des (Makefile.am): Likewise.
52456         * modules/dirfd (Makefile.am): Likewise.
52457         * modules/dirname (Makefile.am): Likewise.
52458         * modules/dup2 (Makefile.am): Likewise.
52459         * modules/euidaccess (Makefile.am): Likewise.
52460         * modules/exclude (Makefile.am): Likewise.
52461         * modules/exitfail (Makefile.am): Likewise.
52462         * modules/fcntl-safer (Makefile.am): Likewise.
52463         * modules/file-type (Makefile.am): Likewise.
52464         * modules/fileblocks (Makefile.am): Likewise.
52465         * modules/filemode (Makefile.am): Likewise.
52466         * modules/filenamecat (Makefile.am): Likewise.
52467         * modules/fnmatch (Makefile.am): Likewise.
52468         * modules/fopen-safer (Makefile.am): Likewise.
52469         * modules/fpending (Makefile.am): Likewise.
52470         * modules/fprintftime (Makefile.am): Likewise.
52471         * modules/free (Makefile.am): Likewise.
52472         * modules/fsusage (Makefile.am): Likewise.
52473         * modules/ftruncate (Makefile.am): Likewise.
52474         * modules/fts (Makefile.am): Likewise.
52475         * modules/gc (Makefile.am): Likewise.
52476         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52477         * modules/getaddrinfo (Makefile.am): Likewise.
52478         * modules/getcwd (Makefile.am): Likewise.
52479         * modules/getdelim (Makefile.am): Likewise.
52480         * modules/getdomainname (Makefile.am): Likewise.
52481         * modules/getgroups (Makefile.am): Likewise.
52482         * modules/gethostname (Makefile.am): Likewise.
52483         * modules/gethrxtime (Makefile.am): Likewise.
52484         * modules/getline (Makefile.am): Likewise.
52485         * modules/getloadavg (Makefile.am): Likewise.
52486         * modules/getlogin_r (Makefile.am): Likewise.
52487         * modules/getopt (Makefile.am): Likewise.
52488         * modules/getpass (Makefile.am): Likewise.
52489         * modules/getpass-gnu (Makefile.am): Likewise.
52490         * modules/getsubopt (Makefile.am): Likewise.
52491         * modules/gettime (Makefile.am): Likewise.
52492         * modules/gettimeofday (Makefile.am): Likewise.
52493         * modules/getugroups (Makefile.am): Likewise.
52494         * modules/getusershell (Makefile.am): Likewise.
52495         * modules/glob (Makefile.am): Likewise.
52496         * modules/group-member (Makefile.am): Likewise.
52497         * modules/hard-locale (Makefile.am): Likewise.
52498         * modules/hash (Makefile.am): Likewise.
52499         * modules/hmac-md5 (Makefile.am): Likewise.
52500         * modules/hmac-sha1 (Makefile.am): Likewise.
52501         * modules/human (Makefile.am): Likewise.
52502         * modules/idcache (Makefile.am): Likewise.
52503         * modules/imaxabs (Makefile.am): Likewise.
52504         * modules/imaxdiv (Makefile.am): Likewise.
52505         * modules/inet_ntop (Makefile.am): Likewise.
52506         * modules/inet_pton (Makefile.am): Likewise.
52507         * modules/inttostr (Makefile.am): Likewise.
52508         * modules/isapipe (Makefile.am): Likewise.
52509         * modules/lchown (Makefile.am): Likewise.
52510         * modules/long-options (Makefile.am): Likewise.
52511         * modules/lstat (Makefile.am): Likewise.
52512         * modules/malloc (Makefile.am): Likewise.
52513         * modules/mathl (Makefile.am): Likewise.
52514         * modules/mbchar (Makefile.am): Likewise.
52515         * modules/md2 (Makefile.am): Likewise.
52516         * modules/md4 (Makefile.am): Likewise.
52517         * modules/md5 (Makefile.am): Likewise.
52518         * modules/memcasecmp (Makefile.am): Likewise.
52519         * modules/memchr (Makefile.am): Likewise.
52520         * modules/memcmp (Makefile.am): Likewise.
52521         * modules/memcoll (Makefile.am): Likewise.
52522         * modules/memcpy (Makefile.am): Likewise.
52523         * modules/memmem (Makefile.am): Likewise.
52524         * modules/memmove (Makefile.am): Likewise.
52525         * modules/mempcpy (Makefile.am): Likewise.
52526         * modules/memrchr (Makefile.am): Likewise.
52527         * modules/memset (Makefile.am): Likewise.
52528         * modules/memxor (Makefile.am): Likewise.
52529         * modules/mkancesdirs (Makefile.am): Likewise.
52530         * modules/mkdir (Makefile.am): Likewise.
52531         * modules/mkdir-p (Makefile.am): Likewise.
52532         * modules/mkdtemp (Makefile.am): Likewise.
52533         * modules/mkstemp (Makefile.am): Likewise.
52534         * modules/mktime (Makefile.am): Likewise.
52535         * modules/modechange (Makefile.am): Likewise.
52536         * modules/mountlist (Makefile.am): Likewise.
52537         * modules/nanosleep (Makefile.am): Likewise.
52538         * modules/openat (Makefile.am): Likewise.
52539         * modules/pagealign_alloc (Makefile.am): Likewise.
52540         * modules/physmem (Makefile.am): Likewise.
52541         * modules/poll (Makefile.am): Likewise.
52542         * modules/posixtm (Makefile.am): Likewise.
52543         * modules/posixver (Makefile.am): Likewise.
52544         * modules/putenv (Makefile.am): Likewise.
52545         * modules/quote (Makefile.am): Likewise.
52546         * modules/quotearg (Makefile.am): Likewise.
52547         * modules/raise (Makefile.am): Likewise.
52548         * modules/read-file (Makefile.am): Likewise.
52549         * modules/readline (Makefile.am): Likewise.
52550         * modules/readlink (Makefile.am): Likewise.
52551         * modules/readtokens (Makefile.am): Likewise.
52552         * modules/readutmp (Makefile.am): Likewise.
52553         * modules/realloc (Makefile.am): Likewise.
52554         * modules/regex (Makefile.am): Likewise.
52555         * modules/rename (Makefile.am): Likewise.
52556         * modules/rename-dest-slash (Makefile.am): Likewise.
52557         * modules/rijndael (Makefile.am): Likewise.
52558         * modules/rmdir (Makefile.am): Likewise.
52559         * modules/rpmatch (Makefile.am): Likewise.
52560         * modules/safe-read (Makefile.am): Likewise.
52561         * modules/safe-write (Makefile.am): Likewise.
52562         * modules/same (Makefile.am): Likewise.
52563         * modules/save-cwd (Makefile.am): Likewise.
52564         * modules/savedir (Makefile.am): Likewise.
52565         * modules/setenv (Makefile.am): Likewise.
52566         * modules/settime (Makefile.am): Likewise.
52567         * modules/sha1 (Makefile.am): Likewise.
52568         * modules/sig2str (Makefile.am): Likewise.
52569         * modules/snprintf (Makefile.am): Likewise.
52570         * modules/stdlib-safer (Makefile.am): Likewise.
52571         * modules/stpcpy (Makefile.am): Likewise.
52572         * modules/stpncpy (Makefile.am): Likewise.
52573         * modules/strcase (Makefile.am): Likewise.
52574         * modules/strcasestr (Makefile.am): Likewise.
52575         * modules/strchrnul (Makefile.am): Likewise.
52576         * modules/strcspn (Makefile.am): Likewise.
52577         * modules/strdup (Makefile.am): Likewise.
52578         * modules/strerror (Makefile.am): Likewise.
52579         * modules/strftime (Makefile.am): Likewise.
52580         * modules/strndup (Makefile.am): Likewise.
52581         * modules/strnlen (Makefile.am): Likewise.
52582         * modules/strpbrk (Makefile.am): Likewise.
52583         * modules/strsep (Makefile.am): Likewise.
52584         * modules/strstr (Makefile.am): Likewise.
52585         * modules/strtod (Makefile.am): Likewise.
52586         * modules/strtoimax (Makefile.am): Likewise.
52587         * modules/strtok_r (Makefile.am): Likewise.
52588         * modules/strtol (Makefile.am): Likewise.
52589         * modules/strtoll (Makefile.am): Likewise.
52590         * modules/strtoul (Makefile.am): Likewise.
52591         * modules/strtoull (Makefile.am): Likewise.
52592         * modules/strtoumax (Makefile.am): Likewise.
52593         * modules/strverscmp (Makefile.am): Likewise.
52594         * modules/time_r (Makefile.am): Likewise.
52595         * modules/timegm (Makefile.am): Likewise.
52596         * modules/tmpfile-safer (Makefile.am): Likewise.
52597         * modules/unistd-safer (Makefile.am): Likewise.
52598         * modules/unlinkdir (Makefile.am): Likewise.
52599         * modules/userspec (Makefile.am): Likewise.
52600         * modules/utime (Makefile.am): Likewise.
52601         * modules/utimecmp (Makefile.am): Likewise.
52602         * modules/utimens (Makefile.am): Likewise.
52603         * modules/vasnprintf (Makefile.am): Likewise.
52604         * modules/vasprintf (Makefile.am): Likewise.
52605         * modules/vsnprintf (Makefile.am): Likewise.
52606         * modules/xalloc (Makefile.am): Likewise.
52607         * modules/xgetcwd (Makefile.am): Likewise.
52608         * modules/xnanosleep (Makefile.am): Likewise.
52609         * modules/xreadlink (Makefile.am): Likewise.
52610         * modules/xstrtod (Makefile.am): Likewise.
52611         * modules/xstrtol (Makefile.am): Likewise.
52612         * modules/xstrtold (Makefile.am): Likewise.
52613         * modules/yesno (Makefile.am): Likewise.
52614
52615 2006-10-12  Jim Meyering  <jim@meyering.net>
52616
52617         * m4/getloadavg.m4: Revert the change below.
52618
52619         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52620         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52621         fail with a symlink, which is what coreutils' ./bootstrap now
52622         creates by default.
52623
52624 2006-10-12  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52627         mingw.
52628         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52629         MSVC and mingw explicitly.
52630
52631 2006-10-11  Simon Josefsson  <jas@extundo.com>
52632             Bruno Haible  <bruno@clisp.org>
52633
52634         Add support for multiple gnulib-tool invocations in the scope of a
52635         single configure.ac file.
52636         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52637         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52638         with the same contents as the _LIBADD variable.
52639         (func_emit_initmacro_start, func_emit_initmacro_end,
52640         func_emit_initmacro_done): New functions.
52641         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52642         gl_LIBOBJS and gl_LTLIBOBJS.
52643
52644 2006-10-11  Bruno Haible  <bruno@clisp.org>
52645
52646         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52647         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52648         autoreconf. Instead, invoke autopoint explicitly but move back the
52649         *.m4 files from gnulib.
52650
52651 2006-10-11  Bruno Haible  <bruno@clisp.org>
52652
52653         * gnulib-tool (func_usage): Make module names after --create-testdir
52654         optional.
52655         (func_create_testdir): If no module was specified, use nearly all
52656         modules.
52657
52658 2006-10-12  Jim Meyering  <jim@meyering.net>
52659
52660         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52661         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52662         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52663         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52664         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52665         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52666         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52667         (fts_set_stat_required): New function.
52668         (fts_open): Defer the calls to fts_stat, if possible or requested.
52669         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52670         into fts_stat itself.
52671         (fts_read): Perform any required (deferred) fts_stat call.
52672         (fts_build): Likewise, for the directory we're about to open and read.
52673         In the readdir loop, carefully decide whether each entry will require
52674         an eventual call to fts_stat, using dirent.d_type info if available.
52675         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52676         a command line argument into this function.  Update all callers.
52677         Map a return value of FTS_DOT to FTS_D for a command line argument.
52678         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52679         Thanks to Miklos Szeredi for his tenacity and for the initial
52680         bug report about "find" failing on a FUSE-based file system.
52681
52682         * lib/fts.c (fts_open): Use consistent indentation.
52683
52684 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52685
52686         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52687         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52688         reported by Jim Meyering.  All uses of cache variables renamed
52689         to match Autoconf's.
52690         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52691         the other one.
52692
52693         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52694         Fix misspelling in diagnostic.
52695
52696 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52699         defined.  Problem reported by Matthew Woehlke.
52700
52701         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52702         Add support for Tandem NonStop R series.
52703         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52704         Use new macro.
52705
52706         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52707         (has_trailing_slash): Omit size arg; all callers changed.
52708         Omit 'inline', since it doesn't help performance and we'd
52709         need to configure it.
52710         Don't count //, ///, etc. as having a trailing slash.
52711         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52712         (rpl_rename_dest_slash): On failure, use rename's errno rather
52713         than (in some cases) an incorrect or junk errno.
52714         Simplify code by removing need to compute length; this does
52715         cause it to make two passes instead of one over the file name,
52716         but it's worth it.
52717
52718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52719         change, since Autoconf's version may no longer be appropriate now
52720         that we are using CVS Autoconf's version.  Add support for Tandem.
52721
52722 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52723             Bruno Haible  <bruno@clisp.org>
52724
52725         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52726         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52727         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52728         gl_AC_TYPE_LONG_LONG.
52729
52730         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52731         instead of HAVE_LONG_LONG.
52732         * lib/printf-args.c (printf_fetchargs): Likewise.
52733         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52734         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52735         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52736         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52737         gl_AC_TYPE_LONG_LONG.
52738
52739 2006-10-11  Bruno Haible  <bruno@clisp.org>
52740
52741         * m4/longlong.m4: Add comments.
52742         * m4/ulonglong.m4: Likewise.
52743
52744 2006-10-10  Bruno Haible  <bruno@clisp.org>
52745
52746         Make it possible to #define stpcpy, strdup to aliases.
52747         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52748         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52749
52750 2006-10-10  Bruno Haible  <bruno@clisp.org>
52751
52752         Make it possible to #define gcd to an alias.
52753         * lib/gcd.c: Include config.h.
52754
52755 2006-10-10  Bruno Haible  <bruno@clisp.org>
52756
52757         Make it possible to #define c_isascii to an alias.
52758         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52759         defined. Undefine the macros before defining them, to avoid gcc
52760         warnings.
52761         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52762         define NO_C_CTYPE_MACROS early.
52763
52764 2006-10-10  Bruno Haible  <bruno@clisp.org>
52765
52766         Make it possible to #define set_program_name to an alias.
52767         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52768         ENABLE_RELOCATABLE early.
52769
52770 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52773         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52774         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52775         More generally, don't assume that 64-bit signed int is available
52776         if unsigned int is, and vice versa.
52777         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52778         unsigned symbols, not on their signed counterparts.
52779         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52780         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52781         (UINT64_C, UINTMAX_C):
52782         Likewise.
52783         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52784         unsigned counterparts.
52785         (Have_long_long, Unsigned): New macros.
52786         (Int): Renamed from INT.
52787         (strtoimax): Use the new macros.
52788         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52789         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52790         * modules/inttypes (inttypes.h): Substitute
52791         HAVE_UNSIGNED_LONG_LONG_INT.
52792         * modules/stdint (stdint.h): Likewise.
52793         (Files): Add m4/ulonglong.m4.
52794
52795 2006-10-10  Bruno Haible  <bruno@clisp.org>
52796
52797         Fix a gcc -Wshadow warning.
52798         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52799         to 'bucket'.
52800         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52801         gl_linked_indexof_from_to): Likewise.
52802         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52803         Likewise.
52804         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52805         Likewise.
52806         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52807         Reported by Eric Blake.
52808
52809 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52812         for NetBSD.  Problem reported by Bruno Haible.
52813
52814 2006-10-09  Jim Meyering  <jim@meyering.net>
52815
52816         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52817         Patch from Bruno Haible.
52818
52819 2006-10-09  Jim Meyering  <jim@meyering.net>
52820
52821         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52822         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52823         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52824
52825 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         Don't include <config.h> twice; this doesn't work in some cases,
52828         e.g., when config.h has "#define intmax_t long long int" and
52829         we include <config.h>, <inttypes.h>, <config.h> in that order.
52830         Problem reported by Matthew Woehlke in:
52831         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52832         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52833         * lib/fts-cycle.c: Don't include config.h.
52834         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52835         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52836         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52837         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52838         inttypes.h.
52839         * lib/xstrtoumax.c: Likewise.
52840         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52841         __strtol and the like, so that this module is more like its siblings.
52842         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52843         Remove; no longer needed now that we assume gnulib inttypes.h.
52844
52845 2006-10-08  Bruno Haible  <bruno@clisp.org>
52846
52847         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52848         option.
52849
52850 2006-10-07  Jim Meyering  <jim@meyering.net>
52851
52852         * modules/inttypes (inttypes.h): Revert what seems to have been
52853         an inadvertent part of today's change: use "|", not "/" in the
52854         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52855
52856 2006-10-07  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/sublist: New file.
52859
52860 2006-10-07  Bruno Haible  <bruno@clisp.org>
52861
52862         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52863         * modules/argz (argz.h): Likewise.
52864         * modules/arpa_inet (arpa/inet.h): Likewise.
52865         * modules/byteswap (byteswap.h): Likewise.
52866         * modules/configmake (configmake.h): Likewise.
52867         * modules/fcntl (fcntl.h): Likewise.
52868         * modules/fnmatch (fnmatch.h): Likewise.
52869         * modules/getopt (getopt.h): Likewise.
52870         * modules/glob (glob.h): Likewise.
52871         * modules/inttypes (inttypes.h): Likewise.
52872         * modules/netinet_in (netinet/in.h): Likewise.
52873         * modules/poll (poll.h): Likewise.
52874         * modules/stdbool (stdbool.h): Likewise.
52875         * modules/stdint (stdint.h): Likewise.
52876         * modules/sys_select (sys/select.h): Likewise.
52877         * modules/sys_socket (sys/socket.h): Likewise.
52878         * modules/sys_stat (sys/stat.h): Likewise.
52879         * modules/sysexits (sysexits.h): Likewise.
52880         * modules/unistd (unistd.h): Likewise.
52881         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52882         Add a "DO NOT EDIT" comment to the generated file.
52883         (func_import): Likewise for gnulib-comp.m4.
52884
52885 2006-10-07  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/gl_sublist.h: New file.
52888         * lib/gl_sublist.c: New file.
52889
52890 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52893         name (relative to the original working directory) and the file
52894         name component (relative to the temporary working directory).  All
52895         callers changed.
52896         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52897         * lib/mkdir-p.c (make_dir_parents): Likewise.
52898         * lib/mkdir-p.h (make_dir_parents): Likewise.
52899
52900 2006-10-06  Eric Blake  <ebb9@byu.net>
52901
52902         Define several macros for use by the clean-temp module.
52903         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52904         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52905         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52906
52907         * lib/clean-temp.h (close_stream_temp): New declaration.
52908         * lib/clean-temp.c (includes): Pull in headers according to what
52909         other modules are in use.
52910         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52911
52912 2006-10-06  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52915         instead of fopen, fwriteerror.
52916
52917 2006-10-06  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52920         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52921         int.
52922         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52923         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52924         Return an error indicator.
52925         Suggested by Eric Blake.
52926
52927 2006-10-06  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52930         Reported by Eric Blake.
52931
52932 2006-10-06  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/closeout (Description): Mention stderr too.
52935
52936 2006-10-06  Bruno Haible  <bruno@clisp.org>
52937         and Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * lib/closeout.c (close_stdout): Also close stderr.
52940         * lib/closeout.h: Update comment.
52941
52942 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52945         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52946         * lib/dirchownmod.c: Include lchown.h.
52947         * lib/lchown.c: Don't include files that lchown.h now includes.
52948         Don't declare chown, since lchown.h now does that.
52949         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52950         (lchown): Define to rpl_chown if lchown is declared but
52951         does not exist.  Declare using a prototype if lchown is not
52952         declared.  Add a copyright notice.
52953         * lib/mkstemp.h: Include <unistd.h>.
52954         * lib/openat.c: Include lchown.h.
52955
52956         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52957         we now test for that separately.
52958         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52959         rather than O_NOFOLLOW, when testing whether it's possible to
52960         avoid a race condition reliably.
52961         * lib/savewd.c (savewd_chdir): Likewise.
52962
52963         Remove macros that are no longer needed now that stdint.h is
52964         reliable.
52965         * lib/fsusage.c (UINTMAX_MAX): Remove.
52966         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52967         * lib/utimecmp.c (SIZE_MAX): Remove.
52968
52969         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52970
52971         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52972         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52973         O_NOATIME works.
52974
52975 2006-10-05  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/gl_list.h (gl_sortedlist_search_from_to,
52978         gl_sortedlist_indexof_from_to): New declarations.
52979         (gl_list_implementation): New fields sortedlist_search_from_to,
52980         sortedlist_indexof_from_to.
52981         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52982         inline functions.
52983         * lib/gl_list.c (gl_sortedlist_search_from_to,
52984         gl_sortedlist_indexof_from_to): New functions.
52985         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52986         function.
52987         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52988         (gl_array_sortedlist_search_from_to): New function.
52989         (gl_array_list_implementation): Update.
52990         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52991         function.
52992         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52993         (gl_carray_sortedlist_search_from_to): New function.
52994         (gl_carray_list_implementation): Update.
52995         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52996         gl_linked_sortedlist_indexof_from_to): New functions.
52997         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52998         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52999         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53000         gl_tree_sortedlist_indexof_from_to): New functions.
53001         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53002         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53003         Update.
53004         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53005         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53006         Update.
53007
53008 2006-10-05  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53011         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53012         (struct gl_list_implementation): Add fields search_from_to,
53013         indexof_from_to. Remove fields search, indexof.
53014         (gl_list_search): Use the search_from_to method.
53015         (gl_list_search_from, gl_list_search_from_to): New functions.
53016         (gl_list_indexof): Use the indexof_from_to method.
53017         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53018         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53019         (gl_list_search_from, gl_list_search_from_to): New functions.
53020         (gl_list_indexof): Use the indexof_from_to method.
53021         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53022         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53023         gl_array_indexof. Add start_index, end_index arguments.
53024         (gl_array_search_from_to): Renamed from gl_array_search. Add
53025         start_index, end_index arguments.
53026         (gl_array_remove, gl_array_list_implementation): Update.
53027         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53028         gl_carray_indexof. Add start_index, end_index arguments.
53029         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53030         start_index, end_index arguments.
53031         (gl_carray_remove, gl_carray_list_implementation): Update.
53032         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53033         gl_linked_search. Add start_index, end_index arguments.
53034         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53035         start_index, end_index arguments.
53036         (gl_linked_remove): Update.
53037         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53038         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53039         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53040         field to 'size_t'.
53041         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53042         gl_tree_search. Add start_index, end_index arguments.
53043         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53044         start_index, end_index arguments.
53045         (gl_tree_remove): Update.
53046         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53047         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53048         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53049         function.
53050         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53051         gl_tree_search. Add start_index, end_index arguments.
53052         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53053         start_index, end_index arguments.
53054         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53055         Update.
53056         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53057
53058 2006-10-05  Bruno Haible  <bruno@clisp.org>
53059
53060         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53061
53062         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53063         fwriteerror_temp): New declarations.
53064         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53065         (descriptors): New variable.
53066         (cleanup): First, close the descriptors.
53067         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53068         fclose_temp, fwriteerror_temp): New functions.
53069
53070 2006-10-04  Jim Meyering  <jim@meyering.net>
53071
53072         * lib/fts.c (fts_open): Tiny comment change.
53073
53074 2006-10-04  Bruno Haible  <bruno@clisp.org>
53075
53076         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53077         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53078         gl_LOCK_BODY.
53079         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53080         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53081         gl_LOCK_EARLY_BODY.
53082         (gl_LOCK): Require gl_LOCK_BODY.
53083
53084 2006-10-04  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53087         (gl_oset_search_atleast): New declaration.
53088         (struct gl_oset_implementation): Add field 'search_atleast'.
53089         (gl_oset_search_atleast): New inline function.
53090         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53091         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53092         (gl_array_oset_implementation): Update.
53093         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53094         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53095         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53096
53097 2006-10-04  Bruno Haible  <bruno@clisp.org>
53098
53099         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53100
53101 2006-10-03  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53104         from gl_avltreehash_list_implementation.
53105
53106 2006-10-03  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/gl_oset.c (gl_oset_add): Fix return type.
53109
53110 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53111
53112         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53113
53114 2006-10-02  Eric Blake  <ebb9@byu.net>
53115
53116         * modules/strnlen (Depends-on): Add extensions.
53117
53118 2006-10-02  Eric Blake  <ebb9@byu.net>
53119
53120         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53121         definition in 2.60+.
53122
53123 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53124
53125         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53126         checks.
53127
53128 2006-10-02  Bruno Haible  <bruno@clisp.org>
53129
53130         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53131         to the AUTOMAKE_OPTIONS.
53132         Reported by Jim Meyering.
53133
53134 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         Work around bug in Solaris 10 /proc file system:
53137         /proc/self/fd/NNN/.. isn't the parent directory of
53138         the directory whose file descriptor is NNN.  This needs to
53139         be worked around at run time, not compile time, since a
53140         program might be built on Solaris 8, where things work, and
53141         run on Solaris 10.
53142         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53143         to use the following interface instead:
53144         (OPENAT_BUFFER_SIZE): New macro.
53145         (openat_proc_name): New function.
53146         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53147         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53148         Likewise.
53149         * lib/openat-proc.c: New file.
53150         * modules/openat (Files): Add lib/openat-proc.c.
53151         (Depends-on): Add same-inode, stdbool.
53152         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53153
53154 2006-09-29  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53157         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53158         argument. Set stdout_closed before testing for ferror, not after.
53159         (fwriteerror, fwriteerror_no_ebadf): New functions.
53160
53161 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53162
53163         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53164
53165 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53166
53167         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53168         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53169
53170 2006-09-28  Jim Meyering  <jim@meyering.net>
53171
53172         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53173         Include <unistd.h>.
53174
53175 2006-09-28  Bruno Haible  <bruno@clisp.org>
53176
53177         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53178         * modules/linkedhash-list (Depends-on): Likewise.
53179         * modules/rbtreehash-list (Depends-on): Likewise.
53180
53181 2006-09-28  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/strndup.h: Simplify the redefinition of strndup.
53184         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53185         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53186
53187 2006-09-28  Bruno Haible  <bruno@clisp.org>
53188
53189         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53190         * lib/gl_linkedhash_list.c: Likewise.
53191         * lib/gl_rbtreehash_list.c: Likewise.
53192
53193 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53194
53195         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53196         getaddrinfo.
53197
53198         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53199         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53200         it causes <stdio_ext.h> to cause a compile-time error.
53201         Problem reported by Nelson H. F. Beebe.
53202         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53203         of HAVE_DECL___PENDING.
53204
53205         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53206         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53207         declaration.
53208
53209 2006-09-27  Jim Meyering  <jim@meyering.net>
53210
53211         This file could end up with a definition for a function
53212         named __strndup, rather than rpl_strndup on a system with
53213         incomplete weak_alias support.
53214         * lib/strndup.c (strndup): Rename from __strndup.
53215         Remove #defines that used to map __strndup to strndup.
53216         Don't use K&R prototypes.
53217         Remove LIBC-related code, since this file is not sync'd with glibc.
53218         * lib/strndup.h: Revamp, accordingly.
53219         * m4/strndup.m4: Modernize.
53220
53221 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * modules/savewd (Depends-on): Add 'raise'.
53224         * lib/savewd.c: Include <signal.h>, for 'raise'.
53225
53226 2006-09-26  Jim Meyering  <jim@meyering.net>
53227
53228         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53229         when we detect Darwin 8.7.0's acl_get_file bug.
53230         Rearrange to perform the new (below) run-test while $LIBS
53231         contains any acl-related library.  Set USE_ACL at the end.
53232         (gl_ACL_GET_FILE): New function.
53233
53234 2006-09-26  Eric Blake  <ebb9@byu.net>
53235
53236         * lib/verror.c: Include <config.h> unconditionally.
53237
53238 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         * modules/clock-time (Maintainer): Add self.
53241         * modules/getlogin_r (Depends-on): Add extensions.
53242
53243 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53244
53245         * modules/clock-time: New module.
53246         * modules/nanosleep (Depends-on): Add clock-time.
53247         * modules/gethrxtime (Depends-on): Likewise.
53248         * modules/gettime (Depends-on): Likewise.
53249         * modules/settime (Depends-on): Likewise.
53250
53251         * modules/fts-lgpl: Depend on openat.
53252         * modules/mkancesdirs: Depend on savewd.
53253         * modules/mkdir-p: Likewise.
53254
53255 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53256
53257         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53258
53259         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53260         `gl_have_arbitrary_file_name_length_limit' to
53261         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53262         actually works between configure runs.
53263
53264 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53265             Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53268
53269 2006-09-25  Jim Meyering  <jim@meyering.net>
53270
53271         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53272         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53273
53274 2006-09-25  Eric Blake  <ebb9@byu.net>
53275
53276         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53277         exec's in 2006-09-18 patch when shuffling fds.
53278
53279 2006-09-25  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53282         Reported by Jim Meyering.
53283
53284 2006-09-24  Jim Meyering  <jim@meyering.net>
53285
53286         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53287         compare a pointer against a literal "0".  That caused failures with
53288         at least HP-UX's hpcc.
53289
53290 2006-09-22  Simon Josefsson  <jas@extundo.com>
53291
53292         * modules/gc-sha1:
53293         * modules/gc-md4:
53294         * modules/gc-hmac-sha1:
53295         * modules/gc-hmac-md5:
53296         * modules/gc-des:
53297         * modules/gc-arcfour: Distribute more files.
53298
53299 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53300
53301         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
53302         (gl_linked_iterator_from_to): Initialize struct completely.
53303         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
53304         (gl_tree_iterator_from_to): Likewise
53305         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
53306         * lib/gl_array_list.c [lint] (gl_array_iterator)
53307         (gl_array_iterator_from_to): Likewise.
53308         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
53309         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
53310         (gl_carray_iterator_from_to): Likewise.
53311
53312         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
53313         * lib/md4.c (md4_process_block): Remove unused variable.
53314         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
53315         parentheses for clarity.
53316
53317 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53318
53319         * modules/bison-i18n (Depends-on): Add gettext.
53320
53321 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53322
53323         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
53324         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
53325         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
53326         also add missing comma that caused broken test.
53327         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
53328         stdlib.h, for `abort'.
53329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
53330         variables.
53331         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
53332         include unistd.h if present, for `rmdir'.
53333         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
53334         variables.
53335         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53336         in the process include standard headers for prototypes.
53337         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53338         gets declared on GNU/Linux.
53339         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53340         unistd.h, for `rmdir'.
53341         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53342
53343         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53344         always true.
53345         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53346
53347         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53348
53349 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53350
53351         * gnulib-tool (func_version): Create output all at once.  This
53352         may help avoid triggering unnecessary SIGPIPEs, and at any
53353         rate it doesn't hurt.
53354
53355 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53356             Bruno Haible  <bruno@clisp.org>
53357
53358         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53359         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53360         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53361
53362         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53363         (gl_FUNC_VASPRINTF): Invoke it.
53364
53365 2006-09-22  Bruno Haible  <bruno@clisp.org>
53366
53367         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53368         getloadavg.c as first argument.
53369
53370 2006-09-22  Bruno Haible  <bruno@clisp.org>
53371
53372         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53373         at the beginning of the gl_INIT macro.
53374         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53375         gl_GETLOADAVG.
53376
53377 2006-09-22  Bruno Haible  <bruno@clisp.org>
53378
53379         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53380         module.
53381         Suggested by Ralf Wildenhues.
53382
53383 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         Import this patch from libc:
53386
53387         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53388
53389         * lib/regex_internal.c (re_string_reconstruct): Handle
53390         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53391         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53392         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53393         re_string_context_at.
53394
53395         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53396         now requires it.
53397         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53398         gl_REGEX now does it for us.
53399         (gl_REGEX): Add test taken from
53400         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53401
53402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53403         Check that large offsets work.  Modernize Autoconf usages.
53404         Prefer "yes" to mean a good thing rather than a bad.
53405         Don't put "#define mkstemp" in config.h, as this might interfere
53406         with standard system headers that "#define mkstemp mkstemp64".
53407
53408         * modules/mkstemp (Depends-on): Add extensions, so that
53409         mkstemp is visible on some platforms.
53410         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53411         (Include): Change to "mkstemp.h" from <stdlib.h>.
53412         (Files): Add mkstemp.h.
53413
53414         * lib/mkstemp.h: New file, since some standard headers
53415         #define mkstemp.
53416         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53417         Include "mkstemp.h".
53418         Make the _LIBC code resemble glibc original more,
53419         e.g., use K&R style.
53420         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53421         (mkstemp): Remove, since mkstemp.h does this for us.
53422         * lib/stdlib--.h: Include mkstemp.h.
53423
53424         Import this patch from libc:
53425
53426         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53427
53428         * lib/tempname.c (__gen_tempname): Change attempts_min
53429         into a macro.  Use preprocessor to decide how to initialize
53430         attempts [Coverity CID 67].
53431
53432 2006-09-20  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/mkdtemp.c: Import from libc.
53435         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53436                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53437                 attempts_min into a macro.  Use preprocessor to decide how to
53438                 initialize attempts [Coverity CID 67].
53439         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53440                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53441                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53442
53443 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53444
53445         * gnulib-tool (func_exit): New function, to allow to pass the
53446         exit status portably through the trap.  Use everywhere.
53447         (--help, --version): Signal a write error.
53448         (trap): catch SIGPIPE, for write errors.
53449         Exit at the end of the trap, with the correct exit status.
53450
53451 2006-09-19  Karl Berry  <karl@gnu.org>
53452
53453         * doc/gnulib.texi: note about the license texinfo files.
53454
53455 2006-09-19  Eric Blake  <ebb9@byu.net>
53456
53457         * gnulib-tool: Avoid space-tab.
53458
53459 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53460
53461         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53462         that prevented coreutils 6.1 from building.  Problem reported
53463         by Petter Reinholdtsen.
53464
53465 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53466
53467         * gnulib-tool (avoidlist): Fix typo that broke options like
53468         --avoid=lock that are used by coreutils bootstrap.
53469
53470 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53471
53472         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53473         more systematically.
53474
53475 2006-09-18  Jim Meyering  <jim@meyering.net>
53476
53477         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53478
53479 2006-09-18  Bruno Haible  <bruno@clisp.org>
53480
53481         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53482
53483 2006-09-18  Bruno Haible  <bruno@clisp.org>
53484
53485         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53486         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53487         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53488         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53489         * m4/gettext.m4: Require autoconf >= 2.52.
53490         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53491         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53492         of gl_cv_header_inttypes_h.
53493
53494 2006-09-18  Bruno Haible  <bruno@clisp.org>
53495
53496         * lib/javaversion.c: Include configmake.h.
53497
53498 2006-09-18  Bruno Haible  <bruno@clisp.org>
53499
53500         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53501         avoid that the while loops be executed in a subshell.
53502
53503 2006-09-18  Bruno Haible  <bruno@clisp.org>
53504
53505         * MODULES.html.sh (func_module): Break long lines.
53506         Suggested by Bruce Korb <bkorb@gnu.org>.
53507
53508 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53509
53510         Speed up by a factor of 1.12.
53511         * gnulib-tool (nl): New variable.
53512         (func_import): Rewrite include directive extraction to only read each
53513         directive once.
53514
53515 2006-09-17  Bruno Haible  <bruno@clisp.org>
53516
53517         * modules/javaversion (Makefile.am): Remove DEFS setting.
53518         (Depends-on): Add configmake, for PKGDATADIR definition.
53519
53520 2006-09-17  Bruno Haible  <bruno@clisp.org>
53521
53522         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53523
53524 2006-09-17  Bruno Haible  <bruno@clisp.org>
53525
53526         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53527         (func_modules_transitive_closure, func_modules_add_dummy,
53528         func_modules_to_filelist, func_import, func_create_testdir,
53529         func_create_megatestdir, ...): Use it wherever possible.
53530         Suggested by Ralf Wildenhues.
53531
53532 2006-09-16  Karl Berry  <karl@gnu.org>
53533
53534         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53535         to avoid sectioning errors.
53536         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53537         [ifinfo]: blank line after @center-ed titles.
53538         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53539         Spell FSF address consistently with others.
53540         (These changes approved by rms.)
53541
53542 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53543
53544         Speed up by a factor of 1.61.
53545         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53546         already checked module names again.
53547
53548 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53549
53550         Speed up by a factor of 1.13.
53551         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53552         for new_files, and the input to func_add_or_update.
53553
53554 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53555
53556         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53557         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53558
53559 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * modules/mkancesdirs (Depends-on): Add fcntl.
53562         * modules/savewd: New file.
53563         * MODULES.html.sh (File system functions): Add savewd.
53564
53565         * modules/configmake (Makefile.am): Add support for the
53566         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53567
53568 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         * m4/savewd.m4: New file.
53571
53572 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53573
53574         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53575         (dirchownmod): New arg FD.  All callers changed.
53576         Use FD rather than opening the directory ourself, as opening is
53577         now the caller's responsibility.
53578         * lib/dirchownmod.h: Likewise.
53579         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53580         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53581         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53582         (test_dir): Remove.
53583         (mkancesdirs): Return length of prefix of FILE that has already
53584         been made, or -2 if there is a child doing the work.  Redo
53585         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53586         ".", and treat ".." specially since it might stray back into
53587         already-created areas.  Use a subprocess if necessary.  New arg
53588         WD; all users changed.  MAKE_DIR function should now return 1
53589         if it creates a directory that is not readable.  Return -2 if
53590         a child process is spun off.
53591         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53592         Adjust signature to match code.
53593         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53594         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53595         all users changed.
53596         * lib/savewd.c, lib/savewd.h: New files.
53597
53598 2006-09-15  Jim Meyering  <jim@meyering.net>
53599
53600         * modules/rename-dest-slash: New module.
53601         * MODULES.html.sh (posix_compat): Add it here.
53602
53603         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53604
53605 2006-09-15  Jim Meyering  <jim@meyering.net>
53606
53607         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53608         file.
53609
53610         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53611
53612 2006-09-15  Jim Meyering  <jim@meyering.net>
53613
53614         * lib/rename-dest-slash.c (has_trailing_slash): Use
53615         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53616         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53617         test before testing whether SRC is a directory.
53618         Suggestions from Bruno Haible.
53619
53620         Avoid a warning about an unused variable.
53621         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53622         into the #ifdef block where it's used.
53623
53624         * lib/rename-dest-slash.c: New file.
53625
53626 2006-09-14  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/allocsa.c: Include <config.h> unconditionally.
53629         * lib/asnprintf.c: Likewise.
53630         * lib/asprintf.c: Likewise.
53631         * lib/c-strcasecmp.c: Likewise.
53632         * lib/c-strcasestr.c: Likewise.
53633         * lib/c-strncasecmp.c: Likewise.
53634         * lib/c-strstr.c: Likewise.
53635         * lib/classpath.c: Likewise.
53636         * lib/clean-temp.c: Likewise.
53637         * lib/concatpath.c: Likewise.
53638         * lib/copy-file.c: Likewise.
53639         * lib/csharpcomp.c: Likewise.
53640         * lib/csharpexec.c: Likewise.
53641         * lib/execute.c: Likewise.
53642         * lib/fatal-signal.c: Likewise.
53643         * lib/findprog.c: Likewise.
53644         * lib/fwriteerror.c: Likewise.
53645         * lib/gl_array_list.c: Likewise.
53646         * lib/gl_array_oset.c: Likewise.
53647         * lib/gl_avltree_list.c: Likewise.
53648         * lib/gl_avltree_oset.c: Likewise.
53649         * lib/gl_avltreehash_list.c: Likewise.
53650         * lib/gl_carray_list.c: Likewise.
53651         * lib/gl_linked_list.c: Likewise.
53652         * lib/gl_linkedhash_list.c: Likewise.
53653         * lib/gl_list.c: Likewise.
53654         * lib/gl_oset.c: Likewise.
53655         * lib/gl_rbtree_list.c: Likewise.
53656         * lib/gl_rbtree_oset.c: Likewise.
53657         * lib/gl_rbtreehash_list.c: Likewise.
53658         * lib/imaxabs.c: Likewise.
53659         * lib/imaxdiv.c: Likewise.
53660         * lib/javacomp.c: Likewise.
53661         * lib/javaexec.c: Likewise.
53662         * lib/javaversion.c: Likewise.
53663         * lib/linebreak.c: Likewise.
53664         * lib/localcharset.c: Likewise.
53665         * lib/lock.c: Likewise.
53666         * lib/mbchar.c: Likewise.
53667         * lib/mbswidth.c: Likewise.
53668         * lib/mkdtemp.c: Likewise.
53669         * lib/pipe.c: Likewise.
53670         * lib/printf-args.c: Likewise.
53671         * lib/printf-parse.c: Likewise.
53672         * lib/progname.c: Likewise.
53673         * lib/progreloc.c: Likewise.
53674         * lib/readlink.c: Likewise.
53675         * lib/sh-quote.c: Likewise.
53676         * lib/stpcpy.c: Likewise.
53677         * lib/stpncpy.c: Likewise.
53678         * lib/strcasecmp.c: Likewise.
53679         * lib/strcasestr.c: Likewise.
53680         * lib/strcspn.c: Likewise.
53681         * lib/striconv.c: Likewise.
53682         * lib/strncasecmp.c: Likewise.
53683         * lib/strnlen1.c: Likewise.
53684         * lib/strstr.c: Likewise.
53685         * lib/strtok_r.c: Likewise.
53686         * lib/tls.c: Likewise.
53687         * lib/tmpdir.c: Likewise.
53688         * lib/unicodeio.c: Likewise.
53689         * lib/unsetenv.c: Likewise.
53690         * lib/vasnprintf.c: Likewise.
53691         * lib/vasprintf.c: Likewise.
53692         * lib/wait-process.c: Likewise.
53693         * lib/xallocsa.c: Likewise.
53694         * lib/xsetenv.c: Likewise.
53695         * lib/xstriconv.c: Likewise.
53696
53697 2006-09-13  Simon Josefsson  <jas@extundo.com>
53698
53699         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53700         that internally, suggested by Ralf Wildenhues
53701         <Ralf.Wildenhues@gmx.de>.
53702
53703 2006-09-13  Simon Josefsson  <jas@extundo.com>
53704
53705         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53706         @LIBOBJS@.
53707         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53708
53709 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53710
53711         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53712         longer worry about uses that don't define HAVE_CONFIG_H.
53713         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53714         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53715         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53716         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53717         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53718         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53719         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53720         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53721         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53722         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53723         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53724         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53725         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53726         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53727         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53728         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53729         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53730         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53731         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53732         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53733         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53734         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53735         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53736         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53737         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53738         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53739         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53740         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53741         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53742         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53743         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53744         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53745         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53746         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53747         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53748         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53749         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53750         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53751         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53752         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53753         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53754         Likewise.
53755
53756 2006-09-13  Eric Blake  <ebb9@byu.net>
53757
53758         * lib/getopt.c: Fix typo in last commit.
53759
53760 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53761
53762         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53763         dgettext.
53764
53765 2006-09-12  Jim Meyering  <jim@meyering.net>
53766
53767         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53768         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53769         Reported by Nelson H. F. Beebe.
53770
53771 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53772
53773         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53774         program_invocation_name and program_invocation_short_name are
53775         initialized.
53776         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53777         and program_invocation_short_name to argp.h, so they are visible
53778         to user programs.
53779         * lib/argp.h: Likewise
53780
53781 2006-09-10  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53784         m4/inttypes_h.m4, m4/uintmax_t.m4.
53785
53786 2006-09-10  Bruno Haible  <bruno@clisp.org>
53787
53788         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53789         gl_AC_TYPE_UINTMAX_T.
53790
53791 2006-09-10  Bruno Haible  <bruno@clisp.org>
53792
53793         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53794
53795 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53796
53797         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53798         convention.  Text proposed by Bruno Haible.
53799         (struct argp_option): Document the use of N_() wrappers.
53800
53801         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53802         '\v', and translate the two parts separately, instead of feeding
53803         the whole string to gettext.  This allows to exclude
53804         '\v' from the strings visible to the translator by writing doc
53805         strings as N_("..") "\v" N_("..").
53806
53807 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * config/srclist.txt: Undo latest change; the bug was fixed.
53810
53811 2006-09-09  Bruno Haible  <bruno@clisp.org>
53812
53813         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53814         assignments if building a library without libtool.
53815         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53816         in func_emit_lib_Makefile_am.
53817         (func_import): When building a static library libfoo.a, arrange to
53818         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53819         (func_create_testdir): Likewise.
53820         * modules/gc (configure.ac, Makefile.am): If building statically,
53821         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53822         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53823         * modules/striconv (configure.ac, Makefile.am): Likewise.
53824         Based on a suggestion by Ralf Wildenhues.
53825
53826 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53827
53828         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53829         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53830         Also:
53831
53832         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53833         Add year_2050_test to catch glibc bug 2821
53834         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53835
53836         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53837         Prefer #ifdef to #if.
53838
53839         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53840         Return from 'main' instead of calling 'exit'.
53841
53842 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53845         returned the maximum time_t value rather than (time_t) -1.
53846         Problem originally reported by William Bardwell
53847         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53848
53849         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53850         Moved to here ...
53851         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53852         ... from here.
53853
53854 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53857         2821 is fixed.
53858
53859 2006-09-08  Jim Meyering  <jim@meyering.net>
53860
53861         Don't make generated files read-only.  That would bother too many
53862         people.  However, do retain the ability to work when targets are
53863         read-only: remove the destination and temporary files before writing
53864         them (when generated via sed or echo), or by using the -f option for
53865         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53866         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53867         * modules/byteswap, modules/configmake, modules/fcntl:
53868         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53869         * modules/localcharset, modules/netinet_in, modules/poll:
53870         * modules/stdbool, modules/stdint, modules/sys_select:
53871         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53872
53873 2006-09-08  Jim Meyering  <jim@meyering.net>
53874
53875         Avoid new build failure on FreeBSD 6.0.
53876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53877         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53878         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53879
53880 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53881
53882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53883
53884 2006-09-07  Jim Meyering  <jim@meyering.net>
53885
53886         Fix global typo in last change: use chmod u-w, not chmod u-x.
53887         Spotted by Paul Eggert and Bruce Korb.
53888         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53889         * modules/byteswap, modules/configmake, modules/fcntl:
53890         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53891         * modules/localcharset, modules/netinet_in, modules/poll:
53892         * modules/stdbool, modules/stdint, modules/sys_select:
53893         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53894
53895 2006-09-06  Jim Meyering  <jim@meyering.net>
53896
53897         Make generated files be read-only.
53898         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53899         Ensure that each generated file is now read-only.
53900         * modules/argz: Likewise.
53901         * modules/arpa_inet: Likewise.
53902         * modules/byteswap: Likewise.
53903         * modules/configmake: Likewise.
53904         * modules/fcntl: Likewise.
53905         * modules/fnmatch: Likewise.
53906         * modules/getopt: Likewise.
53907         * modules/glob: Likewise.
53908         * modules/inttypes: Likewise.
53909         * modules/netinet_in: Likewise.
53910         * modules/poll: Likewise.
53911         * modules/stdbool: Likewise.
53912         * modules/stdint: Likewise.
53913         * modules/sys_select: Likewise.
53914         * modules/sys_socket: Likewise.
53915         * modules/sys_stat: Likewise.
53916         * modules/sysexits: Likewise.
53917         * modules/localcharset: Same as above, but continue using temporary
53918         file named "t-$@" (why different?) rather than the "$@-t" used
53919         everywhere else.
53920
53921         * modules/sysexits (Makefile.am): Replace literal occurrences
53922         of "sysexit.h" more readable, and more consistent, "$@".
53923
53924 2006-09-06  Bruno Haible  <bruno@clisp.org>
53925
53926         * modules/striconv: New file.
53927         * modules/xstriconv: New file.
53928         * MODULES.html.sh (Internationalization functions): Add striconv,
53929         xstriconv.
53930
53931 2006-09-06  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53934         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53935         not using libtool correctly.
53936
53937 2006-09-06  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/striconv.h: New file.
53940         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53941         iconvstring.c.
53942         * lib/xstriconv.h: New file.
53943         * lib/xstriconv.c: New file.
53944
53945 2006-09-06  Bruno Haible  <bruno@clisp.org>
53946
53947         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53948         lib_..._LDFLAGS.
53949
53950 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53951
53952         * lib/argz_.h: Sync from Libtool.
53953
53954         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53955                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53956
53957         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53958
53959 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53960
53961         * modules/trim: New file.
53962
53963 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53964
53965         * lib/trim.h: New file.
53966         * lib/trim.c: New file.
53967
53968 2006-09-05  Bruno Haible  <bruno@clisp.org>
53969
53970         * MODULES.html.sh (String handling): Add trim.
53971
53972 2006-09-04  Karl Berry  <karl@gnu.org>
53973
53974         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53975         until next release.
53976
53977 2006-09-03  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53980         correctly.
53981
53982 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53983
53984         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53985         not gl_GETLOADAVG.  Omit unneeded semicolons.
53986         Problems reported by Ralf Wildenhues in
53987         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53988         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53989         at the end, which is the usual gnulib style.
53990
53991         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53992         of doing all the work ourselves.
53993         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53994         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53995
53996 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53999         Problem reported by Ralf Wildenhues in
54000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54001
54002         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54003         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54004
54005 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54008         yesterday's patch by changing test -n to test -z.
54009
54010 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54013         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54014         the former is now obsolescent.
54015
54016         * modules/chdir-long (Depends-on): Add fcntl.
54017
54018 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54021         obsolescent, and programs should use gnulib instead.
54022         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54023         but with prefixes changed.
54024
54025 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54028         or stdbool.h, because they might not exist while configuring.
54029
54030         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54031         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54032         does that for us.
54033         (O_DIRECTORY): Remove.
54034
54035 2006-08-31  Eric Blake  <ebb9@byu.net>
54036
54037         * gnulib-tool: Don't let emacs change spaces to TAB.
54038
54039 2006-08-31  Bruno Haible  <bruno@clisp.org>
54040
54041         * gnulib-tool: When calling func_import more than once, do it in a
54042         subshell.
54043         Reported by Eric Blake <ebb9@byu.net>.
54044
54045 2006-08-31  Bruno Haible  <bruno@clisp.org>
54046
54047         * gnulib-tool (nl): Remove variable.
54048         (sed_transform_lib_file): Use more robust test for config-h module.
54049         (func_import): Fix typo in 2006-08-25 patch.
54050
54051 2006-08-31  Bruno Haible  <bruno@clisp.org>
54052
54053         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54054         specified, augment Makefile.am variables instead of assigning them.
54055
54056 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54057
54058         Work around a bug in both the Linux and SunOS 64-bit kernels:
54059         nanosleep mishandles sleeps for longer than 2**31 seconds.
54060         Problem reported by Frank v Waveren in
54061         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54063         Check for nanosleep bug.
54064         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54065
54066 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         Work around a bug in both the Linux and SunOS 64-bit kernels:
54069         nanosleep mishandles sleeps for longer than 2**31 seconds.
54070         Problem reported by Frank v Waveren in
54071         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54072         * lib/nanosleep.c (BILLION): New constant.
54073         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54074         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54075         implementation.
54076
54077 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * modules/nanosleep (Depends-on): Add gettime.
54080
54081 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54082         and Simon Josefsson  <jas@extundo.com>
54083         and Oskar Liljeblad  <oskar@osk.mine.nu>
54084
54085         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54086         * gnulib-tool (func_import): New license type 'unmodifiable license
54087         text'.
54088         * modules/fdl: Use it.  Longer description.
54089         * module/gpl, module/lgpl: New files.
54090
54091 2006-08-30  Jim Meyering  <jim@meyering.net>
54092
54093         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54094         shadowing the parameter.
54095
54096 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54097
54098         Sync from Libtool:
54099
54100         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54101
54102         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54103         sharing with gnulib.  Report by Eric Blake.
54104
54105 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * modules/isapipe: New file.
54108         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54109
54110 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54111
54112         * modules/configmake (Makefile.am): Add a comment, and omit
54113         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54114         by Bruno Haible.
54115
54116 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * m4/isapipe.m4: New file.
54119
54120 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54121
54122         * lib/isapipe.c, lib/isapipe.h: New files.
54123
54124 2006-08-29  Jim Meyering  <jim@meyering.net>
54125
54126         * modules/configmake (Makefile.am): Make configmake.h depend on
54127         Makefile.  Otherwise, a stale configmake.h could hang around.
54128
54129 2006-08-29  Eric Blake  <ebb9@byu.net>
54130
54131         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54132         resolution of upstream bug 3044.
54133
54134 2006-08-29  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/localcharset (Depends-on): Add configmake.
54137         (Makefile.am): Remove setting of LIBDIR through DEFS.
54138
54139 2006-08-29  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54142         defined.
54143
54144 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         * modules/fcntl: New file.
54147         * modules/chdir-safer (Depends-on): Add fcntl.
54148         * modules/fts: Likewise.
54149         * modules/mkdir-p: Likewise.
54150
54151         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54152         This undoes the most recent change, since we're now addressing the
54153         problem in a different way.
54154
54155         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54156         into output, since the output might be called Makefile.am even
54157         if $makefile_name is something different.
54158         (func_import): Use $makefile_am rather than
54159         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54160         empty.
54161
54162         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54163
54164 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54165
54166         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54167         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54168         recent change to stdint.m4, since we're now addressing the problem in a
54169         different way.
54170
54171 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54172
54173         * m4/fcntl_h.m4: New file.
54174
54175 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         * lib/fcntl_.h: New file.
54178         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54179         the fcntl module.
54180         * lib/dirchownmod.c: Likewise.
54181         * lib/fts.c: Likewise.
54182
54183         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54184         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54185         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54186         just before including <inttypes.h>, to avoid circular inclusion.
54187
54188 2006-08-28  Jim Meyering  <jim@meyering.net>
54189
54190         * doc/visibility.texi: Actually read and correct the grammar of the
54191         sentence affected by yesterday's change.
54192
54193 2006-08-28  Eric Blake  <ebb9@byu.net>
54194
54195         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54196         needs wrapper.
54197
54198 2006-08-28  Eric Blake  <ebb9@byu.net>
54199
54200         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54201
54202 2006-08-28  Eric Blake  <ebb9@byu.net>
54203
54204         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54205
54206 2006-08-28  Bruno Haible  <bruno@clisp.org>
54207
54208         * modules/c-strstr: New file, from GNU gettext.
54209         * MODULES.html.sh (String handling): Add c-strstr.
54210
54211 2006-08-28  Bruno Haible  <bruno@clisp.org>
54212
54213         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54214         macros.
54215         Reported by Eric Blake.
54216
54217 2006-08-28  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54220         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54221         * lib/vasprintf.c: Include errno.h, limits.h.
54222         (EOVERFLOW): New fallback definition.
54223         (vasprintf): Test here whether the string length is > INT_MAX.
54224         * lib/vsnprintf.c: Include errno.h, limits.h.
54225         (EOVERFLOW): New fallback definition.
54226         (vsnprintf): Fix bug when generated string was too long for the buffer.
54227         Test here whether the string length is > INT_MAX.
54228
54229 2006-08-28  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/inttypes_.h (SCNX*): Remove definitions.
54232         Reported by Eric Blake.
54233
54234 2006-08-28  Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/c-strstr.h: New file, from GNU gettext.
54237         * lib/c-strstr.c: New file, from GNU gettext.
54238
54239 2006-08-28  Bruno Haible  <bruno@clisp.org>
54240
54241         * gnulib-tool: Reorder some statements.
54242
54243 2006-08-28  Bruno Haible  <bruno@clisp.org>
54244
54245         * gnulib-tool: New option --makefile-name.
54246         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54247         $makefile_name.
54248         (func_import): Write $makefile_name to the cache file, and read it from
54249         there unless explicitly specified. Use $makefile_name as file name
54250         instead of Makefile.am. Adjust the recommendations accordingly.
54251
54252 2006-08-28  Bruno Haible  <bruno@clisp.org>
54253
54254         * gnulib-tool (func_verify_module): Check against misapplying patch.
54255
54256 2006-08-28  Bruno Haible  <bruno@clisp.org>
54257
54258         * gnulib-tool (func_relativize, func_relconcat): New functions.
54259         Give an error if --local-dir is given with --update.
54260         Remove trailing slashes from $local_gnulib_dir.
54261         (func_import): Store the relativized $local_gnulib_dir in
54262         gnulib-cache.m4, and read it from there if not specified explicitly.
54263
54264 2006-08-28  Bruno Haible  <bruno@clisp.org>
54265
54266         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54267         is the current directory. Respect also $local_gnulib_dir.
54268
54269 2006-08-28  Bruno Haible  <bruno@clisp.org>
54270             Simon Josefsson  <jas@extundo.com>
54271
54272         BeOS portability.
54273         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54274
54275 2006-08-27  Jim Meyering  <jim@meyering.net>
54276
54277         * doc/visibility.texi: Remove duplicate word: "pointer".
54278
54279 2006-08-26  Bruno Haible  <bruno@clisp.org>
54280
54281         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54282         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54283         (Makefile.am): Create inttypes.h from inttypes_.h.
54284         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54285
54286         * modules/imaxabs: New file.
54287
54288         * modules/imaxdiv: New file.
54289
54290 2006-08-26  Bruno Haible  <bruno@clisp.org>
54291
54292         * m4/inttypes.m4: New file.
54293         * m4/_inttypes_h.m4: Remove file.
54294         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
54295         PRI_MACROS_BROKEN.
54296         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
54297
54298         * m4/imaxabs.m4: New file.
54299
54300         * m4/imaxdiv.m4: New file.
54301
54302 2006-08-26  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/inttypes_.h: New file.
54305         * lib/inttypes.h: Remove file.
54306         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
54307
54308         * lib/imaxabs.c: New file.
54309
54310         * lib/imaxdiv.c: New file.
54311
54312 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         New config-h module, so that "make" output needn't be cluttered
54315         by -DHAVE_CONFIG_H.
54316         * MODULES.html.sh (Support for building libraries and executables):
54317         Add config-h.
54318         * modules/config-h: New file.
54319         * gnulib-tool (nl, sed_transform_lib_file): New vars.
54320         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
54321         the config-h module is used.
54322
54323         New configmake module, so that "make" output needn't be cluttered
54324         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
54325         * MODULES.html.sh (Support for building libraries and executables):
54326         Add configmake.
54327         * modules/configmake: New file.
54328
54329 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54330
54331         * m4/config-h.m4: New file.
54332
54333 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         * config/srclist.txt: Add elisp-comp.
54336
54337 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         * MODULES.html.sh (Support for building libraries and executables):
54340         Add elisp-comp.
54341         * build-aux/elisp-comp: New file.
54342         * modules/elisp-comp: New file.
54343
54344 2006-08-24  Bruno Haible  <bruno@clisp.org>
54345
54346         * gnulib-tool (func_create_testdir): Use non-default values of
54347         sourcebase and m4base.
54348
54349 2006-08-24  Bruno Haible  <bruno@clisp.org>
54350
54351         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54352         HTML structure.
54353
54354 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * modules/openat (Depends-on): Add lchown.
54357
54358 2006-08-23  Bruno Haible  <bruno@clisp.org>
54359
54360         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54361         of gl_LOCK_EARLY instead of gl_LOCK.
54362
54363 2006-08-23  Bruno Haible  <bruno@clisp.org>
54364
54365         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54366         on OSF/1 to no.
54367         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54368
54369 2006-08-23  Bruno Haible  <bruno@clisp.org>
54370
54371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54372         as unusable.
54373
54374         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54375         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54376         (gl_LOCK): New macro.
54377
54378 2006-08-22  Simon Josefsson  <jas@extundo.com>
54379
54380         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54381         to md5 module.
54382
54383 2006-08-22  Simon Josefsson  <jas@extundo.com>
54384
54385         * MODULES.html.sh: Add "Support for maintaining and release
54386         projects".
54387
54388         * build-aux/gnupload: New file, from coreutils.
54389
54390 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54391
54392         Avoid the need for AC_LIBSOURCES in m4 macros.
54393         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54394         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54395         * modules/check-version (EXTRA_DIST): Add check-version.h.
54396         * modules/crc (EXTRA_DIST): Add crc.h.
54397         * modules/des (EXTRA_DIST): Add des.h.
54398         * modules/gc (EXTRA_DIST): Add gc.h.
54399         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54400         * modules/getline (EXTRA_DIST): Add getline.h.
54401         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54402         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54403         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54404         * modules/md2 (EXTRA_DIST): Add md2.h.
54405         * modules/md4 (EXTRA_DIST): Add md4.h.
54406         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54407         * modules/read-file (EXTRA_DIST): Add read-file.h.
54408         * modules/readline (EXTRA_DIST): Add readline.h.
54409         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54410         rijndael-api-fst.h.
54411
54412 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54413
54414         * m4/rijndael.m4 (gl_ARCFOUR):
54415         * m4/arctwo.m4 (gl_ARCTWO):
54416         * m4/check-version.m4 (gl_CHECK_VERSION):
54417         * m4/crc.m4 (gl_CRC):
54418         * m4/des.m4 (gl_DES):
54419         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54420         * m4/gc.m4 (gl_GC):
54421         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54422         * m4/getline.m4 (gl_FUNC_GETLINE):
54423         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54424         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54425         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54426         * m4/md2.m4 (gl_MD2):
54427         * m4/md4.m4 (gl_MD4):
54428         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54429         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54430         * m4/readline.m4 (gl_FUNC_READLINE):
54431         * m4/rijndael.m4 (gl_RIJNDAEL):
54432         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54433         to get the necessary .h files and whatnot.
54434
54435 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54438         gnulib rather than the other way around.
54439         * config/srclistvars.sh (COREUTILS): Remove.
54440
54441 2006-08-22  Jim Meyering  <jim@meyering.net>
54442
54443         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54444
54445         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54446
54447 2006-08-22  Eric Blake  <ebb9@byu.net>
54448
54449         * modules/regexprops-generic: New file.
54450         * MODULES.html.sh (Support for building documentation): List it.
54451
54452 2006-08-22  Eric Blake  <ebb9@byu.net>
54453
54454         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54455         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54456         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54457         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54458
54459 2006-08-22  Bruno Haible  <bruno@clisp.org>
54460
54461         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54462         and lib_LTLIBRARIES like the other lib_* variables.
54463
54464 2006-08-22  Bruno Haible  <bruno@clisp.org>
54465
54466         * build-aux/x-to-1.in: New file, from GNU gettext.
54467
54468 2006-08-22  Bruno Haible  <bruno@clisp.org>
54469
54470         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54471         <utmpx.h> exists.
54472
54473 2006-08-22  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54476         <utmpx.h> exists.
54477
54478 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         BeOS portability.
54481         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54482         exist.
54483         Problem reported by Bruno Haible.
54484
54485 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         Avoid the need for AC_LIBSOURCES in m4 macros.
54488         * modules/acl (EXTRA_DIST): Add acl.h.
54489         * modules/argmatch (Files): Add m4/argmatch.m4.
54490         (configure.ac): Add gl_ARGMATCH.
54491         (EXTRA_DIST): Renamed from lib_SOURCES, for
54492         consistency with the other modules.  Remove argmatch.c.
54493         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54494         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54495         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54496         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54497         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54498         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54499         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54500         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54501         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54502         * modules/closeout (EXTRA_DIST): Add closeout.h.
54503         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54504         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54505         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54506         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54507         dirname.h; remove basename.c and stripslash.c.
54508         * modules/exclude (EXTRA_DIST): Add exclude.h.
54509         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54510         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54511         * modules/file-type (EXTRA_DIST): Add file-type.h.
54512         * modules/filemode (EXTRA_DIST): Add filemode.h.
54513         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54514         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54515         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54516         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54517         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54518         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54519         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54520         * modules/getdate (EXTRA_DIST): Add getdate.c.
54521         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54522         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54523         * modules/getpass (EXTRA_DIST): Add getpass.h.
54524         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54525         * modules/group-member (EXTRA_DIST): Add group-member.h.
54526         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54527         * modules/hash (EXTRA_DIST): Add hash.h.
54528         * modules/human (EXTRA_DIST): Add human.h.
54529         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54530         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54531         * modules/lchown (EXTRA_DIST): Add lchown.h.
54532         * modules/long-options (EXTRA_DIST): Add long-options.h.
54533         * modules/lstat (EXTRA_DIST): Add lstat.h.
54534         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54535         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54536         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54537         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54538         * modules/memxor (EXTRA_DIST): Add memxor.h.
54539         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54540         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54541         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54542         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54543         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54544         * modules/physmem (EXTRA_DIST): Add physmem.h.
54545         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54546         * modules/posixver (EXTRA_DIST): Add posixver.h.
54547         * modules/quote (EXTRA_DIST): Add quote.h.
54548         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54549         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54550         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54551         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54552         regex_internal.h regexec.c.
54553         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54554         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54555         * modules/same (EXTRA_DIST): Add same.h.
54556         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54557         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54558         * modules/savedir (EXTRA_DIST): Add savedir.h.
54559         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54560         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54561         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54562         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54563         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54564         * modules/strdup (EXTRA_DIST): Add strdup.h.
54565         * modules/strftime (EXTRA_DIST): Add strftime.h.
54566         * modules/strndup (EXTRA_DIST): Add strndup.h.
54567         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54568         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54569         * modules/time_r (EXTRA_DIST): Add time_r.h.
54570         * modules/timespec (EXTRA_DIST): Add timespec.h.
54571         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54572         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54573         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54574         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54575         * modules/userspec (EXTRA_DIST): Add userspec.h.
54576         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54577         * modules/utimens (EXTRA_DIST): Add utimens.h.
54578         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54579         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54580         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54581         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54582         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54583         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54584         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54585         * modules/yesno (EXTRA_DIST): Add yesno.h.
54586
54587 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54590
54591         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54592         * m4/dev-ino.m4, same-inode.m4: Remove.
54593
54594         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54595         * m4/acl.m4 (AC_FUNC_ACL):
54596         * m4/backupfile.m4 (gl_BACKUPFILE):
54597         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54598         * m4/canon-host.m4 (gl_CANON_HOST):
54599         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54600         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54601         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54602         * m4/cloexec.m4 (gl_CLOEXEC):
54603         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54604         * m4/closeout.m4 (gl_CLOSEOUT):
54605         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54606         * m4/dirname.m4 (gl_DIRNAME):
54607         * m4/exclude.m4 (gl_EXCLUDE):
54608         * m4/exitfail.m4 (gl_EXITFAIL):
54609         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54610         * m4/file-type.m4 (gl_FILE_TYPE):
54611         * m4/filemode.m4 (gl_FILEMODE):
54612         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54613         * m4/fpending.m4 (gl_FUNC_FPENDING):
54614         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54615         * m4/fts.m4 (gl_FUNC_FTS):
54616         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54617         * m4/getdate.m4 (gl_GETDATE):
54618         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54619         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54620         * m4/getpass.m4 (gl_FUNC_GETPASS):
54621         * m4/gettime.m4 (gl_GETTIME):
54622         * m4/getugroups.m4 (gl_GETUGROUPS):
54623         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54624         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54625         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54626         * m4/hash.m4 (gl_HASH):
54627         * m4/idcache.m4 (gl_IDCACHE):
54628         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54629         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54630         * m4/long-options.m4 (gl_LONG_OPTIONS):
54631         * m4/lstat.m4 (gl_FUNC_LSTAT):
54632         * m4/md5.m4 (gl_MD5):
54633         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54634         * m4/memcoll.m4 (gl_MEMCOLL):
54635         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54637         * m4/memxor.m4 (gl_MEMXOR):
54638         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54639         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54640         * m4/modechange.m4 (gl_MODECHANGE):
54641         * m4/mountlist.m4 (gl_MOUNTLIST):
54642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54643         * m4/openat.m4 (gl_FUNC_OPENAT):
54644         * m4/pathmax.m4 (gl_PATHMAX):
54645         * m4/physmem.m4 (gl_PHYSMEM):
54646         * m4/posixtm.m4 (gl_POSIXTM):
54647         * m4/posixver.m4 (gl_POSIXVER):
54648         * m4/quote.m4 (gl_QUOTE):
54649         * m4/quotearg.m4 (gl_QUOTEARG):
54650         * m4/readtokens.m4 (gl_READTOKENS):
54651         * m4/readutmp.m4 (gl_READUTMP):
54652         * m4/regex.m4 (gl_REGEX):
54653         * m4/safe-read.m4 (gl_SAFE_READ):
54654         * m4/safe-write.m4 (gl_SAFE_WRITE):
54655         * m4/same.m4 (gl_SAME):
54656         * m4/save-cwd.m4 (gl_SAVE_CWD):
54657         * m4/savedir.m4 (gl_SAVEDIR):
54658         * m4/settime.m4 (gl_SETTIME):
54659         * m4/sha1.m4 (gl_SHA1):
54660         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54661         * m4/stat-macros.m4 (gl_STAT_MACROS):
54662         * m4/stat-time.m4 (gl_STAT_TIME):
54663         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54664         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54665         * m4/strdup.m4 (gl_FUNC_STRDUP):
54666         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54667         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54668         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54669         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54670         * m4/time_r.m4 (gl_TIME_R):
54671         * m4/timespec.m4 (gl_TIMESPEC):
54672         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54673         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54674         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54675         * m4/userspec.m4 (gl_USERSPEC):
54676         * m4/utimecmp.m4 (gl_UTIMECMP):
54677         * m4/utimens.m4 (gl_UTIMENS):
54678         * m4/xalloc.m4 (gl_XALLOC):
54679         * m4/xgetcwd.m4 (gl_XGETCWD):
54680         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54681         * m4/xreadlink.m4 (gl_XREADLINK):
54682         * m4/xstrtod.m4 (gl_XSTRTOD):
54683         * m4/yesno.m4 (gl_YESNO):
54684         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54685         to get the necessary .h files and whatnot.
54686
54687 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54688             Bruno Haible  <bruno@clisp.org>
54689
54690         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54691         /bin/sh understanding of '!' conditional negation.
54692
54693 2006-08-21  Jim Meyering  <jim@meyering.net>
54694
54695         * modules/openat (Depends-on): Really alphabetize.
54696
54697         * modules/acl (Depends-on): Add error and quote.
54698
54699         * check-module (find_included_lib_files): Add at-func.c to the
54700         ok-to-include-more-than-once white list.
54701
54702         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54703
54704 2006-08-21  Bruno Haible  <bruno@clisp.org>
54705
54706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54707         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54708         Reported by Martin Lambers <marlam@marlam.de>.
54709
54710 2006-08-21  Bruno Haible  <bruno@clisp.org>
54711
54712         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54713         specify an installation location, don't emit a noinst_LIBRARIES or
54714         noinst_LTLIBRARIES assignment.
54715
54716 2006-08-21  Bruno Haible  <bruno@clisp.org>
54717
54718         BeOS portability.
54719         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54720         BeOS has mbrtowc() but no <wctype.h>.
54721
54722 2006-08-21  Bruno Haible  <bruno@clisp.org>
54723
54724         BeOS portability.
54725         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54726         exist.
54727
54728 2006-08-21  Bruno Haible  <bruno@clisp.org>
54729
54730         BeOS portability.
54731         * lib/mbchar.h: Include <wctype.h> only if it exists.
54732
54733 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         Remove files that are no longer needed by their respective modules.
54736         * m4/obstack.m4: Remove.
54737         * m4/strerror_r.m4: Remove.
54738         * m4/uint32_t.m4: Remove.
54739         * m4/uintptr_t.m4: Remove.
54740         * m4/ullong_max.m4: Remove.
54741         * m4/xstrtoimax.m4: Remove.
54742         * m4/xstrtoumax.m4: Remove.
54743
54744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54745         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54746         dependencies now capture this.
54747
54748         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54749         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54750         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54751         * m4/human.m4 (gl_HUMAN): Likewise.
54752         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54753         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54754
54755         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54756
54757         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54758         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54759         stdint.
54760         * m4/human.m4 (gl_HUMAN): Likewise.
54761         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54762         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54763         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54764         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54765         * m4/xstrtol (gl_XSTRTOL): Likewise.
54766
54767         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54768         AC_TYPE_LONG_LONG_INT.
54769         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54770         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54771         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54772         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54773
54774         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54775         on stdbool.
54776
54777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54778         (gl_PREREQ_XSTRTOUL): Remove.
54779
54780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54781
54782         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54783         mode.
54784
54785 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         Add and change modules to make it easier for coreutils to use
54788         gnulib-tool.
54789         * modules/backupfile (Files): Remove m4/d-ino.m4.
54790         (Depends-on): Add d-ino.
54791         * modules/cycle-check (Depends-on): Add stdint.
54792         (lib_SOURCES): Add cycle-check.h.
54793         * modules/d-ino: New module.
54794         * modules/d-type: New module.
54795         * modules/error (Files): Remove m4/strerror_r.m4.
54796         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54797         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54798         m4/inttypes_h.m4, m4/uintmax_t.m4.
54799         (Depends-on): Add stdint.
54800         (lib_SOURCES): Add fsusage.h.
54801         * modules/getcwd (Files): Remove d-ino.m4.
54802         (Depends-on): Add d-ino.
54803         * modules/getndelim2 (Depends-on): Add stdint.
54804         * modules/glob (Files): Remove m4/d-type.m4.
54805         (Depends-on): Add d-type.
54806         * modules/host-os: New module.
54807         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54808         m4/inttypes_h.m4, m4/uintmax_t.m4.
54809         * Depends-on: Add stdint.
54810         (lib_SOURCES): Add human.h.
54811         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54812         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54813         m4/uintmax_t.m4, m4/ulonglong.m4.
54814         (Depends-on): Add stdint.
54815         (EXTRA_DIST): Add inttostr.h.
54816         * modules/lchmod: New module.
54817         * modules/link-follow: New module.
54818         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54819         (Depends-on): Add lchmod.
54820         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54821         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54822         (Depends-on): Add stdint.
54823         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54824         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54825         (Depends-on): Add stdint.
54826         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54827         * modules/perl: New module.
54828         * modules/regex (Depends-on): Add stdint.
54829         * modules/rmdir-errno: New module.
54830         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54831         m4/intmax_t.m4.
54832         (Depends-on): Add stdint.
54833         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54834         m4/uintmax_t.m4.
54835         (Depends-on): Add stdint.
54836         * modules/unlink-busy: New module.
54837         * modules/utimecmp (Depends-on): Add stdint.
54838         * modules/uptime: New module.
54839         * modules/winsz-ioctl: New module.
54840         * modules/winsz-termios: New module.
54841         * modules/xnanosleep (Depends-on): Add nanosleep.
54842         * modules/ullong_max: Remove.
54843         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54844         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54845         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54846         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54847         (Depends-on): Add inttypes.
54848         (lib_SOURCES): Add xstrtol.h.
54849         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54850         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54851         * MODULES.html.sh: Move 'assert' into the assert section.
54852         Move 'dummy' into the linking section.
54853         Remove ullong_max.
54854         Add section for compatibility checks for POSIX:2001 functions,
54855         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54856         winsz-ioctl, and winsz-termios into it.
54857         Add lchmod.
54858         Add top-level Misc section and put host-os, perl, and uptime
54859         into it.
54860
54861 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54864         now assume the stdint module.  Do not include inttypes.h.
54865         * lib/fsusage.h: Likewise.
54866         * lib/getndelim2.c: Likewise.
54867         * lib/human.h: Likewise.
54868         * lib/inttostr.h: Likewise.
54869         * lib/obstack.c: Likewise.
54870         * lib/regex_internal.h: Likewise.
54871         * lib/tempname.c: Likewise.
54872         * lib/utimecmp.c: Likewise.
54873         * lib/xstrtol.h: Likewise.
54874
54875         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54876
54877         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54878         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54879         * lib/xtime.h: Likewise.
54880
54881 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * modules/openat (Files): Add lib/fchmodat.c.
54884         Fixes problem reported by Jay Youngman.
54885
54886 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54889         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54890
54891 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54892             Bruno Haible  <bruno@clisp.org>
54893
54894         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54895         and is a script that invokes bison. Tighten the code. Add comments.
54896
54897 2006-08-18  Jim Meyering  <jim@meyering.net>
54898
54899         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54900         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54901         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54902         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54903
54904 2006-08-18  Bruno Haible  <bruno@clisp.org>
54905
54906         * modules/bison-i18n: New file.
54907         * MODULES.html.sh (Internationalization functions): Add it.
54908
54909 2006-08-18  Bruno Haible  <bruno@clisp.org>
54910
54911         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54912         sys/statvfs.h. When getmntinfo was found, check its declaration and
54913         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54914
54915 2006-08-18  Bruno Haible  <bruno@clisp.org>
54916
54917         * m4/bison-i18n.m4: New file, from bison.
54918
54919 2006-08-18  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54922         (ME_DUMMY): Treat "kernfs" as a dummy.
54923         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54924
54925 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54926
54927         Update from coreutils.
54928
54929         2006-08-15  Jim Meyering  <jim@meyering.net>
54930
54931         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54932
54933         2006-01-17  Jim Meyering  <jim@meyering.net>
54934
54935         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54936
54937         2006-01-11  Jim Meyering  <jim@meyering.net>
54938
54939         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54940         Check for the lchmod function.
54941
54942 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54943
54944         Update from coreutils.
54945
54946         * lib/__fpending.h: Add copyright notice.
54947         * lib/fprintftime.h: Likewise.
54948         * lib/savedir.c: Use (C) in copyright notice.
54949         * lib/savedir.h: Likewise.
54950
54951         2006-08-15  Jim Meyering  <jim@meyering.net>
54952
54953         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54954         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54955         in support of the EXPECTED_ERRNO macro.
54956         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54957         definitions.  Instead, define the appropriate symbols and include
54958         "at-func.c".
54959         * lib/mkdirat.c (mkdirat): Likewise.
54960         * lib/fchmodat.c (fchmodat): Likewise.
54961         (ENOSYS): Remove definition.
54962         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54963         it.  Don't include "unistd--.h" -- it wasn't ever used.
54964
54965         2006-01-17  Jim Meyering  <jim@meyering.net>
54966
54967         Rewrite fts.c not to change the current working directory,
54968         by using openat, fstatat, fdopendir, etc..
54969
54970         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54971         (HAVE_OPENAT_SUPPORT): Define.
54972         [_LIBC] (fchdir): Don't undef or define; no longer used.
54973         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54974         Now, this `function' always succeeds, and consumes its file descriptor
54975         parameter -- so callers must not close such FDs.  Update callers.
54976         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54977         (diropen): Add parameter, SP.  Adjust all callers.
54978         Implement using diropen_fd, rather than open.
54979         (fts_open): Initialize new member, fts_cwd_fd.
54980         Remove fts_rft-setting code.
54981         (fts_close): Close fts_cwd_fd, if necessary.
54982         (__opendir2): Define in terms of opendir or opendirat,
54983         depending on whether the FST_NOCHDIR flag is set.
54984         (fts_build): Since fts_safe_changedir consumes its FD, and since
54985         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54986         and close the dup'd file descriptor upon failure.
54987         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54988         (fts_safe_changedir): Tweak semantics to reflect that this function
54989         now calls cwd_advance_fd and hence consumes its FD argument.
54990         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54991         [struct FTS] (fts_rft): Remove now-unused member.
54992         [struct FTS] (fts_cycle.state): Improve comment.
54993
54994         * lib/openat.c (openat_needs_fchdir): New function.
54995         * lib/openat.h (openat_needs_fchdir): Declare it.
54996
54997 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54998
54999         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55000         Problem and fix reported by Pádraig Brady in
55001         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55002
55003 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55004
55005         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55006
55007 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * lib/memcoll.c (memcoll): Optimize for the common case where the
55010         arguments are bytewise equal.
55011
55012 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * doc/regexprops-generic.texi: Add a copyright notice.
55015
55016 2006-08-15  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/tmpdir (License): Change to LGPL.
55019
55020 2006-08-15  Bruno Haible  <bruno@clisp.org>
55021
55022         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55023         module.
55024
55025 2006-08-14  Simon Josefsson  <jas@extundo.com>
55026
55027         * config/srclist.txt: Add gnupload.
55028
55029 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         Change copyright notice from LGPL 2 to GPL 2, since that's the
55032         standard form used in the gnulib repository.
55033         * tests/test-lock.c: Likewise.
55034         * tests/test-stdint.c: Likewise.
55035         * tests/test-tls.c: Likewise.
55036
55037         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55038         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55039         Add copyright notice.
55040
55041         * check-module: Add copyright notice.  Output a copyright
55042         notice if "--version" is specified.
55043         * modules/COPYING: New file.
55044         * tests/test-getaddrinfo.c: Add copyright notice.
55045         * tests/test-verify.c: Likewise.
55046
55047 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55048
55049         Change copyright notice from LGPL 2 to GPL 2, since that's the
55050         standard form used in the gnulib repository.
55051         * lib/lock.c: LGPL -> GPL.
55052         * lib/lock.h: Likewise.
55053         * lib/strnlen1.c: Likewise.
55054         * lib/strnlen1.h: Likewise.
55055         * lib/tls.c: Likewise.
55056         * lib/tls.h: Likewise.
55057         * lib/tmpdir.c: Likewise.
55058
55059         * lib/TODO: Remove; this belongs only in coreutils.
55060
55061 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         Add copyright notices to long-enough files that lack them, since
55064         otherwise the files aren't clearly free.  Use the same notice that
55065         getdate.texi already uses.
55066         * doc/alloca-opt.texi: Add copyright notice.
55067         * doc/alloca.texi: Likewise.
55068         * doc/ctime.texi: Likewise.
55069         * doc/functions.texi: Likewise.
55070         * doc/gcd.texi: Likewise.
55071         * doc/gnulib-tool.texi: Likewise.
55072         * doc/inet_ntoa.texi: Likewise.
55073         * doc/visibility.texi: Likewise.
55074
55075         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55076         * doc/quote.texi: Add copyright notice.
55077
55078         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55079         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55080         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55081         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55082         is now obsolete, and give a pointer to the Sun list.
55083         Add copyright notice.
55084
55085 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55086
55087         * config/srclistvars.sh: Add copyright notice.
55088
55089 2006-08-14  Eric Blake  <ebb9@byu.net>
55090
55091         Import the following change from libc:
55092
55093         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55094
55095         Upstream bug 2997.
55096         * lib/misc/error.c: Add space between program name and message if file
55097         name is missing.
55098
55099 2006-08-12  Karl Berry  <karl@gnu.org>
55100
55101         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55102         remove, these originate in gnulib now.
55103
55104 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55105
55106         * doc/Makefile (standards.info standards.html standards.dvi):
55107         Also depend on make-stds.texi.
55108
55109 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55112         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55113
55114         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55115         in wchar_t.  Problem reported by Eric Blake.
55116
55117         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55118         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55119         Also, help the compiler to keep LEN in a register.
55120
55121 2006-08-11  Eric Blake  <ebb9@byu.net>
55122
55123         * users.txt: Sort.  Add tar.
55124
55125 2006-08-11  Bruno Haible  <bruno@clisp.org>
55126
55127         * users.txt: New file.
55128
55129 2006-08-11  Bruno Haible  <bruno@clisp.org>
55130
55131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55132         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55133
55134 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * modules/snprintf (Depends-on): Remove minmax.
55137         (Maintainer): Add self and Bruno.
55138
55139 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55142         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55143         (EOVERFLOW): Define if the system does not.
55144         Do not include "minmax.h"; it wasn't used.
55145         (snprintf): Don't assume size_t promotes to an unsigned type.
55146         Fix bug when generated string was too long for the buffer: the
55147         buffer's contents are supposed to be the initial prefix of the
55148         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55149         exceeds INT_MAX; do the check ourselves.
55150
55151         Import the following changes from libc:
55152
55153         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55154
55155         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55156         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55157         set wc to the byte which couldn't be converted.
55158         (re_string_reconstruct): Don't clear valid_raw_len before calling
55159         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55160         tip_context using re_string_context_at.
55161
55162         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55163
55164         * lib/posix/regex.h: g++ still cannot handled [restrict].
55165
55166         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55167
55168         * lib/posix/regex.h: Remove special handling for VMS.
55169
55170 2006-08-10  Jim Meyering  <jim@meyering.net>
55171
55172         * modules/same-inode: New module.
55173         * modules/dev-ino: New module.
55174         * modules/cycle-check: Depend on these modules, rather than simply
55175         including their .h files.
55176         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55177         required via m4/cycle-check.m4.
55178         * modules/same: Depend on new same-inode module, rather than
55179         including same-inode.h.
55180         * modules/chdir-safer: New file.
55181
55182         * modules/chown (Depends-on): Add stat-macros.
55183
55184 2006-08-10  Jim Meyering  <jim@meyering.net>
55185
55186         * m4/cycle-check.m4: New file.
55187         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55188         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55189
55190 2006-08-10  Eric Blake  <ebb9@byu.net>
55191
55192         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55193         in from original proposal.
55194
55195 2006-08-10  Eric Blake  <ebb9@byu.net>
55196         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55197
55198         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55199         namespace.
55200
55201 2006-08-10  Bruno Haible  <bruno@clisp.org>
55202
55203         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55204         as well.
55205
55206 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         Sync from coreutils.
55209
55210         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55211
55212         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55213         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55214
55215 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55216
55217         * modules/restrict: Remove; no longer needed now that we assume
55218         Autoconf 2.59 or later.
55219         * MODULES.html.sh: Remove 'restrict'.
55220         * modules/argp (Depends-on): Remove 'restrict'.
55221         * modules/base64 (Depends-on): Likewise.
55222         * modules/gc (Depends-on): Likewise.
55223         * modules/getaddrinfo (Depends-on): Likewise.
55224         * modules/glob (Depends-on): Likewise.
55225         * modules/inet_ntop (Depends-on): Likewise.
55226         * modules/inet_pton (Depends-on): Likewise.
55227         * modules/memxor (Depends-on): Likewise.
55228         * modules/regex (Depends-on): Likewise.
55229         * modules/strtok_r (Depends-on): Likewise.
55230         * modules/time_r (Depends-on): Likewise.
55231
55232 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55235         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55236         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55237         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55238         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55239         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55240         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55241         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55242
55243         Merge from coreutils.
55244         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55245         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55246         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55247         * m4/time_r.m4 (gl_TIME_R): Likewise.
55248
55249 2006-08-09  Karl Berry  <karl@gnu.org>
55250
55251         * config/srclist.txt: no more gettext-tools, per Bruno.
55252
55253 2006-08-08  Eric Blake  <ebb9@byu.net>
55254
55255         * modules/verror: New module.
55256         * MODULES.html.sh: Document it.
55257
55258 2006-08-08  Eric Blake  <ebb9@byu.net>
55259
55260         * lib/verror.h, lib/verror.c: New files.
55261
55262 2006-08-08  Eric Blake  <ebb9@byu.net>
55263
55264         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55265         verror_at_line output complies with GNU Coding Standards even when
55266         file is NULL.
55267
55268 2006-08-07  Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55271         versions of AIX.
55272         Reported by Ralf Wildenhues.
55273
55274 2006-08-07  Bruno Haible  <bruno@clisp.org>
55275
55276         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55277         in an AC_DEFUN. Needed so that the autoconf snippets can use
55278         AC_REQUIRE.
55279
55280 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55281
55282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55283         Initialize pkgdata_DATA.
55284         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55285         overriding it.
55286
55287 2006-08-06  Eric Blake  <ebb9@byu.net>
55288
55289         * lib/error.h: Fold in some upstream changes from glibc.
55290         * lib/error.c: Likewise.
55291
55292 2006-08-04  Bruno Haible  <bruno@clisp.org>
55293
55294         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55295         Make the mostlyclean-local rule depend on mostlyclean-generic.
55296         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
55297
55298 2006-07-31  Bruno Haible  <bruno@clisp.org>
55299
55300         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
55301         <stdlib.h>, <string.h>.
55302
55303 2006-07-30  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/readlink (License): Change to LGPL.
55306
55307 2006-07-30  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/javaversion (Makefile.am): Distribute javaversion.java and
55310         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
55311         set PKGDATADIR to point to it.
55312
55313 2006-07-30  Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/csharpexec (configure.ac): Comment out macro invocation.
55316         * modules/javaexec (configure.ac): Likewise.
55317         * modules/javacomp-script (configure.ac): Likewise.
55318
55319         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
55320
55321 2006-07-30  Bruno Haible  <bruno@clisp.org>
55322
55323         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
55324         linked-list.
55325
55326 2006-07-30  Bruno Haible  <bruno@clisp.org>
55327
55328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
55329
55330 2006-07-30  Bruno Haible  <bruno@clisp.org>
55331
55332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55333         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
55334         get removed.
55335
55336 2006-07-29  Bruno Haible  <bruno@clisp.org>
55337
55338         Make it possible for gnulib-tool to work with locally modified or
55339         augmented gnulib repositories.
55340         * gnulib-tool (func_usage): Document --local-dir option.
55341         (local_gnulib_dir): New variable.
55342         Handle --local-dir option.
55343         (func_lookup_file): New function.
55344         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55345         (func_get_description, func_get_filelist, func_get_description,
55346         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55347         func_get_automake_snippet, func_get_include_directive,
55348         func_get_license, func_get_maintainer): Use func_lookup_file.
55349         (func_import, func_create_testdir): Use func_lookup_file.
55350
55351 2006-07-29  Bruno Haible  <bruno@clisp.org>
55352
55353         * modules/setenv (Depends-on): Add unistd.
55354
55355 2006-07-29  Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55358
55359 2006-07-29  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55362
55363 2006-07-29  Bruno Haible  <bruno@clisp.org>
55364
55365         * gnulib-tool (import, update): If there is no Makefile.am, look at
55366         aclocal.m4, instead of bailing out.
55367
55368 2006-07-29  Bruno Haible  <bruno@clisp.org>
55369
55370         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55371         Categorize the options by when they are useful.
55372
55373 2006-07-29  Bruno Haible  <bruno@clisp.org>
55374
55375         * gnulib-tool (func_usage): Document option --no-libtool.
55376         Handle option --no-libtool.
55377         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55378         for changed semantics of $libtool variable.
55379         (func_import): Likewise. If libtool is not used, show this through
55380         an option --no-libtool.
55381         (func_create_testdir): Update.
55382
55383 2006-07-29  Bruno Haible  <bruno@clisp.org>
55384
55385         * gnulib-tool (func_import): Extend error message about missing
55386         --doc-base.
55387
55388 2006-07-29  Bruno Haible  <bruno@clisp.org>
55389
55390         * gnulib-tool (func_import): Don't create the $docbase directory if
55391         there is no file to store there.
55392
55393 2006-07-29  Bruno Haible  <bruno@clisp.org>
55394
55395         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55396         relevant, look for configure.ac there, not in the current directory.
55397         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55398
55399 2006-07-29  Bruno Haible  <bruno@clisp.org>
55400
55401         * gnulib-tool (SORT): New variable.
55402         (func_usage): Undocument --assume-autoconf option.
55403         Remove --assume-autoconf option handling.
55404         (autoconf_minversion): Determine from the contents of configure.ac.
55405         (func_import): Remove autoconf_minversion handling.
55406         Suggested by Eric Blake.
55407
55408 2006-07-29  Bruno Haible  <bruno@clisp.org>
55409
55410         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55411
55412 2006-07-29  Bruno Haible  <bruno@clisp.org>
55413
55414         * config/srclist.txt (*setenv.[ch]): Remove rules.
55415
55416 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55417
55418         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55419
55420 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55421
55422         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55423         arpa/inet.h.
55424
55425 2006-07-28  Simon Josefsson  <jas@extundo.com>
55426
55427         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55428         * modules/inet_pton (Depends-on): Likewise.
55429
55430 2006-07-28  Simon Josefsson  <jas@extundo.com>
55431
55432         * m4/netinet_in_h.m4: New file.
55433
55434 2006-07-28  Simon Josefsson  <jas@extundo.com>
55435
55436         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55437         #include's.
55438
55439 2006-07-28  Simon Josefsson  <jas@extundo.com>
55440
55441         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55442         #include's.
55443
55444 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55447         setgid on directories only if they set these bits.
55448         * lib/modechange.h: Remove obsolete comment about masks.
55449
55450 2006-07-28  Eric Blake  <ebb9@byu.net>
55451
55452         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55453         macro expansion.
55454
55455 2006-07-28  Bruno Haible  <bruno@clisp.org>
55456
55457         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55458
55459 2006-07-28  Bruno Haible  <bruno@clisp.org>
55460
55461         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55462
55463 2006-07-28  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55466         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55467         Define fallbacks.
55468         Avoids link error on FreeBSD 4.x.
55469         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55470
55471         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55472         encoding.
55473         * lib/mbswidth.c (iswcntrl): Likewise.
55474
55475 2006-07-27  Bruno Haible  <bruno@clisp.org>
55476
55477         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55478         test.
55479
55480 2006-07-27  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55483         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55484         defined.
55485
55486 2006-07-26  Eric Blake  <ebb9@byu.net>
55487
55488         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55489
55490 2006-07-26  Eric Blake  <ebb9@byu.net>
55491
55492         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55493         like mingw that lack mkstemp.
55494         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55495         avoid compilation warning on mingw.
55496
55497 2006-07-26  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55500         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55501         INT_FAST*_MIN, INTPTR_MIN.
55502
55503 2006-07-25  Bruno Haible  <bruno@clisp.org>
55504
55505         * modules/version-etc (Depends-on): Add stdarg.
55506
55507 2006-07-25  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55510         complex commands.
55511
55512 2006-07-25  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55515         defined in <stdarg.h> or config.h.
55516
55517 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55520         (gl_STDIO_SAFER): Remove.
55521
55522 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55523
55524         * MODULES.html.sh (File stream based Input/Output):
55525         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55526         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55527         * modules/fopen-safer, modules/tmpfile-safer: New files.
55528         * modules/stdio-safer: Remove.
55529
55530 2006-07-24  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/tmpdir: New file.
55533         * MODULES.html.sh (File system functions): Add it.
55534
55535 2006-07-24  Bruno Haible  <bruno@clisp.org>
55536
55537         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55538         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55539
55540 2006-07-24  Bruno Haible  <bruno@clisp.org>
55541
55542         * modules/clean-temp: New file.
55543
55544 2006-07-24  Bruno Haible  <bruno@clisp.org>
55545
55546         * m4/tmpdir.m4: New file, from GNU gettext.
55547
55548 2006-07-24  Bruno Haible  <bruno@clisp.org>
55549
55550         * lib/tmpdir.h: New file, from GNU gettext.
55551         * lib/tmpdir.c: New file, from GNU gettext.
55552
55553 2006-07-24  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/clean-temp.h: New file, from GNU gettext.
55556         * lib/clean-temp.c: New file, from GNU gettext.
55557
55558 2006-07-23  Eric Blake  <ebb9@byu.net>
55559
55560         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55561         (Depends-on): Add binary-io.
55562
55563 2006-07-23  Eric Blake  <ebb9@byu.net>
55564
55565         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55566
55567 2006-07-23  Eric Blake  <ebb9@byu.net>
55568
55569         * lib/tmpfile-safer.c: New file.
55570         * lib/stdio-safer.h (fopen_safer): Add prototype.
55571         * lib/stdio--.h (tmpfile): Make safer.
55572
55573 2006-07-23  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55576         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55577         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55578         gl_linked_remove_at): Use it.
55579
55580 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55581         and Simon Josefsson <jas@extundo.com>
55582
55583         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55584
55585         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55586
55587 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         * modules/close-stream: New file.
55590         * modules/closeout (Description): Make it clear that it exits
55591         with a diagnostic on error.
55592         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55593         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55594
55595 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * m4/close-stream.m4: New file.
55598
55599 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55600
55601         * lib/close-stream.c, lib/close-stream.h: New files.
55602
55603 2006-07-22  Bruno Haible  <bruno@clisp.org>
55604
55605         Merge from GNU gettext 0.15.
55606
55607         2006-05-01  Bruno Haible  <bruno@clisp.org>
55608
55609                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55610
55611         2006-07-22  Bruno Haible  <bruno@clisp.org>
55612
55613                 * modules/javaversion: New file.
55614                 * MODULES.html.sh (Java): Add javaversion.
55615
55616         2006-03-12  Bruno Haible  <bruno@clisp.org>
55617
55618                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55619
55620         2005-12-04  Bruno Haible  <bruno@clisp.org>
55621
55622                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55623                 (untested).
55624
55625         2006-06-21  Bruno Haible  <bruno@clisp.org>
55626
55627                 Avoid warnings from recent versions of mcs.
55628                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55629                 -o, -L, -r any more. Use options documented since mcs-1.0
55630                 instead. Similarly for -g.
55631
55632         2005-12-04  Bruno Haible  <bruno@clisp.org>
55633
55634                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55635                 .resources, not .resource.
55636
55637         2005-07-09  Bruno Haible  <bruno@clisp.org>
55638
55639                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55640                 add a .dll suffix.
55641                 Reported by Mark Junker <mjscod@gmx.de>.
55642
55643         2006-07-22  Bruno Haible  <bruno@clisp.org>
55644
55645                 * modules/gettext: Upgrade to gettext-0.15.
55646                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55647                 m4/visibility.m4.
55648                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55649
55650 2006-07-22  Bruno Haible  <bruno@clisp.org>
55651
55652         Merge from GNU gettext 0.15.
55653
55654         2006-03-25  Bruno Haible  <bruno@clisp.org>
55655
55656                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55657
55658         2006-07-21  Bruno Haible  <bruno@clisp.org>
55659
55660                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55661                 "1.1".
55662
55663         2006-05-09  Bruno Haible  <bruno@clisp.org>
55664
55665                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55666                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55667                 for the conftestver execution.
55668
55669         2006-05-01  Bruno Haible  <bruno@clisp.org>
55670
55671                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55672                 optional target-version argument. Verify that the compiler
55673                 groks source of the specified source-version, or add -source
55674                 option as necessary. Verify that the compiler produces
55675                 bytecode in the specified target-version, or add -target and
55676                 -source options as necessary. Make the result of the test
55677                 available as variable CONF_JAVAC. Also log error output in
55678                 config.log.
55679
55680         2006-03-11  Bruno Haible  <bruno@clisp.org>
55681
55682                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55683
55684         2006-05-09  Bruno Haible  <bruno@clisp.org>
55685
55686                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55687                 CLASSPATH_SEPARATOR to a semicolon.
55688
55689         2006-03-12  Bruno Haible  <bruno@clisp.org>
55690
55691                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55692                 available as variable CONF_JAVA, for subsequent autoconf
55693                 tests. Also log error output in config.log.
55694
55695         2006-07-19  Bruno Haible  <bruno@clisp.org>
55696
55697                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55698                 that getline works on glibc2 systems. Needed to avoid trouble
55699                 in relocatable.c.
55700                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55701
55702         2005-12-04  Bruno Haible  <bruno@clisp.org>
55703
55704                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55705                 launcher (untested).
55706
55707         2005-12-04  Bruno Haible  <bruno@clisp.org>
55708
55709                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55710
55711         2006-07-22  Bruno Haible  <bruno@clisp.org>
55712
55713                 * gettext.m4: Update from GNU gettext-0.15.
55714                 * nls.m4: Likewise.
55715                 * po.m4: Likewise.
55716                 * inttypes-pri.m4: Likewise.
55717                 * inttypes-h.m4: Renamed from inttypes.m4.
55718                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55719
55720 2006-07-22  Bruno Haible  <bruno@clisp.org>
55721
55722         Merge from GNU gettext 0.15.
55723
55724         2005-07-05  Bruno Haible  <bruno@clisp.org>
55725
55726                 * printf-args.c (printf_fetchargs): Work around broken
55727                 definition of wint_t on mingw.
55728
55729         2005-02-12  Bruno Haible  <bruno@clisp.org>
55730
55731                 * xallocsa.h: Add extern "C" for C++.
55732
55733         2006-05-17  Bruno Haible  <bruno@clisp.org>
55734
55735                 Cygwin portability.
55736                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55737
55738         2006-04-30  Bruno Haible  <bruno@clisp.org>
55739
55740                 * progreloc.c: Include <mach-o/dyld.h> if available.
55741                 (find_executable): Use _NSGetExecutablePath when possible.
55742
55743         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55744
55745                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55746                 function.
55747
55748         2005-12-29  Bruno Haible  <bruno@clisp.org>
55749
55750                 * progreloc.c (set_program_name_and_installdir): Fix
55751                 compilation error.
55752
55753         2005-12-04  Bruno Haible  <bruno@clisp.org>
55754
55755                 Cygwin portability.
55756                 * progreloc.c: Include <windows.h> also on Cygwin.
55757                 (find_executable): Add support for Cygwin.
55758                 (set_program_name_and_installdir): Handle also platforms with
55759                 nonempty EXEEXT.
55760
55761         2006-07-11  Bruno Haible  <bruno@clisp.org>
55762
55763                 * javacomp.c: Fix a comment.
55764                 Reported by Jim Meyering.
55765
55766         2006-04-30  Bruno Haible  <bruno@clisp.org>
55767
55768                 * javacomp.h (compile_java_class): Add source_version,
55769                 target_version arguments.
55770                 * javacomp.c: Rewritten to choose only a compiler that
55771                 respects the specified source_version and target_version.
55772
55773         2006-06-27  Bruno Haible  <bruno@clisp.org>
55774
55775                 Assume correct S_ISDIR macro.
55776                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55777
55778         2006-07-22  Bruno Haible  <bruno@clisp.org>
55779
55780                 * javaversion.h: New file, from GNU gettext.
55781                 * javaversion.c: New file, from GNU gettext.
55782                 * javaversion.java: New file, from GNU gettext.
55783                 * javaversion.class: New file, from GNU gettext.
55784
55785         2006-05-17  Bruno Haible  <bruno@clisp.org>
55786
55787                 Cygwin portability.
55788                 * javaexec.c (execute_java_class): Test for jview program
55789                 also on Cygwin.
55790
55791         2006-04-09  Bruno Haible  <bruno@clisp.org>
55792
55793                 * fatal-signal.c: Don't include string.h.
55794                 (at_fatal_signal): Use a copying loop instead of memcpy.
55795
55796         2005-12-04  Bruno Haible  <bruno@clisp.org>
55797
55798                 * csharpexec.c: Add support for 'clix' launcher (untested).
55799                 (execute_csharp_using_sscli): New function.
55800                 (execute_csharp_program): Call it.
55801
55802         2006-06-21  Bruno Haible  <bruno@clisp.org>
55803
55804                 Avoid warnings from recent versions of mcs.
55805                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55806                 -o, -L, -r any more. Use options documented since mcs-1.0
55807                 instead. Similarly for -g.
55808
55809         2005-07-09  Bruno Haible  <bruno@clisp.org>
55810
55811                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55812                 add a .dll suffix.
55813                 Reported by Mark Junker <mjscod@gmx.de>.
55814
55815         2006-06-17  Bruno Haible  <bruno@clisp.org>
55816
55817                 * config.charset: Update for NetBSD 3.0.
55818
55819         2006-05-17  Bruno Haible  <bruno@clisp.org>
55820
55821                 Cygwin portability.
55822                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55823
55824         2006-05-16  Bruno Haible  <bruno@clisp.org>
55825
55826                 * localcharset.c [CYGWIN]: Include <windows.h>.
55827                 (get_charset_aliases): For Cygwin, return the same CPxxx
55828                 aliases list as under WIN32.
55829                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55830                 the environment variables. Fall back to GetACP().
55831
55832         2006-04-05  Bruno Haible  <bruno@clisp.org>
55833
55834                 * config.charset: Update Juan Manuel Guerrero's address.
55835
55836         2005-02-12  Bruno Haible  <bruno@clisp.org>
55837
55838                 * allocsa.h: Add extern "C" for C++.
55839
55840         2005-02-10  Bruno Haible  <bruno@clisp.org>
55841
55842                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55843                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55844
55845         2006-07-22  Bruno Haible  <bruno@clisp.org>
55846
55847                 * gettext.h: Update to GNU gettext-0.15.
55848
55849 2006-07-22  Bruno Haible  <bruno@clisp.org>
55850
55851         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55852         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55853         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55854
55855 2006-07-21  Eric Blake  <ebb9@byu.net>
55856
55857         * modules/stdlib-safer: New file.
55858         * MODULES.html.sh (File stream based Input/Output): Add
55859         stdlib-safer.
55860
55861 2006-07-21  Eric Blake  <ebb9@byu.net>
55862
55863         * lib/stdlib-safer.h: New file from coreutils, required by
55864         stdlib--.h.
55865
55866 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55869
55870 2006-07-20  Bruno Haible  <bruno@clisp.org>
55871
55872         * gnulib-tool: Recognize new option --assume-autoconf.
55873         (autoconf_minversion): New variable.
55874         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55875
55876 2006-07-20  Bruno Haible  <bruno@clisp.org>
55877
55878         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55879
55880 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55881
55882         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55883         Reindent and repaginate.
55884
55885 2006-07-19  Derek Price  <derek@ximbiot.com>
55886
55887         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55888         Correct grammar.
55889
55890 2006-07-17  Bruno Haible  <bruno@clisp.org>
55891
55892         * modules/list: New file.
55893         * modules/array-list: New file.
55894         * modules/carray-list, modules/carray-list-tests: New files.
55895         * modules/linked-list, modules/linked-list-tests: New files.
55896         * modules/avltree-list, modules/avltree-list-tests: New files.
55897         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55898         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55899         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55900         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55901         * modules/oset: New file.
55902         * modules/array-oset: New file.
55903         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55904         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55905         * tests/test-carray_list.c: New file.
55906         * tests/test-linked_list.c: New file.
55907         * tests/test-avltree_list.c: New file.
55908         * tests/test-rbtree_list.c: New file.
55909         * tests/test-linkedhash_list.c: New file.
55910         * tests/test-avltreehash_list.c: New file.
55911         * tests/test-rbtreehash_list.c: New file.
55912         * tests/test-avltree_oset.c: New file.
55913         * tests/test-rbtree_oset.c: New file.
55914         * MODULES.html.sh (Container data structures): New section.
55915
55916 2006-07-17  Bruno Haible  <bruno@clisp.org>
55917
55918         * m4/gl_list.m4: New file.
55919
55920 2006-07-17  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/gl_list.h: New file.
55923         * lib/gl_list.c: New file.
55924         * lib/gl_array_list.h: New file.
55925         * lib/gl_array_list.c: New file.
55926         * lib/gl_carray_list.h: New file.
55927         * lib/gl_carray_list.c: New file.
55928         * lib/gl_linked_list.h: New file.
55929         * lib/gl_linked_list.c: New file.
55930         * lib/gl_anylinked_list1.h: New file.
55931         * lib/gl_anylinked_list2.h: New file.
55932         * lib/gl_avltree_list.h: New file.
55933         * lib/gl_avltree_list.c: New file.
55934         * lib/gl_anyavltree_list1.h: New file.
55935         * lib/gl_anyavltree_list2.h: New file.
55936         * lib/gl_rbtree_list.h: New file.
55937         * lib/gl_rbtree_list.c: New file.
55938         * lib/gl_anyrbtree_list1.h: New file.
55939         * lib/gl_anyrbtree_list2.h: New file.
55940         * lib/gl_anytree_list1.h: New file.
55941         * lib/gl_anytree_list2.h: New file.
55942         * lib/gl_linkedhash_list.h: New file.
55943         * lib/gl_linkedhash_list.c: New file.
55944         * lib/gl_anyhash_list1.h: New file.
55945         * lib/gl_anyhash_list2.h: New file.
55946         * lib/gl_avltreehash_list.h: New file.
55947         * lib/gl_avltreehash_list.c: New file.
55948         * lib/gl_rbtreehash_list.h: New file.
55949         * lib/gl_rbtreehash_list.c: New file.
55950         * lib/gl_anytreehash_list1.h: New file.
55951         * lib/gl_anytreehash_list2.h: New file.
55952
55953         * lib/gl_oset.h: New file.
55954         * lib/gl_oset.c: New file.
55955         * lib/gl_array_oset.h: New file.
55956         * lib/gl_array_oset.c: New file.
55957         * lib/gl_avltree_oset.h: New file.
55958         * lib/gl_avltree_oset.c: New file.
55959         * lib/gl_rbtree_oset.h: New file.
55960         * lib/gl_rbtree_oset.c: New file.
55961         * lib/gl_anytree_oset.h: New file.
55962
55963 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55964
55965         * m4/mkancesdirs.m4: New file.
55966         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55967         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55968         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55969         it.
55970
55971 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55972
55973         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55974         * lib/mkancesdirs.h: New files.
55975         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55976         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55977         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55978         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55979         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55980         callers changed.  Revamp internals significantly, by not
55981         attempting to create directories that are temporarily more
55982         permissive than the final results.  Do not attempt to use
55983         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55984         This removes some race conditions, fixes some bugs, and simplifies
55985         things.  Use new dirchownmod function to do owner and mode changes.
55986         * lib/mkdir-p.h: Likewise.
55987         * lib/modechange.c (octal_to_mode): New function.
55988         (struct mode_change): New member mentioned.
55989         (make_node_op_equals): New arg mentioned.  All callers changed.
55990         (mode_compile): Keep track of which mode bits the user has explicitly
55991         mentioned.
55992         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55993         New arg PMODE_BITS, to keep track of which mode bits the user
55994         mentioned; it treats S_ISUID and S_ISGID speciall.
55995         All callers changed.
55996         * lib/modechange.h: Likewise.
55997
55998 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * MODULES.html.sh: Add mkancestors.
56001         * modules/mkancesdirs: New module.
56002         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56003         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56004         The chdir-safer and afs files are now orphans; I'll remove them
56005         unless someone speaks up.
56006         Add lib/dirchownmod.c, lib/dirchownmod.h.
56007         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56008         Add lchown, mkancesdirs.
56009         (Maintainer): Add self.
56010
56011 2006-07-15  Karl Berry  <karl@gnu.org>
56012
56013         * gnulib-tool: help message wording/arrangement.
56014
56015 2006-07-14  Simon Josefsson  <jas@extundo.com>
56016
56017         * doc/gnulib.texi (Libtool and Windows): New section.
56018
56019 2006-07-12  Simon Josefsson  <jas@extundo.com>
56020
56021         * modules/gendocs (License): Fix license, approved by Karl.
56022
56023 2006-07-12  Eric Blake  <ebb9@byu.net>
56024
56025         * MODULES.html.sh: Add gendocs.
56026
56027 2006-07-11  Eric Blake  <ebb9@byu.net>
56028
56029         * modules/fdl: New module, to install doc/fdl.texi.
56030         * MODULES.html.sh: Add new section for documentation modules.
56031         * gnulib-tool: Avoid space-tab.
56032         (--doc-base): New option, to manage files from doc.
56033
56034 2006-07-11  Eric Blake  <ebb9@byu.net>
56035
56036         * m4/absolute-header.m4: Fix comments to match recent change.
56037
56038 2006-07-11  Eric Blake  <ebb9@byu.net>
56039
56040         * gnulib-tool: List --doc-base before --tests-base.
56041
56042 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56043
56044         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56045
56046 2006-07-11  Bruno Haible  <bruno@clisp.org>
56047
56048         * README: Mention where to put documentation.
56049
56050 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56051
56052         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56053
56054 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56057         to stdint.m4.
56058
56059 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56062         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56063         "no/such/file/stdint.h" when there is no such file, so that
56064         the resulting C code can be parsed by dodgy compilers.
56065         Problems reported by Bob Proulx.
56066
56067 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56068
56069         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56070         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56071         macros into the GNU _D_EXACT_NAMLEN.
56072         * lib/savedir.c:  Likewise.
56073         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56074
56075 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56076         and Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56079         * m4/savedir.m4:
56080         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56081         macros into the GNU _D_EXACT_NAMLEN.
56082
56083 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56084
56085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56086         around the absolute name, to work around a problem with the HP-UX
56087         11.23 native C compiler, reported by Bob Proulx.
56088
56089 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56090
56091         * doc/maintain.texi, make-stds.texi: Sync from
56092         <http://savannah.gnu.org/projects/gnustandards>.
56093
56094 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56095
56096         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56097
56098 2006-07-09  Jim Meyering  <jim@meyering.net>
56099
56100         * m4/glob.m4: Remove a doubled word in a comment.
56101
56102 2006-07-09  Jim Meyering  <jim@meyering.net>
56103
56104         * lib/argp-pv.c: Remove a doubled word in a comment.
56105         * lib/check-version.c (check_version): Likewise.
56106         * lib/javacomp.c (compile_java_class): Likewise.
56107
56108 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56111         for the benefit of people using Autoconf 2.60.  If you want to
56112         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56113         (or m4/onceonly.m4, if pre-2.57) manually.
56114
56115 2006-07-08  Jim Meyering  <jim@meyering.net>
56116
56117         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56118         comment.
56119         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56120         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56121         comment.
56122
56123 2006-07-08  Jim Meyering  <jim@meyering.net>
56124
56125         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56126
56127 2006-07-07  Simon Josefsson  <jas@extundo.com>
56128
56129         * tests/test-crc.c: Change expected crc value, the test vector
56130         were probably computed using the old broken crc.c?
56131
56132 2006-07-06  Simon Josefsson  <jas@extundo.com>
56133
56134         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56135         now the canonical place for the M4 file).
56136
56137         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56138         from the sys_socket dependency now.
56139
56140         * modules/inet_pton (Files): Ditto.
56141
56142         * modules/inet_ntop (Files): Ditto.
56143
56144 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56145
56146         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56147         not gl_PREREQ_GETUSERSHELL.
56148
56149 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56150
56151         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56152         with only one argument, for Autoconf 2.60.
56153         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56154         expand to nothing, so add a shell command to avoid syntax error.
56155         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56156
56157 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56158
56159         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56160
56161 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56162
56163         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56164         no longer needed.  Check for isblank decl.
56165         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56166         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56167         of existence.
56168
56169 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56170
56171         * lib/getloadavg.c: Use __VMS, not VMS.
56172         * lib/getopt.c: Likewise.
56173         * lib/getpagesize.h: Likewise.
56174         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56175         and probably does not work.
56176
56177 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56178
56179         * lib/.cppi-disable: Add wcwidth.
56180         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56181         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56182         (ISGRAPH): Remove.  All uses changed to isgraph.
56183         (FOLD) [!defined _LIBC]: Remove special case.
56184         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56185         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56186         HAVE_ISBLANK.
56187         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56188         case.
56189
56190 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56191
56192         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56193         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56194         brackets.  Other minor changes to suppress some compiler
56195         warnings.
56196
56197 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56198         and Paul Eggert  <eggert@cs.ucla.edu>
56199
56200         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56201         of invoking obsolescent AC_HEADER_DIRENT macro.
56202         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56203         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56206         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56207         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56208         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56209         * m4/readdir.m4: Remove; no longer needed.
56210
56211 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56212         and Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56215         Don't worry about this obsolete case any more.
56216         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56217         directories.
56218         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56219         worry about this obsolete case any more.
56220         * lib/fts.c: Likewise.
56221         * lib/getcwd.c: Likewise.
56222         * lib/glob.h: Likewise.
56223         * lib/savedir.c: Likewise.
56224
56225 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56228         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56229         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56230         needed.
56231         All uses removed.
56232         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56233         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56234         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56235         needed.
56236         * m4/getdate.m4 (gl_GETDATE): Likewise.
56237         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56238         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56239         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56240         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56241         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56242         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56243         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56244         needed.
56245
56246 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         * lib/memcasecmp.c: Include <limits.h>.
56249         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56250         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56251         Don't assume isdigit succeeds only on '0' through '9'.
56252
56253 2006-07-05  Eric Blake  <ebb9@byu.net>
56254
56255         * modules/getaddrinfo (Depends-on): Add snprintf.
56256
56257 2006-07-05  Eric Blake  <ebb9@byu.net>
56258
56259         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56260         to avoid 'header present but could not be compiled' on cygwin.
56261
56262 2006-07-05  Eric Blake  <ebb9@byu.net>
56263
56264         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56265         missing from netdb.h.
56266         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56267
56268 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56269
56270         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56271         no longer needed.
56272         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56273         * m4/getdate.m4 (gl_GETDATE): Likewise.
56274         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56275         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56276         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56277         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56278         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56279
56280 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56281
56282         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56283         All uses of is_space replaced by isspace.
56284         * lib/exit.h: Don't talk about STDC_HEADERS.
56285         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56286         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56287         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56288         replaced by isprint etc.
56289         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56290         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56291         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
56292         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
56293         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
56294         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56295
56296 2006-07-05  Bruno Haible  <bruno@clisp.org>
56297
56298         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
56299         the function exists, before testing against AIX.
56300         Reported by Martin Lambers <marlam@marlam.de>.
56301
56302 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
56305         From Mark D. Baushke.
56306
56307 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56308
56309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
56310         to the absolute name, not just one, to bypass Sun C 5.8's
56311         "warning: #include of /usr/include/... may be non-portable".
56312
56313 2006-07-04  Eric Blake  <ebb9@byu.net>
56314
56315         * modules/dirname-tests: New test module.
56316         * tests/test-dirname.c: New file, replacing dirname.c
56317         TEST_DIRNAME section that was recently deleted.
56318
56319 2006-07-04  Bruno Haible  <bruno@clisp.org>
56320
56321         Assume ANSI C header files and <ctype.h> functions.
56322         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
56323         (mbsnwidth): Use isprint, iscntrl instead.
56324
56325 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         Merge from coreutils.
56328         * MODULES.html.sh: Add xstrtold.
56329         * modules/xstrtold: New file.
56330         * modules/cycle-check (Files): Add lib/same-inode.h.
56331         * modules/dirname (Files): Add m4/double-slash-root.m4.
56332         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
56333         * modules/mkdir-p (Files): Add lib/same-inode.h.
56334         * modules/same (Files): Add lib/same-inode.h.
56335
56336 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56339         This is to keep the terminology clean; POSIX talks about
56340         "absolute pathnames", not "full pathnames", but the GNU
56341         Coding Standards say to use "path" for something else;
56342         so use "absolute" to keep both sides happy.
56343         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56344         Set gl_absolute_header, not gl_full_header_path.
56345         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56346         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56347         All uses changed.
56348
56349         Merge from coreutils.
56350
56351         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56352
56353         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56354         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56355         want to require the building of c-strtod.o.
56356         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56357         needs -lm directly.
56358         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56359
56360         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56361
56362         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56363         --as-needed option if available.  Problem reported by Albert Chin in
56364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56365         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56366         cc merely issues a bunch of annoying warnings for --as-needed
56367         (this problem was reported by Bob Proulx).  Also, try linking with
56368         -lm to detect a bug in binutils 2.16 (this problem was reported
56369         by Ralf Wildenhues).
56370
56371         2006-06-18  Jim Meyering  <jim@meyering.net>
56372
56373         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56374         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56375         macro.
56376         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56377         also check for glibc-2.4's abort-inducing bug.
56378
56379         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56380         Low-probability clean-up should be to use rmdir to get rid of
56381         the just-created directory, not unlink.
56382
56383         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56384         configure fail, and request a bug report to inform us about it.
56385         Add a comment that, barring reports to the contrary, in 2007 we'll
56386         assume ftruncate is universally available.
56387
56388         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56389
56390         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56391
56392         2006-03-12  Jim Meyering  <jim@meyering.net>
56393
56394         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56395         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56396         * m4/same.m4 (gl_SAME): Likewise.
56397         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56398
56399         2006-03-11  Eric Blake  <ebb9@byu.net>
56400
56401         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56402         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56403         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56404         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56405
56406 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56409         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56410         reported by Mark D. Baushke, one in
56411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56412
56413         Merge from coreutils.
56414
56415         * lib/.cppi-disable: Add stdint_.h.
56416         * lib/.cvsignore: Add stdint.h.
56417
56418         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56421         both double and long double versions.
56422         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56423         * lib/xstrtold.c: New file.
56424         * lib/xstrtod.h (xstrtold): New decl.
56425
56426         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * lib/filemode.c (setst): Remove.
56429         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56430         (arguably) clearer, and the generated code is a bit smaller on my
56431         Debian GNU/Linux stable x86 host.
56432
56433         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56436         Assume that filemode.h includes sys/types.h and sys/stat.h.
56437         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56438         (ftypelet): Reorder to put common cases first, for efficiency.
56439         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56440         to do 'M'.
56441         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56442         of 10, for compatibility with FreeBSD.  All callers changed.
56443         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56444         types that can't be deduced solely from st_mode.  First arg is now a
56445         const pointer.
56446         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56447         (strmode): Renamed from mode_string.
56448         (filemodestring): New decl.
56449         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56450         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56451         needed.
56452         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56453
56454         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56457         fsusage.h now does that.  Include fsusage.h first, to test interface.
56458         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56459         at most one method (the old code could have generated decls that
56460         didn't conform to C89, not that this was ever exercised).
56461         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56462
56463         2006-03-19  Jim Meyering  <jim@meyering.net>
56464
56465         Work even in a chroot where d_ino values for entries in "/"
56466         don't match the stat.st_ino values for the same names.
56467         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56468         number, iterate through all entries again, using lstat instead.
56469         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56470         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56471
56472         * lib/getcwd.c (__getcwd): Clarify a comment.
56473         Use memcpy in place of a call to strcpy.
56474
56475         2006-03-12  Jim Meyering  <jim@meyering.net>
56476
56477         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56478         matches that of the current directory (which we're about to chdir ".."
56479         out of), then save the dev-ino of the parent, instead.
56480
56481         * lib/same-inode.h (SAME_INODE): New file/macro.
56482         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56483         Include "same-inode.h", instead.
56484         * lib/same.c: Likewise.
56485         * lib/cycle-check.h: Include "same-inode.h".
56486         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56487         * lib/cycle-check.c (SAME_INODE): Remove definition.
56488         * lib/root-dev-ino.h: Include "same-inode.h".
56489
56490         2006-03-11  Eric Blake  <ebb9@byu.net>
56491
56492         * lib/same.c (same_name): s/base_name/last_component/
56493         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56494         * lib/filenamecat.c (file_name_concat): Likewise.
56495
56496         2006-03-11  Eric Blake  <ebb9@byu.net>,
56497                     Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56500         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56501         drive prefix.
56502         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56503         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56504         (last_component): New method.
56505         * lib/dirname.c (dir_len): Determine when drive letters need a
56506         subsequent slash.  Preserve // when it is special.
56507         (dir_name): Don't append dot when drive letter is absolute.
56508         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56509         * lib/basename.c (base_name): New semantics - malloc the result.
56510         Preserve // when it is special.  Preserve relative files that look
56511         like drive letters.
56512         (base_len): Preserve // when it is special.
56513         (last_component): New method, similar to old base_name semantics.
56514         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56515         base_name.  Strip redundant slashes from ///.
56516
56517 2006-07-03  Jim Meyering  <jim@meyering.net>
56518
56519         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56520         macro is used before the first cycle_check call.
56521
56522 2006-07-03  Eric Blake  <ebb9@byu.net>
56523
56524         * modules/dirname (Depends-on): Add xstrndup.
56525
56526 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56527
56528         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56529         test cases, so that config.log is a bit easier to follow.
56530
56531 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56532
56533         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56534         both are 64 bits, since this seems to be the tradition, and this
56535         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56536         we ever run into a host that prefers long long to long in this
56537         case, we'll need another configure-time test.  Problem reported by
56538         Jim Meyering.
56539
56540 2006-07-02  Eric Blake  <ebb9@byu.net>
56541
56542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56543
56544 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56545
56546         * modules/inttypes (Depends-on): No longer depends on stdint.
56547         * modules/stdint (Description): Say more about assumptions.
56548         Say that the fast types might differ.  Say macros are used.
56549         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56550         (Makefile.am): Revise list of substituted symbols to match
56551         new stdint.m4.
56552         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56553         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56554         * tests/test-stdint.c (verify_same_types)
56555         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56556         the code conforms to C99/C89.
56557         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56558         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56559
56560 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56561
56562         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56563         but fix a bug, by requiring at least 64 bits.
56564         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56565         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56566         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56567         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56568
56569         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56570         changes.  Make 2.59 a prerequisite.  Check and substitute for
56571         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56572         inttypes.h.  Do not use special include files; just use the
56573         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56574         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56575         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56576         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56577         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56578         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56579         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56580         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56581         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56582         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56583         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56584         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56585         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56586         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56587         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56588         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56589         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56590         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56591         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56592         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56593         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56594         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56595         not check for things that C99 does not require, e.g., int8_t.  If
56596         a test isn't needed unless <stdint.h> isn't working, and is
56597         unlikely to be needed for any other reason, then don't do it
56598         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56599         size_t, since we assume C89 freestanding at least.  Do not check
56600         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56601         the right thing even if the types are not defined.  Instead use:
56602         (gl_STDINT_TYPE_PROPERTIES): New macro.
56603         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56604         testing whether <sys/types.h> clashes, as Autoconf does this for
56605         us now.  All uses removed.
56606         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56607         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56608         (gl_CHECK_TYPE_SAME):
56609         Remove; no longer needed.
56610         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56611         exists, since we'll return 0 anyway in that case.
56612         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56613
56614 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56617         possible collision with system files.
56618         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56619         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56620         WCHAR_MIN and WCHAR_MAX in this case.
56621         (<stddef.h>): Do not include; no longer needed.
56622         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56623         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56624         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56625         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56626         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56627         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56628         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56629         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56630         !defined(__c99))]: Include in this case too, since it's harmless
56631         now.
56632         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56633         dangerous to do so.
56634         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56635         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56636         (_STDINT_MIN, _STDINT_MAX): New macros.
56637         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56638         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56639         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56640         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56641         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56642         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56643         macros, not typedefs; this simplifies things quite a bit.
56644         Use long int for all types narrower than int64_t.
56645         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56646         Define in terms of long long int or int64_t or long int,
56647         not int64_t or int32_t.  This saves some compile-time testing.
56648         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56649         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56650         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56651         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56652         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56653         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56654         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56655         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56656         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56657         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56658         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56659         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56660         undef any previous version and define our own version, for
56661         simplicity and consistency with the new macros for types.
56662         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56663         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56664         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56665         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56666         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56667         @WINT_T_SUFFIX@ to keep things simple here.
56668         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56669         Simplify by assuming typical 8/16/32/64 host, since we're
56670         already doing that elsewhere anyway.
56671         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56672         and assume long long int is 64 bits if available.  This
56673         speeds up 'configure'.
56674
56675 2006-07-01  Eric Blake  <ebb9@byu.net>
56676
56677         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56678         Reported by Andreas Buening.
56679
56680 2006-07-01  Eric Blake  <ebb9@byu.net>
56681
56682         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56683
56684 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56685
56686         * lib/getaddrinfo.c: fixed typo
56687
56688 2006-06-29  Jim Meyering  <jim@meyering.net>
56689
56690         * modules/strftime (Maintainer): Add my name, since with the
56691         FPRINTFTIME changes strftime.c has forked from glibc.
56692
56693 2006-06-29  Eric Blake  <ebb9@byu.net>
56694
56695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56696
56697 2006-06-29  Eric Blake  <ebb9@byu.net>
56698
56699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56700
56701 2006-06-29  Eric Blake  <ebb9@byu.net>
56702
56703         * lib/stat_.h: New file.
56704
56705 2006-06-29  Eric Blake  <ebb9@byu.net>
56706
56707         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56708         unused static function.
56709
56710 2006-06-29  Eric Blake  <ebb9@byu.net>
56711
56712         * doc/functions.texi (Function Portability): Document missing lstat
56713         on mingw.
56714
56715 2006-06-29  Eric Blake  <ebb9@byu.net>
56716
56717         * MODULES.html.sh: Add sys_stat.
56718         * modules/sys_stat: New module.
56719         * modules/mkstemp (Depends-on): Add sys_stat.
56720
56721 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56722
56723         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56724
56725 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56726
56727         * m4/c-bs-a.m4: Removed.
56728
56729 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56730
56731         * lib/strftime.c: Assume strftime() exists.
56732
56733 2006-06-29  Derek Price  <derek@ximbiot.com>
56734
56735         * modules/c-bs-a: Removed - \a is C89.
56736         * MODULES.html.sh: Remove c-bs-a.
56737
56738 2006-06-29  Bruno Haible  <bruno@clisp.org>
56739
56740         * modules/wcwidth (License): Change to LGPL.
56741
56742 2006-06-28  Simon Josefsson  <jas@extundo.com>
56743
56744         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56745         on _WIN32.
56746
56747         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56748         getnameinfo.
56749
56750 2006-06-28  Simon Josefsson  <jas@extundo.com>
56751
56752         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56753
56754 2006-06-28  Simon Josefsson  <jas@extundo.com>
56755
56756         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56757         functions there.  It will succeed on Windows XP, but on Windows
56758         2000 and (presumably) earlier, it will fail, and use the internal
56759         re-implementation.
56760         (use_win32_p): New function.
56761         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56762         Support AI_NUMERICSERV to disable getservbyname.
56763         (getnameinfo): New function, only supports
56764         NI_NUMERICHOST|NI_NUMERICSERV for now.
56765
56766         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56767         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56768         getnameinfo.
56769
56770 2006-06-28  Eric Blake  <ebb9@byu.net>
56771
56772         * modules/wcwidth: New file.
56773         * modules/mbchar (Depends-on): Add wcwidth.
56774         * modules/mbswidth (Depends-on): Add wcwidth.
56775         * MODULES.html.sh: Add wcwidth.
56776
56777 2006-06-28  Eric Blake  <ebb9@byu.net>
56778
56779         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56781
56782 2006-06-28  Eric Blake  <ebb9@byu.net>
56783
56784         * lib/xvasprintf.h: Fix comments.
56785
56786 2006-06-28  Eric Blake  <ebb9@byu.net>
56787
56788         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56789         * lib/mbswidth.c (wcwidth): Move from here...
56790         * lib/wcwidth.h: ...to this new file.
56791
56792 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56793
56794         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56795
56796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56797         it's obsolete.
56798         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56799
56800 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56801
56802         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56803         Autoconf 2.60 says this stuff was obsolete.
56804
56805 2006-06-28  Bruno Haible  <bruno@clisp.org>
56806
56807         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56808
56809 2006-06-28  Bruno Haible  <bruno@clisp.org>
56810
56811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56812         gt_TYPE_WCHAR_T.
56813
56814 2006-06-28  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56817         declaration for wcwidth.
56818         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56819
56820 2006-06-28  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56823         (mkdir): Define using _mkdir.
56824
56825 2006-06-28  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/getaddrinfo.h: Fix POSIX URL.
56828         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56829         _WIN32.
56830         (use_win32_p): Make static.
56831         (getaddrinfo): Reject service name if it is empty or does not consist
56832         solely of decimal digits, or if its value is > 65535.
56833         (getnameinfo): Remove useless casts.
56834
56835 2006-06-27  Simon Josefsson  <jas@extundo.com>
56836
56837         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56838         Eggert and Martin Lambers.
56839
56840 2006-06-27  Simon Josefsson  <jas@extundo.com>
56841
56842         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56843         Eggert and Martin Lambers.
56844
56845 2006-06-27  Bruno Haible  <bruno@clisp.org>
56846
56847         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56848         result to 0, not to empty.
56849         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56850
56851 2006-06-27  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56854
56855 2006-06-26  Simon Josefsson  <jas@extundo.com>
56856
56857         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56858         present.
56859
56860 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56863         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56865
56866 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56867
56868         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56869
56870 2006-06-26  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56873
56874 2006-06-26  Bruno Haible  <bruno@clisp.org>
56875
56876         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56877
56878 2006-06-26  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56881         SGI C compiler in pre-C99 mode.
56882         Suggested by Mark D. Baushke and Larry Jones.
56883
56884 2006-06-26  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56887         WCHAR_MAX.
56888         Reported by Mark D. Baushke and Larry Jones.
56889
56890 2006-06-26  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56893         in pre-C99 mode.
56894         Suggested by Mark D. Baushke and Larry Jones.
56895
56896 2006-06-23  Simon Josefsson  <jas@extundo.com>
56897             Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56900         Emit mostlyclean-local rule.
56901         (func_emit_tests_Makefile_am): Likewise.
56902         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56903
56904 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56905
56906         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56907
56908 2006-06-23  Bruno Haible  <bruno@clisp.org>
56909
56910         * tests/test-stdint.c: Update to match ISO C 99 Technical
56911         Corrigendum 1.
56912
56913 2006-06-23  Bruno Haible  <bruno@clisp.org>
56914
56915         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56916
56917 2006-06-23  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/stdint_.h: Treat IRIX like OpenBSD.
56920
56921 2006-06-23  Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56924         ISO C 99 Technical Corrigendum 1.
56925
56926 2006-06-22  Simon Josefsson  <jas@extundo.com>
56927
56928         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56929         MinGW.
56930
56931 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56934         needed.  Some compiler complained about some of them.  Problem reported
56935         by Larry Jones in
56936         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56937
56938 2006-06-21  Simon Josefsson  <jas@extundo.com>
56939
56940         * tests/test-getaddrinfo.c: New file.
56941
56942         * modules/getaddrinfo-tests: New file.
56943
56944         * MODULES.html.sh: Add inet_pton.
56945
56946         * modules/inet_pton: New file.
56947
56948 2006-06-21  Simon Josefsson  <jas@extundo.com>
56949
56950         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56951         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56952         of using the (limited) gnulib implementation on Windows XP.
56953
56954         * m4/inet_pton.m4: New file.
56955
56956 2006-06-21  Simon Josefsson  <jas@extundo.com>
56957
56958         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56959         variable.
56960
56961         * lib/socket_.h: Don't define WINVER.
56962
56963         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56964         slightly modified to work in gnulib.
56965
56966 2006-06-21  Simon Josefsson  <jas@extundo.com>
56967
56968         * doc/gnulib.texi (Windows sockets): Add.
56969
56970 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56971
56972         * lib/read-file.c (fread_file): Start with buffer allocation of
56973         0 bytes rather than 1 byte; this simplifies the code.
56974         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56975         code to free buffer and save/restore errno.
56976         (internal_read_file): Remove unused local.
56977
56978 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56981         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56982         Problem reported by Denis Excoffier in
56983         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56984
56985 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56986
56987         * modules/sys_socket, modules/socklen: Include sys/types since
56988         FreeBSD 4.x's sys/socket.h needs it.
56989
56990 2006-06-19  Simon Josefsson  <jas@extundo.com>
56991
56992         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56993
56994 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56997
56998 2006-06-19  Bruno Haible  <bruno@clisp.org>
56999
57000         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57001         and FULL_PATH_INTTYPES_H in angle brackets.
57002         Reported by Mark D. Baushke <mdb@gnu.org>.
57003
57004 2006-06-17  Eric Blake  <ebb9@byu.net>
57005
57006         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57007         errno.
57008
57009 2006-06-17  Bruno Haible  <bruno@clisp.org>
57010
57011         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57012         <sys/inttypes.h>.
57013
57014 2006-06-17  Bruno Haible  <bruno@clisp.org>
57015
57016         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57017         whether errno is declared. Assume <errno.h> declares errno.
57018
57019 2006-06-17  Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57022
57023 2006-06-17  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57026         problem on Solaris 2.5.1.
57027
57028 2006-06-16  Eric Blake  <ebb9@byu.net>
57029
57030         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57031         * lib/unicodeio.c [!defined errno]: Likewise.
57032         * lib/strtol.c [!defined errno]: Likewise.
57033         * lib/strtod.c [!defined errno]: Likewise.
57034
57035 2006-06-15  Eric Blake  <ebb9@byu.net>
57036
57037         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57038
57039 2006-06-15  Eric Blake  <ebb9@byu.net>
57040
57041         * config/srclist.txt (ssize_t.m4): Lose sync.
57042
57043 2006-06-15  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/stdint (Files): Include m4/full-header-path.m4,
57046         m4/size_max.m4, m4/wchar_t.m4.
57047         (Makefile.am): Many more substitutions.
57048         * modules/stdint-tests: New file.
57049         * tests/test-stdint.c: New file.
57050
57051 2006-06-15  Bruno Haible  <bruno@clisp.org>
57052
57053         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57054         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57055         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57056         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57057         gl_CHECK_TYPE_SAME): New macros.
57058
57059 2006-06-15  Bruno Haible  <bruno@clisp.org>
57060
57061         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57062
57063 2006-06-15  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/stdint_.h: Rewritten to be fully auto-configured.
57066         Fixes bug on HP-UX/IA64.
57067
57068 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * lib/getdate.y (__attribute__): Don't define if already defined.
57071         Problem reported by Larry Jones.
57072         * lib/utimens.c (__attribute__): Likewise.
57073
57074 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57075
57076         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57077         reported by Andreas Schwab.
57078
57079 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57080             Bruno Haible  <bruno@clisp.org>
57081
57082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57083         check for the declaration of strnlen and a run test that exposes the
57084         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57085         rpl_strndup.
57086
57087 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57088             Bruno Haible  <bruno@clisp.org>
57089
57090         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57091
57092 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57093
57094         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57095         compile test, for Tru64 4.0D.
57096
57097 2006-05-28  Karl Berry  <karl@gnu.org>
57098
57099         * config/srclist.txt (printf-args.c): lose sync.
57100
57101 2006-05-26  Martin Lambers  <marlam@marlam.de>
57102
57103         * lib/getpass.c: Updates the test for the native W32 API, and adds
57104         missing includes, thus fixing compilation warnings.
57105
57106 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57107
57108         * lib/exclude.c (exclude_fnmatch): New function.
57109         (excluded_file_name): Call exclude_fnmatch.
57110         * lib/exclude.h (excluded_file_name): New prototype
57111
57112 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57113
57114         * lib/tempname.c (small_open, large_open): New macros.
57115         (__open, __open64) [!_LIBC]: Remove.
57116         (__gen_tempname): Use small_open and large_open instead of __open
57117         and __open64.  This fixes a portability bug on HP-UX 11.11i
57118         reported by Simon Wing-Tang in
57119         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57120
57121 2006-05-24  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57124         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57125         Reported by Thorsten Maerz <torte@netztorte.de> via
57126         Aaron Stone <aaron@serendipity.cx>.
57127
57128 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57131         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57132         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57133         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57134         not really conditional on the cache.
57135         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57136
57137 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57140         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57141         (my_usleep): Don't mishandle maximum value.
57142
57143 2006-05-19  Jim Meyering  <jim@meyering.net>
57144
57145         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57146
57147 2006-05-17  Bruno Haible  <bruno@clisp.org>
57148
57149         Cygwin portability.
57150         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57151
57152 2006-05-17  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/stdint_.h: Fix recognition of Cygwin.
57155
57156 2006-05-15  Bruno Haible  <bruno@clisp.org>
57157
57158         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57159         on libtool patch by Ralf Wildenhues.
57160
57161 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57162
57163         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57164         test for C99 conformance; (bool) 0.5 is an integer constant
57165         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57166         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57167
57168 2006-05-11  Simon Josefsson  <jas@extundo.com>
57169
57170         * m4/xvasprintf.m4: Fix obvious typo.
57171
57172 2006-05-11  Jim Meyering  <jim@meyering.net>
57173
57174         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57175         James Lemley.
57176
57177 2006-05-10  Simon Josefsson  <jas@extundo.com>
57178
57179         * lib/md4.c: Typo fix, update copyright years.
57180         (K1, K2): Don't use L because it turn computations into 64-bit on
57181         64-bit platforms.
57182
57183 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57184
57185         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57186         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57187         unwanted sign propagation, e.g., on hosts with 64-bit int.
57188         There still are some problems with reeelly weird theoretical hosts
57189         (e.g., 33-bit int) but it's not worth worrying about now.
57190         * lib/sha1.c (rol): Likewise.
57191         (K1, K2, K3, K4): Remove unnecessary L suffix.
57192
57193 2006-05-10  Bruno Haible  <bruno@clisp.org>
57194
57195         * lib/des.c: Cast to avoid warnings.
57196
57197 2006-05-09  Bruno Haible  <bruno@clisp.org>
57198
57199         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57200         (Depends-on): Depend also on xsize, stdarg.
57201         (configure.ac): Add gl_XVASPRINTF.
57202
57203 2006-05-09  Bruno Haible  <bruno@clisp.org>
57204
57205         * m4/xvasprintf.m4: New file.
57206
57207 2006-05-09  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57210         (EOVERFLOW): Define fallback value.
57211         (xstrcat): New function.
57212         (xvasprintf): Recognize the special case of a string concatenation.
57213
57214 2006-05-08  Eric Blake  <ebb9@byu.net>
57215
57216         * gnulib-tool (func_version): Base copyright year on CVS date.
57217         (func_emit_copyright_notice): New function.
57218         (func_emit_lib_Makefile_am): Use it.
57219         (func_emit_tests_Makefile_am): Likewise.
57220         (func_import): Likewise.
57221
57222 2006-05-08  Bruno Haible  <bruno@clisp.org>
57223
57224         * modules/stdarg: New file.
57225         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57226
57227 2006-05-08  Bruno Haible  <bruno@clisp.org>
57228
57229         * m4/stdarg.m4: New file, from GNU gettext.
57230
57231 2006-05-08  Bruno Haible  <bruno@clisp.org>
57232
57233         * config/srclist.txt (build-aux/config.rpath): different from latest
57234         release.
57235
57236 2006-05-08  Bruno Haible  <bruno@clisp.org>
57237
57238         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57239
57240 2006-05-05  Jim Meyering  <jim@meyering.net>
57241
57242         * m4/warning.m4: New file, derived from bison's file by the same name.
57243
57244 2006-05-03  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/stdint_.h: Shorter URL.
57247         * lib/inttypes.h: Likewise.
57248
57249 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57252
57253 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * lib/verify.h: Document the internals better.  Most of this change
57256         was written by Bruno Haible.
57257
57258 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57259
57260         * doc/verify.texi: New file, partly based on a proposal by
57261         Bruno Haible.
57262
57263 2006-05-02  Bruno Haible  <bruno@clisp.org>
57264
57265         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57266         test from here...
57267         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57268
57269 2006-04-29  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57272         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57273
57274 2006-04-29  Bruno Haible  <bruno@clisp.org>
57275
57276         * gnulib-tool: Make --update option actually work.
57277
57278 2006-04-29  Bruno Haible  <bruno@clisp.org>
57279
57280         * doc/gcd.texi: New file.
57281         * doc/gnulib.texi: Include it.
57282
57283 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * lib/getdate.y (get_date): When adding relative date, start with the
57286         initial time, not with the result of the first mktime call.
57287
57288 2006-04-25  Bruno Haible  <bruno@clisp.org>
57289
57290         * gnulib-tool (func_import): Output the include directives in three
57291         blocks, sorted separately.
57292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57293
57294 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
57297         to define main with arguments, for C++.  Reported by Eric Blake.
57298         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
57299         Prefer 'int main ()' to 'int main (void)', for C++.
57300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
57302         for 'main', for C99 and C++.
57303
57304 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57305
57306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
57307         Don't assume that exit status -1 is valid.
57308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57309         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57310         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57311         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
57312         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
57313         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
57314         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
57315         functions can be used without declaring them, or that you can
57316         exit with status -1.
57317         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57318
57319 2006-04-24  Karl Berry  <karl@gnu.org>
57320
57321         * config/srclist.txt (longdouble.m4): sync lost.
57322
57323 2006-04-24  Eric Blake  <ebb9@byu.net>
57324
57325         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
57326
57327 2006-04-24  Bruno Haible  <bruno@clisp.org>
57328
57329         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
57330         poll() implementation in AIX.
57331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57332
57333 2006-04-24  Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57336         assigned exactly once.
57337
57338 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57339             Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57342         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57343         for AM_CPPFLAGS.
57344
57345 2006-04-23  Bruno Haible  <bruno@clisp.org>
57346
57347         * modules/copy-file: Depend on unistd.
57348         * modules/execute: Likewise.
57349         * modules/fatal-signal: Likewise.
57350         * modules/findprog: Likewise.
57351         * modules/mkdtemp : Likewise.
57352         * modules/pipe: Likewise.
57353         * modules/wait-process: Likewise.
57354
57355 2006-04-23  Bruno Haible  <bruno@clisp.org>
57356
57357         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57358         condition was already detected.
57359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57360
57361 2006-04-23  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/copy-file.c: Include <unistd.h> unconditionally.
57364         * lib/execute.c: Likewise.
57365         * lib/fatal-signal.c: Likewise.
57366         * lib/findprog.c: Likewise.
57367         * lib/mkdtemp.c: Likewise.
57368         * lib/pipe.h: Likewise.
57369         * lib/pipe.c: Likewise.
57370         * lib/wait-process.h: Likewise.
57371
57372 2006-04-23  Bruno Haible  <bruno@clisp.org>
57373
57374         * gnulib-tool (func_usage): Fix --import description. Document
57375         --update.
57376         (func_import): Create temporary file in a temporary directory, if
57377         --dry-run is specified. Silence errors from 'grep' when there are no
57378         m4 files in $m4dir.
57379         (func_create_testdir): Silence errors from 'grep' when there are no
57380         m4 files in $m4dir.
57381         Reported by Karl Berry <karl@freefriends.org>.
57382
57383 2006-04-20  Bruno Haible  <bruno@clisp.org>
57384
57385         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57386         one argument, so that the code will be portable to Autoconf 2.60.
57387         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57388         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57389         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57390
57391 2006-04-19  Derek Price  <derek@ximbiot.com>
57392             Eric Blake  <ebb9@byu.net>
57393
57394         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57395         rather than "/full/path.h".  Update comment to match.  Shorten &
57396         generalize m4_translit call via AS_TR_CPP.
57397
57398 2006-04-19  Derek Price  <derek@ximbiot.com>
57399             Eric Blake  <ebb9@byu.net>
57400
57401         * lib/inttypes.h: Correct grammar in comment.
57402
57403 2006-04-18  Derek Price  <derek@ximbiot.com>
57404             Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * modules/inttypes: New file.
57407         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57408
57409 2006-04-18  Derek Price  <derek@ximbiot.com>
57410             Paul Eggert  <eggert@cs.ucla.edu>
57411
57412         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57413         New files.
57414
57415 2006-04-18  Derek Price  <derek@ximbiot.com>
57416             Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * lib/inttypes.h: New file.
57419         * lib/strtoimax.c: Assume <inttypes.h>.
57420
57421 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57424         isn't mounted.  Problem reported by Kir Kolyshkin.
57425
57426 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57427
57428         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57429         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57430         Derek R. Price.
57431         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57432         implementation.
57433
57434 2006-04-12  Eric Blake  <ebb9@byu.net>
57435
57436         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57437         is now done automatically by the corresponding Autoconf macro.
57438
57439 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57442         time_r.h.
57443
57444 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         Merge regex changes from libc, removing some of our
57447         POSIX-conformance changes that were rejected and redoing them in a
57448         less-intrusive way.
57449
57450         * lib/regcomp.c (re_compile_internal, init_dfa):
57451         Length arg is now size_t, not Idx.  All uses changed.
57452         (peek_token): Forward decl now says internal_function.
57453         (__re_error_msgid, __re_error_msgid_idx):
57454         Now static rather than extern with attribute_hidden.
57455         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57456         For some reason libc prefers K&R style defns for external functions.
57457         (regerror) [!defined _LIBC]: Likewise.
57458         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57459         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57460         (build_range_exp, build_collating_symbol):
57461         Use K&R-style defn.
57462         (re_compile_fastmap): Use '\0' to memset, not 0.
57463         (utf8_sb_map): Make the calculations more obvious.
57464         (init_dfa, parse_bracket_exp, build_charclass_op):
57465         Call calloc and cast result, as glibc does.
57466         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57467         (build_range_exp, build_collating_symbol):
57468         Now internal functions.
57469
57470         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57471
57472         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57473         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57474         Don't depend on VMS; depend on __VMS instead, for POSIX
57475         namespace cleanness.
57476         (regoff_t): Define to ssize_t, not long int.
57477
57478         Remove the REG_ macros named below.  Instead, make the old names
57479         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57480         __USE_GNU_REGEX.
57481         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57482         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57483         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57484         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57485         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57486         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57487         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57488         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57489         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57490         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57491         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57492         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57493         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57494         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57495         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57496         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57497         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57498         (REG_NREGS):
57499         Remove.  All uses replaced by the old RE_* names.
57500         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57501         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57502         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57503         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57504         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57505         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57506         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57507         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57508         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57509         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57510         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57511         Don't bother having these macros be independent of each others'
57512         values, since they no longer exist in the POSIX name space.
57513
57514         Rename the following member names back to their old names,
57515         unless !__USE_GNU_REGEX.  All uses changed back.
57516         (buffer): Renamed from re_buffer.
57517         (allocated): Renamed from re_allocated.
57518         (used): Renamed from re_used.
57519         (syntax): Renamed from re_syntax.
57520         (fastmap): Renamed from re_fastmap.
57521         (translate): Renamed from re_translate.
57522         (can_be_null): Renamed from re_can_be_null.
57523         (regs_allocated): Renamed from re_regs_allocated.
57524         (fastmap_accurate): Renamed from re_fastmap_accurate.
57525         (no_sub): Renamed from re_no_sub.
57526         (not_bol): Renamed from re_not_bol.
57527         (not_eol): Renamed from re_not_eol.
57528         (newline_anchor): Renamed from re_newline_anchor.
57529         (num_regs): Renamed from rm_num_regs.
57530         (start): Renamed from rm_start.
57531         (end): Renamed from rm_end.
57532
57533         (free_state): Move up a bit.
57534
57535         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57536         #define to be empty.
57537         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57538         when that is what is intended.
57539         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57540         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57541         (MAX): New macro.
57542         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57543         All uses changed back to re_malloc, etc.  It's now the caller's
57544         responsibility to check for overflow; all callers changed.
57545         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57546         (re_x2nrealloc): Remove.
57547         (free_state): Remove decl.
57548
57549         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57550         (re_set_registers, re_exec):
57551         Use K&R-style defn.
57552
57553         2006-01-31  Roland McGrath  <roland@redhat.com>
57554
57555         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57556         Reported by Mike Frysinger <vapier@gentoo.org>.
57557
57558         2006-01-15  Andreas Jaeger  <aj@suse.de>
57559
57560         [BZ #1950]
57561         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57562         build_wcs_upper_buffer change.
57563         (build_wcs_upper_buffer): Change return type.
57564
57565         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57566
57567         * lib/regex_internal.h: Include <stdint.h> if available.
57568
57569         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57570
57571         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57572
57573         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57574
57575         * lib/regcomp.c: Adjust for changed secondary hash function.
57576
57577         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57578
57579         * lib/regex.h: Pretty printing.
57580         Clean up namespace a bit.
57581
57582         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57583
57584         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57585         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57586
57587         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57588                     Ulrich Drepper  <drepper@redhat.com>
57589
57590         [BZ #1302]
57591         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57592         changed.
57593         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57594
57595         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57596
57597         [BZ #281]
57598         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57599         * lib/regcomp.c: Remove unnecessary uses of
57600         unsigned RE_TRANSLATE_TYPE.
57601         * lib/regex_internal.h: Likewise.
57602         * lib/regex_internal.c: Likewise.
57603         * lib/regexec.c: Likewise.
57604         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57605
57606         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57607
57608         * lib/regexec.c (find_recover_state): Remove unnecessary
57609         initialization.
57610         (transit_state_bkref): Make DFA a const pointer.
57611         (get_subexp): Likewise.
57612         (check_arrival): Likewise.
57613         (update_cur_sifted_state): Likewise.
57614         (re_search_internal): Likewise.
57615         (prune_impossible_nodes): Likewise.
57616         (acquire_init_state_context): Likewise.
57617         (proceed_next_node): Likewise.
57618         (set_regs): Likewise.
57619         (free_fail_stack_return): Likewise.
57620         (check_arrival_expand_ecl): Mark DFA parameter as const.
57621         (check_arrival_expand_ecl_sub): Likewise.
57622         (check_subexp_limits): Likewise.
57623         (sub_epsilon_src_nodes):  Likewise.
57624         (add_epsilon_src_nodes):  Likewise.
57625         (merge_state_array): Likewise.
57626         (update_regs): Likewise.
57627         (build_trtable): Likewise.
57628         (sift_states_backward): Mark MCTX parameter as const.
57629         (build_sifted_states): Likewise.
57630         (update_cur_sifted_state): Likewise.
57631         (sift_states_mkref): Likewise.
57632         (check_arrival_expand_ecl): Mark eclosure as const.
57633         (check_dst_limits_calc_pos_1): Likewise.
57634         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57635         pointer.
57636
57637         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57638
57639         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57640         (transit_state_sb): Likewise.
57641         (transit_state_mb): Likewise.
57642         (sift_states_iter_mb): Likewise.
57643         (check_arrival_add_next_nodes): Likewise.
57644         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57645         [_LIBC] (re_search_2_stub): Use mempcpy.
57646
57647         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57648         mbrtowc for very simple UTF-8 case.
57649
57650         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57651         a pointer-to-const.
57652         (re_acquire_state_context): Likewise.
57653         * lib/regex_internal.h: Adjust prototypes.
57654
57655         * lib/regex.c: Prevent using C++ compilers.
57656
57657         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57658         (re_acquire_state_context): Likewise.
57659
57660 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * modules/regex (Depends-on): Add ssize_t.
57663
57664 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57667         translation table.
57668
57669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57672
57673 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57674             Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57677         <sys/types.h> and <inttypes.h>.
57678
57679 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57680
57681         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57682         `__error_t_defined', so argp.h will not typedef the former.
57683
57684 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57685
57686         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57687         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57688         glibc names.  Even if glibc is changed to conform to POSIX, the
57689         traditional names will be available anyway, since regex depends on
57690         the extensions module.  Also, fix a longstanding typo in the
57691         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57692         reported by Emanuele Giaquinta.  Also, change sense of cached
57693         variable, so that the message makes sense.
57694
57695 2006-03-24  Simon Josefsson  <jas@extundo.com>
57696
57697         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57698         including some doc fixes.
57699         (base64_encode_alloc): Fix +1 bug on allocation failures.
57700
57701 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57702
57703         * lib/base64.c (base64_encode): Do not read past end of array with
57704         unsanitized input on systems with CHAR_BIT > 8.
57705
57706 2006-03-24  Eric Blake  <ebb9@byu.net>
57707
57708         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57709
57710 2006-03-22  Karl Berry  <karl@gnu.org>
57711
57712         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57713         * config/srclistvars.sh (COREUTILS): new var.
57714
57715 2006-03-17  Jim Meyering  <jim@meyering.net>
57716
57717         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57718         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57719
57720 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57723         no longer needs it.  Instead, check that regoff_t is as least
57724         as wide as ptrdiff_t.
57725
57726         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57727         so that our regex.h stays compatible with the installed regex.
57728         This is helpful for installers who configure --without-included-regex.
57729         Problem reported by Emanuele Giaquinta.
57730
57731 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57734         Typedef to long int, not to off_, as POSIX will likely change
57735         in that direction.
57736
57737 2006-03-15  Eric Blake  <ebb9@byu.net>
57738
57739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57740
57741 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57742
57743         * lib/argp-help.c (validate_uparams): Fix typo
57744         * lib/argp-parse.c (argp_default_options): Consistently begin help
57745         messages with a lowercase letter.
57746
57747 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57748
57749         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57750         overrun buffers and shouldn't be used (much as gets shouldn't be
57751         used).
57752         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57753
57754 2006-03-08  Simon Josefsson  <jas@extundo.com>
57755
57756         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57757         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57758
57759 2006-03-08  Simon Josefsson  <jas@extundo.com>
57760
57761         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57762         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57763
57764 2006-03-08  Simon Josefsson  <jas@extundo.com>
57765
57766         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57767         signal that configure disabled the device.
57768
57769 2006-03-08  Simon Josefsson  <jas@extundo.com>
57770
57771         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57772         languages.
57773
57774 2006-03-07  Simon Josefsson  <jas@extundo.com>
57775
57776         * modules/getopt (Depends-on): Add unistd.
57777
57778         * modules/unistd: New file.
57779
57780 2006-03-07  Simon Josefsson  <jas@extundo.com>
57781
57782         * modules/gc-random: New file.
57783
57784 2006-03-07  Simon Josefsson  <jas@extundo.com>
57785
57786         * m4/unistd_h.m4: New file.
57787
57788 2006-03-07  Simon Josefsson  <jas@extundo.com>
57789
57790         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57791         test to be side-effect free by storing the result in the cache
57792         variable gl_cv_lib_readline, and moving the assignment of
57793         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57794         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57795
57796 2006-03-07  Simon Josefsson  <jas@extundo.com>
57797
57798         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57799         error on missing devices (the functions will return an error).
57800
57801         * m4/gc.m4: Move random stuff to gc-random.m4
57802
57803 2006-03-07  Simon Josefsson  <jas@extundo.com>
57804
57805         * lib/unistd_.h: New file.
57806
57807 2006-03-07  Simon Josefsson  <jas@extundo.com>
57808
57809         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57810
57811 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57812
57813         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57814         Problem reported by Juan Manuel Guerrero.
57815
57816 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57819         the unistd module.
57820         * lib/getlogin_r.c: Likewise.
57821         * lib/getlogin_r.h: Likewise.
57822         * lib/glob.c: Likewise.
57823         * lib/pagealign_alloc.c: Likewise.
57824         * lib/unistd_.h: Remove; no longer needed.
57825
57826 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57829         Add unistd.
57830         * modules/c-stack (Depends-on): Add unistd.
57831         * modules/getlogin_r: Likewise.
57832         * modules/glob: Likewise.
57833         * modules/pagealign_alloc: Likewise.
57834         * modules/unistd (Files): Remove lib/unistd_.h.
57835         (EXTRA_DIST): Remove.
57836         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57837         need unistd_.h.
57838         (MOSTLYCLEANFILES): Remove unistd.h-t.
57839
57840 2006-03-03  Simon Josefsson  <jas@extundo.com>
57841
57842         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57843
57844 2006-03-03  Simon Josefsson  <jas@extundo.com>
57845
57846         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57847         libidn and bison.
57848
57849 2006-03-03  Simon Josefsson  <jas@extundo.com>
57850
57851         * build-aux/maint.mk: Add indent target.
57852
57853 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57854
57855         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57856         our replacement poll.h in any case, to avoid a differing
57857         declaration from a system header.  Seen on AIX.
57858
57859 2006-03-01  Simon Josefsson  <jas@extundo.com>
57860
57861         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57862         <kasal@ucw.cz>.
57863
57864 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57865
57866         * modules/gettime (Depends-on): Add extensions module.
57867         * modules/nanosleep (Depends-on): Likewise.
57868         * modules/settime (Depends-on): Likewise.
57869
57870 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57873         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57874         pedantically.
57875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57876         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57877
57878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57879         not "==".  Reported by Ralf Wildenhues.
57880
57881 2006-03-01  Karl Berry  <karl@gnu.org>
57882
57883         * doc/Copyright/request-*: new files, synced from gnuorg.
57884
57885 2006-03-01  Karl Berry  <karl@gnu.org>
57886
57887         * config/srclist.txt (Copyright/*): new entries.
57888
57889 2006-02-28  Simon Josefsson  <jas@extundo.com>
57890
57891         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57892
57893 2006-02-27  Simon Josefsson  <jas@extundo.com>
57894
57895         * lib/base64.h: Indent #define's.  From Jim Meyering
57896         <jim@meyering.net>.
57897
57898 2006-02-27  Jim Meyering  <jim@meyering.net>
57899
57900         Revert the change of 2006-02-24, so these files can continue
57901         to be sync'd from gettext.
57902         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57903         of `config.h'.
57904
57905 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57906
57907         * modules/intprops: New file.
57908         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57909         Add intprops.
57910         * modules/getloadavg (Files): Remove lib/intprops.h.
57911         (Depends-on): Add intprops.
57912         * modules/human: Likewise.
57913         * modules/inttostr: Likewise.
57914         * modules/openat: Likewise.
57915         * modules/sig2str: Likewise.
57916         * modules/userspec: Likewise.
57917         * modules/utimecmp: Likewise.
57918         * modules/xnanosleep: Likewise.
57919         * modules/xstrtol: Likewise.
57920
57921 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57922
57923         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57924         * modules/lock-tests (TESTS): Use $(EXEEXT).
57925         * modules/tls-tests: Likewise.
57926         * modules/argp-tests: Likewise.
57927         (check_PROGRAMS): New var, replacing...
57928         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57929
57930 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57931
57932         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57933         `config.h'.
57934
57935 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57938
57939 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57940
57941         Sync from coreutils.
57942         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57943         gl_CHDIR_SAFER.
57944
57945 2006-02-22  Jim Meyering  <jim@meyering.net>
57946
57947         Sync from coreutils.
57948         * m4/chdir-safer.m4: New file.
57949
57950 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57953         AT_FDCWD exceeds INT_MAX.
57954         * lib/openat.h (AT_FDCWD): Likewise.
57955
57956 2006-02-17  Eric Blake  <address@hidden>
57957
57958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57959
57960 2006-02-16  Simon Josefsson  <jas@extundo.com>
57961
57962         * modules/getaddrinfo (Depends-on): Add sys_socket.
57963
57964 2006-02-15  Simon Josefsson  <jas@extundo.com>
57965
57966         * build-aux/maint.mk: Add dsyntax-check rule.
57967
57968 2006-02-15  Eric Blake  <ebb9@byu.net>
57969
57970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57971         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57972         'present but cannot compile' warnings on cygwin.
57973         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57974         use ws2tcpip.h if sys/socket.h works.
57975         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57976         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57977
57978 2006-02-14  Simon Josefsson  <jas@extundo.com>
57979
57980         * modules/maintainer-makefile (Files): Rename.
57981
57982         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57983         and (the local) Makefile.cfg to maint-cfg.mk.
57984
57985         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57986         to the latter.
57987
57988         * modules/maintainer-makefile: New module.
57989
57990         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57991         severaly stripped to make it possible to build it up from scratch
57992         with reliable tests.
57993
57994         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57995         fixes to permit overriding the default actions when configure and
57996         makefile are not available.
57997
57998 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         Sync from coreutils.
58001         * modules/lstat (Depends-on): Don't depend on xalloc.
58002         (License): Change from GPL to LGPL, since this is now simply a
58003         replacement for a libc function.
58004
58005 2006-02-14  Jim Meyering  <jim@meyering.net>
58006
58007         Sync from coreutils.
58008
58009         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58010         failure on deficient systems, and simplify gnulib lgpl dependencies.
58011         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58012         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58013
58014         * lib/xalloc-die.c: Remove unused definition of N_.
58015
58016 2006-02-14  Jim Meyering  <jim@meyering.net>
58017
58018         Sync from coreutils.
58019         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58020         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58021         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58022         double-quote uses of that variable, to accommodate the rare case in
58023         which getmntent is available in none of the libraries checked.  This
58024         happens at least on FreeBSD 5.0.
58025
58026 2006-02-13  Simon Josefsson  <jas@extundo.com>
58027
58028         * gnulib-tool (Usage): Fix --import, from
58029         karl@freefriends.org (Karl Berry).
58030
58031 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58032
58033         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58034
58035 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58036
58037         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58038         "autoupdate" on 2005-12-12.
58039
58040 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * modules/closeout (Depends-on): Remove atexit.
58043
58044 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58045
58046         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58047         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58048
58049 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58052         __EXTENSIONS__ if this causes compilation to fail.  Problem
58053         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58054         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58055
58056 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58057
58058         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58059         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58061         All uses changed.
58062
58063 2006-01-26  Simon Josefsson  <jas@extundo.com>
58064
58065         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58066         prototype is visible on mingw32.
58067
58068         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58069         for mingw32.
58070
58071         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58072         mingw32).
58073
58074 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58075
58076         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58077         attempt to open for write; this always fails, at least on POSIX
58078         hosts.  This reinstates the 2006-01-09 change, which was
58079         inadvertently removed.
58080
58081 2006-01-26  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58084         Reported by Paul Eggert.
58085
58086 2006-01-26  Bruno Haible  <bruno@clisp.org>
58087             Paul Eggert  <eggert@cs.ucla.edu>
58088
58089         * lib/stdbool_.h (_Bool)
58090         [(! (defined __cplusplus || defined __BEOS__)
58091           && !defined __GNUC__
58092           && !(defined __HP_cc || defined __xlc__
58093                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58094                || defined __sgi))]:
58095         #define to signed char in these cases too; this simplifies
58096         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58097         etc., separately) and makes it more conservative.
58098
58099 2006-01-25  Simon Josefsson  <jas@extundo.com>
58100
58101         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58102         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58103         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58104
58105 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58106
58107         * lib/argp-namefrob.h: Bugfix. Remove stray #
58108
58109 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58110
58111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58112         so that we test the test.
58113         Check for yet another HP-UX cc bug involving *bool |= bool.
58114
58115 2006-01-25  Karl Berry  <karl@gnu.org>
58116
58117         * config/srclist.txt (vasnprintf.c): sync lost.
58118
58119 2006-01-25  Jim Meyering  <jim@meyering.net>
58120
58121         Sync from the stable (b5) branch of coreutils:
58122
58123         * lib/fts.c (fts_children): Don't let close() clobber errno from
58124         failed fchdir().
58125
58126         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58127         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58128         a dangling symlink.  That can also happen at least for ELOOP.
58129         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58130         FYI, this bug predates the inclusion of fts.c in coreutils.
58131
58132         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58133         in their own block, so pre-c99 compilers don't object.
58134
58135         Avoid the double-free (first in fts_read, second in fts_close) that
58136         would occur when an `active' directory is made inaccessible (e.g.,
58137         via chmod a-x) during a traversal.
58138         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58139         before returning.  Reproduce this failure by
58140         mkdir -p a/b; cd a; chmod a-x . b
58141         Reported by Stavros Passas.
58142
58143 2006-01-25  Jim Meyering  <jim@meyering.net>
58144
58145         * lib/fileblocks.c: Remove more useless parentheses.
58146         * lib/readutmp.h: Likewise.
58147
58148 2006-01-25  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58151         warnings.
58152         Reported by Paul Eggert.
58153
58154 2006-01-25  Bruno Haible  <bruno@clisp.org>
58155
58156         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58157         rid of a trap command. For Solaris sh.
58158         Reported by Mark D. Baushke <mdb@gnu.org>.
58159
58160 2006-01-24  Simon Josefsson  <jas@extundo.com>
58161
58162         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58163         Bruno.
58164
58165 2006-01-24  Karl Berry  <karl@gnu.org>
58166
58167         * config/srclist.txt (argp-namefrob.h): sync lost.
58168
58169 2006-01-24  Jim Meyering  <jim@meyering.net>
58170
58171         * modules/openat (Files): Add lib/intprops.h.
58172         From Mark D. Baushke.
58173
58174 2006-01-24  Jim Meyering  <jim@meyering.net>
58175
58176         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58177         Reported by Mark D. Baushke.
58178
58179 2006-01-24  Jim Meyering  <jim@meyering.net>
58180
58181         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58182
58183 2006-01-24  Bruno Haible  <bruno@clisp.org>
58184
58185         * modules/strnlen (Maintainer): Change from glibc to all.
58186
58187 2006-01-24  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58190         Patch by Paul Eggert.
58191
58192 2006-01-24  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58195         already has it.
58196         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58197         2005-11-26.
58198
58199         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58200         'signed char' to avoid problems with the built-in _Bool type.
58201         Reported by Paul Eggert on 2005-11-26.
58202
58203 2006-01-24  Bruno Haible  <bruno@clisp.org>
58204
58205         * gnulib-tool (func_import): Avoid constructing complicated sed
58206         expressions inside backquote.
58207         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58208
58209 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58210
58211         These changes imported from libc.
58212         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58213         test and two separate function calls.
58214         * lib/strndup.c (__strndup): Add libc_hidden_def.
58215
58216 2006-01-23  Simon Josefsson  <jas@extundo.com>
58217
58218         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58219         Remove the test_*_SOURCES variable: automake infers it by default.
58220         * modules/tls-tests: Likewise.
58221
58222 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         Work around porting bugs reported by Dieter in
58225         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58226         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58227         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58228         Include "getopt.h" first, to check interface.
58229         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58230         !HAVE_DECL_GETENV.
58231         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58232         (__strndup): Revert to K&R-style function dfns, the glibc style.
58233         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58234         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58235         Include strnlen.h first, to get prototype properly.
58236         (strnlen): Renamed from __strnlen.
58237         Remove weak alias.
58238
58239 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58242
58243 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * config/srclist.txt: Adjust to reflect glibc reorganization.
58246         This affects only comments.
58247
58248 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58249
58250          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58251          Reported by Bruce Korb <bkorb@gnu.org>.
58252
58253 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58254
58255         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58256         to pacify gcc -Wswitch-default.
58257
58258 2006-01-22  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58261         temporary buffer for sprintf, take into account the precision also
58262         for 'd', 'i', 'u', 'o', 'x', 'X'.
58263
58264 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58265
58266         * modules/argp-tests: New module
58267         * tests/test-argp.c: New file
58268         * tests/test-argp-2.sh: New file
58269
58270 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58271
58272         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58273         (__argp_base_name): Removed
58274         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58275         typo.
58276         (__argp_base_name): Provide macro definition or extern declaration
58277         depending on the configuration
58278
58279 2006-01-20  Simon Josefsson  <jas@extundo.com>
58280
58281         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58282
58283 2006-01-20  Simon Josefsson  <jas@extundo.com>
58284
58285         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58286
58287 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58290         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
58291         Suggested by Bruno Haible.
58292
58293 2006-01-20  Karl Berry  <karl@gnu.org>
58294
58295         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
58296         until changes propagate, I guess.
58297
58298 2006-01-19  Simon Josefsson  <jas@extundo.com>
58299
58300         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
58301
58302 2006-01-19  Simon Josefsson  <jas@extundo.com>
58303
58304         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
58305
58306 2006-01-19  Simon Josefsson  <jas@extundo.com>
58307
58308         * gnulib-tool: Set check_PROGRAMS.
58309
58310         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58311         modules/des-tests, modules/gc-arcfour-tests,
58312         modules/gc-arctwo-tests, modules/gc-des-tests,
58313         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58314         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58315         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58316         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58317         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58318         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
58319         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
58320         test_*_SOURCES.
58321
58322 2006-01-18  Simon Josefsson  <jas@extundo.com>
58323
58324         * modules/socklen (Depends-on): Depend on sys_socket.
58325
58326 2006-01-18  Simon Josefsson  <jas@extundo.com>
58327
58328         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58329         modules/des-tests, modules/gc-arcfour-tests,
58330         modules/gc-arctwo-tests, modules/gc-des-tests,
58331         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58332         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58333         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58334         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58335         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58336         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58337         $(EXEEXT) to automake TESTS variable, for mingw32.
58338
58339 2006-01-17  Simon Josefsson  <jas@extundo.com>
58340
58341         * modules/socklen (Include): Need sys/socket.h.
58342
58343 2006-01-17  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/ssize_t (Include): Add <sys/types.h>.
58346
58347 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58350         it's not portable and it doesn't work with cross-compiles.
58351         Problem reported by Bruno Haible.  Fix missing-$ typo in
58352         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58353         -zignore from being used with Sun's C compiler.
58354
58355 2006-01-12  Simon Josefsson  <jas@extundo.com>
58356
58357         * lib/base64.c: Fix warning, reported by Bruno Haible
58358         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58359
58360 2006-01-12  Bruno Haible  <bruno@clisp.org>
58361
58362         * modules/ldd: New file.
58363         * build-aux/ldd.sh.in: New file.
58364         * MODULES.html.sh (Support for building libraries and executables): Add
58365         ldd.
58366
58367 2006-01-12  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/ldd.m4: New file.
58370
58371 2006-01-12  Bruno Haible  <bruno@clisp.org>
58372
58373         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58374         endless loop while replacing $auxdir with build-aux.
58375
58376 2006-01-11  Simon Josefsson  <jas@extundo.com>
58377
58378         * lib/stdint_.h (SIZE_MAX): Add missing (.
58379
58380 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58381
58382         Sync from coreutils.
58383         * lib/md5.c: Fix commentary typos.
58384         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58385         * lib/md5.h (__attribute__): Remove; unused.
58386         * lib/sha1.c: Fix commentary to match md5 better.
58387         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58388         so that we don't need to worry about alignment.  All uses changed.
58389         This merges the 2005-10-28 md5 change into sha1.
58390
58391 2006-01-11  Jim Meyering  <jim@meyering.net>
58392
58393         Sync from coreutils.
58394         * lib/md5.c (OP): Fix spacing.
58395
58396 2006-01-11  Bruno Haible  <bruno@clisp.org>
58397
58398         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58399         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58400         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58401
58402 2006-01-11  Bruno Haible  <bruno@clisp.org>
58403
58404         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58405         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58406         the "early" section as well.
58407
58408 2006-01-11  Bruno Haible  <bruno@clisp.org>
58409
58410         Avoid "ar: no archive members specified" error on MacOS X.
58411         * gnulib-tool (func_modules_add_dummy): New function.
58412         (func_import, func_create_testdir): Invoke it.
58413
58414 2006-01-11  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58417         with $auxdir in AC_CONFIG_FILES statements.
58418
58419 2006-01-11  Bruno Haible  <bruno@clisp.org>
58420
58421         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58422         Initialize also noinst_HEADERS to empty.
58423
58424 2006-01-11  Bruno Haible  <bruno@clisp.org>
58425
58426         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58427         variables.
58428         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58429         autoreconf.
58430
58431 2006-01-11  Bruno Haible  <bruno@clisp.org>
58432
58433         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58434         overridable by the user.
58435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58436
58437 2006-01-10  Simon Josefsson  <jas@extundo.com>
58438
58439         * modules/sys_socket: New file.
58440
58441 2006-01-10  Simon Josefsson  <jas@extundo.com>
58442
58443         * m4/sys_socket_h.m4: New file.
58444
58445 2006-01-10  Simon Josefsson  <jas@extundo.com>
58446
58447         * lib/socket_.h: New file.
58448
58449 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * modules/readutmp (Maintainer): Add myself.
58452
58453 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58456         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58457         People who are still concerned with buggy memcmp implementations
58458         can invoke gl_FUNC_MEMCMP themselves.
58459
58460 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         * lib/regex_internal.h (BITSET_WORD_BITS):
58463         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58464         preprocessor mishandles large unsigned values as if they were signed.
58465         Problem reported by Claudio Fontana in
58466         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58467
58468 2006-01-10  Jim Meyering  <jim@meyering.net>
58469
58470         Avoid the double-free (first in fts_read, second in fts_close) that
58471         would occur when an `active' directory is made inaccessible (e.g.,
58472         via chmod a-x) during a traversal.
58473         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58474         before returning.  Reproduce this failure by
58475         mkdir -p a/b; cd a; chmod a-x . b
58476         Reported by Stavros Passas.
58477
58478         Sync from coreutils.
58479         * lib/sha1.c: Tweak grammar in a comment.
58480
58481 2006-01-10  Jim Meyering  <jim@meyering.net>
58482
58483         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58484         Patch by Joerg Sonnenberger.
58485
58486 2006-01-10  Bruno Haible  <bruno@clisp.org>
58487
58488         * modules/readutmp: Depend on module free.
58489         * modules/strtok_r: Depend on module restrict.
58490
58491 2006-01-10  Bruno Haible  <bruno@clisp.org>
58492
58493         * modules/gettext (configure.ac): Add an invocation of
58494         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58495
58496 2006-01-10  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58499         Reported by Werner Lemberg <wl@gnu.org>.
58500
58501 2006-01-10  Bruno Haible  <bruno@clisp.org>
58502
58503         * lib/localcharset.c: Update from GNU gettext.
58504
58505 2006-01-10  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/argp.h (__const): Remove macro. Use const instead.
58508         * lib/argp-fmtstream.h (__const): Likewise.
58509         * lib/glob_.h (__const): Remove macro.
58510         * lib/glob-libc.h: Use const instead of __const.
58511
58512 2006-01-10  Bruno Haible  <bruno@clisp.org>
58513
58514         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58515         variable.
58516         Needed to avoid an automake error regarding the 'gettext' module.
58517
58518 2006-01-09  Simon Josefsson  <jas@extundo.com>
58519
58520         * modules/inet_ntop (Depends-on): Add restrict.
58521
58522 2006-01-09  Simon Josefsson  <jas@extundo.com>
58523
58524         * modules/gc-rijndael-tests (License): Put under LGPL.
58525
58526         * modules/gc-des-tests (License): Likewise.
58527
58528         * modules/gc-arcfour-tests (License): Likewise.
58529
58530         * modules/gc-arctwo-tests (License): Likewise.
58531
58532         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58533
58534         * modules/gc-hmac-sha1-tests (Files): Likewise.
58535
58536         * modules/gc-hmac-md5-tests (License): Likewise.
58537
58538         * modules/gc-sha1-tests (License): Likewise.
58539
58540         * modules/gc-md5-tests (License): Likewise.
58541
58542         * modules/gc-md4-tests (License): Likewise.
58543
58544         * modules/gc-md2-tests (License): Likewise.
58545
58546         * modules/gc-tests (License): Likewise.
58547
58548         * modules/des-tests (License): Likewise.
58549
58550         * modules/md4-tests (License): Likewise.
58551
58552         * modules/md2-tests (License): Likewise.
58553
58554 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58555
58556         Sync from coreutils:
58557
58558         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58559         * modules/lib-ignore: New file.
58560         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58561         chdir-safer.m4, lchmod.m4.
58562         * modules/openat: Add mkdirat.c, openat-priv.h.
58563
58564 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         Sync from coreutils.
58567         * m4/lib-ignore.m4: New file.
58568         * m4/lchmod.m4: New file.
58569
58570 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         Sync from coreutils.
58573         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58574         for write access: POSIX says that must fail.
58575         * lib/fts.c (diropen): Likewise.
58576         * lib/save-cwd.c (save_cwd): Likewise.
58577         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58578         well, for minor improvements on hosts that lack O_DIRECTORY.
58579         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58580         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58581         Fall back on chown if open failed with EACCES.
58582
58583         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58584         Report an error at compile-time if only a 1-second nominal clock
58585         resolution is found.
58586
58587         * lib/lchmod.h: New file.
58588         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58589         (make_dir_parents): Use lchown rather than chown, and
58590         lchmod rather than chmod.
58591
58592         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58593         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58594         "proc" reported by n0dalus.
58595
58596         * lib/mountlist.c: Include <limits.h>.
58597         (dev_from_mount_options)
58598         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58599         New function.  It no longer assumes "dev=" has the System V meaning
58600         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58601         (read_file_system_list)
58602         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58603         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58604         dev= in that case.
58605
58606         * lib/posixtm.h (PDS_PRE_2000): New macro.
58607         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58608         allow_century.  All usages changed.  Reject dates outside the range
58609         1969-1999 if PDS_PRE_2000 is used.
58610
58611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         Sync from coreutils.
58614         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58615         (Time of day items): Mention the possibility of leap seconds.
58616         Problem reported by Dr. David Alan Gilbert.
58617
58618 2006-01-09  Jim Meyering  <jim@meyering.net>
58619
58620         Sync from coreutils.
58621
58622         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58623
58624         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58625
58626         * lib/modechange.c (mode_compile): Reject an invalid mode string
58627         that starts with an octal digit.  From Andreas Gruenbacher.
58628
58629         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58630         and dup to open_safer and dup_safer, respectively.
58631         (openat_permissive): Fix typo in comment.
58632
58633         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58634         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58635         (_): Remove; no longer needed.
58636         (openat): Renamed from rpl_openat; no need for rpl_openat
58637         since openat.h renames openat for us.
58638         Replace most of the body with a call to openat_permissive,
58639         to avoid duplicate code.
58640         Port to (probably hypothetical) environments were mode_t is
58641         wider than int.
58642         (openat_permissive): Require mode arg, so that we can check
58643         types better.  Put it just after flags.  Change cwd failure
58644         indicator from pointer-to-bool to pointer-to-errno-value.
58645         All callers changed.
58646         Invoke openat_save_fail and/or openat_restore_fail if
58647         cwd_errno is null, so that openat can call us.
58648         (openat_permissive, fdopendir, fstatat, unlinkat):
58649         Simplify errno handling to avoid some duplicate code,
58650         as it's OK to set errno on success.
58651         * lib/openat.h: Revamp code so that function macros depend on
58652         __OPENAT_PREFIX only, not also on AT_FDCWD.
58653         (openat_ro): Remove.  Caller changed to use openat_permissive.
58654         (openat_permissive): Now a macro, if not a function.
58655         (openat_restore_fail, openat_save_fail): Now always functions,
58656         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58657
58658         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58659         and openat.c.
58660         * lib/mkdirat.c: Include openat-priv.h.
58661         Remove definitions of macros defined therein.
58662         * lib/openat.c: Likewise.
58663
58664         * lib/mkdirat.c (mkdirat): New file and function.
58665         * lib/openat.h (mkdirat): Declare.
58666
58667         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58668
58669         * lib/openat.h (openat_permissive): Declare.
58670         (openat_ro): Define.
58671
58672         * lib/openat.c (EXPECTED_ERRNO): New macro.
58673         (openat_permissive): New function -- used in remove.c rewrite.
58674         (all functions): Set errno just before returning, only if there
58675         was an actual failure.
58676         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58677
58678         Emulate openat-family functions using Linux's procfs, if possible.
58679         Idea and some code based on Ulrich Drepper's glibc changes.
58680
58681         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58682         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58683         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58684         before falling back on save_cwd and restore_cwd.
58685         (fdopendir, fstatat, unlinkat): Likewise.
58686
58687         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58688         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58689
58690         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58691         as second argument to va_arg.  Otherwise, some versions of gcc
58692         warn that `if this code is reached, the program will abort'.
58693
58694 2006-01-09  Jim Meyering  <jim@meyering.net>
58695
58696         Sync from coreutils.
58697         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58698         Require openat-priv.h.
58699
58700 2006-01-09  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/strnlen (Include): Use strnlen.h.
58703
58704 2006-01-09  Bruno Haible  <bruno@clisp.org>
58705
58706         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58707
58708 2006-01-09  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/sysexit_.h (EX_OK): New macro.
58711         Suggested by Martin Lambers <marlam@marlam.de>.
58712
58713 2006-01-09  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58716         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58717
58718 2006-01-09  Bruno Haible  <bruno@clisp.org>
58719
58720         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58721         numbers.
58722
58723 2006-01-09  Bruno Haible  <bruno@clisp.org>
58724
58725         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58726         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58727         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58728         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58729
58730 2006-01-09  Bruno Haible  <bruno@clisp.org>
58731
58732         * build-aux/javacomp.sh.in: New file, moved from lib/.
58733         * modules/javacomp-script (Files): Update.
58734         (configure.ac): Add AC_CONFIG_FILES invocation.
58735         (EXTRA_DIST): Remove variable.
58736
58737         * build-aux/javaexec.sh.in: New file, moved from lib/.
58738         * modules/javaexec (Files): Update.
58739         (configure.ac): Add AC_CONFIG_FILES invocation.
58740         (EXTRA_DIST): Remove javaexec.sh.in.
58741
58742         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58743         * modules/csharpcomp-script (Files): Update.
58744         (configure.ac): Add AC_CONFIG_FILES invocation.
58745         (EXTRA_DIST): Remove variable.
58746
58747         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58748         * modules/csharpexec (Files): Update.
58749         (configure.ac): Add AC_CONFIG_FILES invocation.
58750         (EXTRA_DIST): Remove csharpexec.sh.in.
58751
58752 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58753
58754         Sync from coreutils.
58755
58756         Add POSIX ACL support
58757         * lib/acl.h (copy_acl, set_acl): Add declarations.
58758         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58759         systems other than Linux.
58760         (chmod_or_fchmod): New function: use fchmod when possible,
58761         and chmod otherwise.
58762         (file_has_acl): Add a POSIX ACL implementation, with a
58763         Linux-specific subcase.
58764         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58765         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58766         acls are unsupported.
58767         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58768         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58769         are unsupported.
58770
58771 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58772
58773         Sync from coreutils.
58774         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58775
58776 2006-01-07  Bruno Haible  <bruno@clisp.org>
58777
58778         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58779         gl_EARLY.
58780
58781 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58784         Problem reported for Mingw by Mark Junker.
58785
58786 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58787
58788         * README: Gnulib normally doesn't generate a tarball.
58789
58790 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58793         long int, not int, for nanosecond counts, so that people who are
58794         used to POSIX struct timespec won't be surprised.  Reported by Jim
58795         Meyering.
58796
58797 2005-12-28  Bruno Haible  <bruno@clisp.org>
58798
58799         * build-aux/config.rpath: Update from GNU gettext.
58800
58801 2005-12-16  Jim Meyering  <jim@meyering.net>
58802
58803         * modules/fprintftime: New module.
58804         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58805
58806 2005-12-16  Jim Meyering  <jim@meyering.net>
58807
58808         * m4/fprintftime.m4: New file.
58809
58810 2005-12-16  Jim Meyering  <jim@meyering.net>
58811
58812         * lib/fprintftime.c, lib/fprintftime.h: New files.
58813
58814 2005-12-15  Simon Josefsson  <jas@extundo.com>
58815
58816         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58817         new m4/socklen.m4.
58818
58819 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58820
58821         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58822         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58823
58824 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58825
58826         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58827         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58828         struct uparams is valid. Fall back to the default values if it is
58829         not.
58830
58831 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58832
58833         * modules/argp (Files): Add argp-pin.c
58834         (Depends-on): dirname
58835         (lib_SOURCES): Add argp-pin.c
58836
58837 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58838
58839         * m4/argp.m4:  Check if program_invocation_name and
58840         program_invocation_short_name are declared and define appropriate
58841         macros if they are not.
58842
58843 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58844
58845         * lib/argp-help.c (__argp_base_name): New function
58846         (__argp_short_program_name): Rewrite using __argp_base_name
58847         * lib/argp-namefrob.h: Define program_invocation_name and
58848         program_invocation_short_name if requested
58849         (__argp_base_name): Add prototype
58850         * lib/argp-parse.c (argp_def): Use gettext wrappers
58851         (argp_default_parser): Use __argp_base_name
58852         * lib/argp-pin.c: New file. Defines program_invocation_name and
58853         program_invocation_short_name on systems that lack them.
58854
58855 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58858         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58859         porting problem reported by Georg Schwarz in
58860         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58861
58862 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58865         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58866         porting problem reported by Georg Schwarz in
58867         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58868
58869 2005-12-05  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58872         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58873         Reported by Mark Junker <mjscod@gmx.de>.
58874
58875 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58878         Use implementation from Albert Chin, with some
58879         comments/corrections by Stepan Kasal and myself.
58880
58881 2005-12-02  Bruno Haible  <bruno@clisp.org>
58882
58883         * gnulib-tool (func_import): Accept GPLed build tool modules when
58884         --lgpl is given.
58885         * modules/csharpcomp-script: New file.
58886         * modules/csharpcomp: Depend on it.
58887         * modules/javacomp-script: New file.
58888         * modules/javacomp: Depend on it.
58889         Suggested by Simon Josefsson.
58890
58891 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58894         statement, to work around an HP-UX 10.20 compiler bug reported by
58895         Peter O'Gorman.
58896
58897 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         * modules/savedir (Depends-on): Add openat.
58900
58901 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58902
58903         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58904         (uintmax_t) [defined uintmax_t]: Do not declare.
58905         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58906         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58907         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58908         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58909         sake of portability to weird hosts that C allows (though we don't
58910         know of any practical examples).
58911
58912         * lib/savedir.h (fdsavedir): New decl.
58913         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58914         contains most of the former guts of savedir.
58915         (savedir): Use savedirstream.
58916         Include "openat.h".
58917
58918 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58919
58920         * modules/obstack (Files): Add m4/ulonglong.m4.
58921         Problem reported by Davide Angelocola.
58922
58923 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58926         coreutils no longer futzes with rounding modes.
58927
58928 2005-11-14  Jim Meyering  <jim@meyering.net>
58929
58930         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58931         replacement of mkstemp.
58932
58933 2005-11-10  Simon Josefsson  <jas@extundo.com>
58934
58935         * lib/readline.c: Remove EOL.
58936
58937 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58938
58939         * modules/gethrxtime (Depends-on): Add gettime.
58940
58941 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58944         or gettimeofday; no longer needed.
58945
58946 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58949         time business.
58950         (gethrxtime) [! (HAVE_NANOUPTIME
58951         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58952         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58953         our own approximation.
58954
58955 2005-11-08  Eric Blake  <ebb9@byu.net>
58956
58957         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58958
58959 2005-11-08  Eric Blake  <ebb9@byu.net>
58960
58961         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58962
58963 2005-11-04  Bruno Haible  <bruno@clisp.org>
58964
58965         * gnulib-tool: Implement --update mode.
58966
58967 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         Fix porting problem reported by Theodoros V. Kalamatianos.
58970         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58971         Don't assume that futimes failing means we must fail.
58972
58973 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58976         variables to suggest the intended function of the PATH_MAX check.
58977
58978 2005-10-30  Kean Johnston  <jkj@sco.com>
58979
58980         Trivial changes to support SCO systems.
58981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58982         as PATH_MAX.
58983         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58984         where __ptr is null when no I/O is pending.
58985
58986 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58989         leave errno alone.  Problem reported by Dmitry V. Levin.
58990
58991 2005-10-28  Simon Josefsson  <jas@extundo.com>
58992
58993         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58994         Test more.
58995
58996         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58997
58998         * modules/md2, modules/md2-tests: New files.
58999
59000 2005-10-28  Simon Josefsson  <jas@extundo.com>
59001
59002         * m4/inet_ntop.m4: More tests.
59003
59004         * m4/gc-md2.m4, md2.m4: New file.
59005
59006 2005-10-28  Simon Josefsson  <jas@extundo.com>
59007
59008         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59009         "restrict" keywords, as per POSIX.  Protect the function
59010         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59011         Don't use K&R prototypes.  Check the sprintf return values.
59012         Re-define EAFNOSUPPORT if not present.  Indent.
59013
59014         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59015         suggested by Bruno Haible <bruno@clisp.org>.
59016
59017         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59018
59019         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59020
59021         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59022         libgcrypt).
59023
59024         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59025
59026         * lib/md2.h, lib/md2.c: New files.
59027
59028 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59031         errno alone.  Problem reported by Frederic Jolliton.
59032
59033 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * modules/verify (License): Change from GPL to LGPL.  This is a
59036         tiny module and there are apparently near-equivalents that are
59037         under the BSD license.
59038
59039 2005-10-24  Simon Josefsson  <jas@extundo.com>
59040
59041         * modules/sha1: Relicense to LGPL.
59042
59043 2005-10-24  Simon Josefsson  <jas@extundo.com>
59044
59045         * lib/md4.h: Shrink buffer size, now that we changed the type.
59046
59047 2005-10-23  Simon Josefsson  <jas@extundo.com>
59048
59049         * gnulib-tool (func_import): Fix --tests-base.
59050
59051 2005-10-22  Simon Josefsson  <jas@extundo.com>
59052
59053         * modules/arcfour (Depends-on): Need stdint.
59054
59055 2005-10-22  Simon Josefsson  <jas@extundo.com>
59056
59057         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59058         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59059
59060 2005-10-22  Simon Josefsson  <jas@extundo.com>
59061
59062         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59063         suggested by Bruno Haible <bruno@clisp.org>.
59064
59065 2005-10-22  Simon Josefsson  <jas@extundo.com>
59066
59067         * lib/crc.h: Include stddef.h, for size_t.
59068
59069 2005-10-22  Simon Josefsson  <jas@extundo.com>
59070
59071         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59072         arcfour_context struct (simplify test vector testing in GNU
59073         Shishi).
59074
59075 2005-10-21  Simon Josefsson  <jas@extundo.com>
59076
59077         * modules/des, modules/des-tests: New files.
59078
59079         * modules/gc-des, modules/gc-des-tests: New files.
59080
59081         * tests/test-des.c, tests/test-gc-des.c: New file.
59082
59083 2005-10-21  Simon Josefsson  <jas@extundo.com>
59084
59085         * modules/arctwo, modules/arctwo-tests: New files.
59086
59087         * tests/test-arctwo.c: New file.
59088
59089         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59090
59091         * tests/test-gc-arctwo.c: New file.
59092
59093 2005-10-21  Simon Josefsson  <jas@extundo.com>
59094
59095         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59096         Bruno Haible <bruno@clisp.org>.
59097
59098         * m4/gc-des.m4: New file.
59099
59100 2005-10-21  Simon Josefsson  <jas@extundo.com>
59101
59102         * m4/arctwo.m4: New file.
59103
59104         * m4/gc-arctwo.m4: New file.
59105
59106 2005-10-21  Simon Josefsson  <jas@extundo.com>
59107
59108         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59109         block.
59110
59111 2005-10-21  Simon Josefsson  <jas@extundo.com>
59112
59113         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59114         <bruno@clisp.org>.
59115
59116         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59117
59118         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59119         Bruno Haible <bruno@clisp.org>.
59120
59121         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59122         <bruno@clisp.org>.
59123
59124 2005-10-21  Simon Josefsson  <jas@extundo.com>
59125
59126         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59127
59128 2005-10-21  Simon Josefsson  <jas@extundo.com>
59129
59130         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59131
59132 2005-10-21  Simon Josefsson  <jas@extundo.com>
59133
59134         * lib/des.h, lib/des.c: New files.
59135
59136         * lib/gc-gnulib.c: Support DES.c
59137
59138 2005-10-21  Simon Josefsson  <jas@extundo.com>
59139
59140         * lib/arctwo.h, lib/arctwo.c: New files.
59141
59142         * lib/gc-gnulib.c: Support ARCTWO.
59143
59144 2005-10-21  Simon Josefsson  <jas@extundo.com>
59145
59146         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59147         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59148
59149 2005-10-21  Simon Josefsson  <jas@extundo.com>
59150
59151         * gnulib-tool (func_import, func_create_testdir): Define automake
59152         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59153         Makefile.am snippet),
59154         suggested by Bruno Haible <bruno@clisp.org>.
59155
59156         * modules/gc (Makefile.am): Use it.
59157
59158 2005-10-21  Bruno Haible  <bruno@clisp.org>
59159
59160         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59161         patch.
59162
59163 2005-10-19  Simon Josefsson  <jas@extundo.com>
59164
59165         * tests/test-gc-rijndael.c: New file.
59166
59167         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59168
59169 2005-10-19  Simon Josefsson  <jas@extundo.com>
59170
59171         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59172         interface too.
59173
59174 2005-10-19  Simon Josefsson  <jas@extundo.com>
59175
59176         * tests/test-gc-arcfour.c: New file.
59177
59178         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59179
59180 2005-10-19  Simon Josefsson  <jas@extundo.com>
59181
59182         * modules/gc-md4, modules/gc-md4-tests: New file.
59183
59184         * tests/test-gc-md4.c: New file.
59185
59186 2005-10-19  Simon Josefsson  <jas@extundo.com>
59187
59188         * m4/gc-md4.m4: New file.
59189
59190 2005-10-19  Simon Josefsson  <jas@extundo.com>
59191
59192         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59193         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59194         <kasal@ucw.cz>.
59195
59196 2005-10-19  Simon Josefsson  <jas@extundo.com>
59197
59198         * m4/gc-arcfour.m4: New file.
59199
59200         * m4/gc-rijndael.m4: New file.
59201
59202 2005-10-19  Simon Josefsson  <jas@extundo.com>
59203
59204         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59205
59206 2005-10-19  Simon Josefsson  <jas@extundo.com>
59207
59208         * lib/gc-gnulib.c: Support ARCFOUR.
59209
59210 2005-10-19  Simon Josefsson  <jas@extundo.com>
59211
59212         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59213         support.
59214
59215         * lib/gc.h: Add ECB enum type.
59216
59217         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59218
59219 2005-10-18  Simon Josefsson  <jas@extundo.com>
59220
59221         * tests/test-md5.c: New file.
59222
59223         * modules/md5-tests: New file.
59224
59225 2005-10-18  Simon Josefsson  <jas@extundo.com>
59226
59227         * tests/test-md4.c: New file.
59228
59229         * modules/md4, modules/md4-tests: New files.
59230
59231 2005-10-18  Simon Josefsson  <jas@extundo.com>
59232
59233         * m4/md4.m4: New file.
59234
59235 2005-10-18  Simon Josefsson  <jas@extundo.com>
59236
59237         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59238
59239 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59240
59241         * gnulib-tool (func_create_testdir): Omit the second check whether
59242         BUILT_SOURCES in nonempty.
59243
59244 2005-10-17  Simon Josefsson  <jas@extundo.com>
59245
59246         * tests/test-rijndael.c: New file.
59247
59248 2005-10-17  Simon Josefsson  <jas@extundo.com>
59249
59250         * modules/sha1: Depend on stdint instead of md5.
59251
59252         * modules/md5: Depend on stdint, remove uint32_t.
59253
59254 2005-10-17  Simon Josefsson  <jas@extundo.com>
59255
59256         * modules/gc-sha1-tests: New file.
59257
59258         * tests/test-gc-sha1.c: New file.
59259
59260 2005-10-17  Simon Josefsson  <jas@extundo.com>
59261
59262         * m4/md5.m4: Remove call to uint32_t.m4.
59263
59264 2005-10-17  Simon Josefsson  <jas@extundo.com>
59265
59266         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59267
59268         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59269         md5.h.
59270
59271         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59272
59273         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59274
59275 2005-10-17  Simon Josefsson  <jas@extundo.com>
59276
59277         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59278
59279 2005-10-17  Simon Josefsson  <jas@extundo.com>
59280
59281         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59282
59283 2005-10-17  Simon Josefsson  <jas@extundo.com>
59284
59285         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59286
59287         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59288
59289 2005-10-17  Bruno Haible  <bruno@clisp.org>
59290
59291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
59292         that it can also be used in a test.
59293
59294 2005-10-16  Bruno Haible  <bruno@clisp.org>
59295
59296         * gnulib-tool (func_emit_tests_Makefile_am): Also define
59297         TESTS_ENVIRONMENT, so that individual tests can augment it.
59298
59299         * gnulib-tool (func_create_testdir): Use an intermediate target for
59300         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
59301         macros, like $(ALLOCA_H), which cannot be passed through the command
59302         line.
59303
59304 2005-10-15  Simon Josefsson  <jas@extundo.com>
59305
59306         * modules/rijndael-tests: New file.
59307
59308         * modules/rijndael: New file.
59309
59310 2005-10-15  Simon Josefsson  <jas@extundo.com>
59311
59312         * m4/rijndael.m4: New file.
59313
59314 2005-10-15  Simon Josefsson  <jas@extundo.com>
59315
59316         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
59317
59318         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
59319
59320 2005-10-14  Simon Josefsson  <jas@extundo.com>
59321
59322         * tests/test-arcfour.c: New file.
59323
59324         * modules/arcfour, modules/arcfour-tests: New files.
59325
59326 2005-10-14  Simon Josefsson  <jas@extundo.com>
59327
59328         * m4/arcfour.m4: New file.
59329
59330 2005-10-14  Simon Josefsson  <jas@extundo.com>
59331
59332         * lib/arcfour.h, lib/arcfour.c: New files.
59333
59334 2005-10-14  Roland McGrath  <roland@redhat.com>
59335
59336         Import from libc.  [BZ #1331]
59337         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59338         macro argument.
59339         Reported by Matej Vela <vela@debian.org>.
59340
59341 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59342
59343         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59344         include <wchar.h>; no longer needed.
59345
59346 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59347
59348         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59349
59350 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59351         and  Ulrich Drepper  <drepper@redhat.com>
59352
59353         Import from libc.
59354         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59355         instead of inline stream orientation test and two separate
59356         function calls.  Pay no attention to USE_IN_LIBIO.
59357
59358 2005-10-13  Simon Josefsson  <jas@extundo.com>
59359
59360         * modules/gc-hmac-md5-tests: New file.
59361
59362         * tests/test-gc-hmac-sha1.c: New file.
59363
59364         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59365
59366         * modules/gc-hmac-md5-tests: New file.
59367
59368         * tests/test-gc-md5.c: New file.
59369
59370         * modules/gc-md5-tests: New file.
59371
59372 2005-10-13  Simon Josefsson  <jas@extundo.com>
59373
59374         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59375         Move memory allocation outside of loop.
59376
59377 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59378
59379         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59380         intermediate directory is in a read-only file system.  Problem
59381         reported by Eric Blake.
59382
59383 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59384
59385         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59386
59387 2005-10-12  Simon Josefsson  <jas@extundo.com>
59388
59389         * tests/test-hmac-sha1.c: New file.
59390
59391         * modules/hmac-sha1-tests: New file.
59392
59393         * modules/hmac-sha1: New file.
59394
59395 2005-10-12  Simon Josefsson  <jas@extundo.com>
59396
59397         * modules/gc-sha1: New file.
59398
59399 2005-10-12  Simon Josefsson  <jas@extundo.com>
59400
59401         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59402
59403         * tests/test-gc-pbkdf2-sha1.c: New file.
59404
59405 2005-10-12  Simon Josefsson  <jas@extundo.com>
59406
59407         * modules/gc-md5, modules/gc-hmac-md5: New files.
59408
59409         * modules/gc (Files): Remove md5, memxor and hmac files.
59410
59411 2005-10-12  Simon Josefsson  <jas@extundo.com>
59412
59413         * m4/gc-pbkdf2-sha1.m4: New file.
59414
59415         * m4/gc-hmac-sha1.m4: New file.
59416
59417         * m4/gc-sha1: New file.
59418
59419         * m4/hmac-sha1.m4: New file.
59420
59421 2005-10-12  Simon Josefsson  <jas@extundo.com>
59422
59423         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59424
59425         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59426
59427 2005-10-12  Simon Josefsson  <jas@extundo.com>
59428
59429         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59430         suggested by Bruno Haible <bruno@clisp.org>.
59431
59432 2005-10-12  Simon Josefsson  <jas@extundo.com>
59433
59434         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59435
59436 2005-10-12  Simon Josefsson  <jas@extundo.com>
59437
59438         * lib/gc-pbkdf2-sha1.c: New file.
59439
59440         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59441
59442 2005-10-12  Simon Josefsson  <jas@extundo.com>
59443
59444         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59445
59446         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59447
59448 2005-10-12  Simon Josefsson  <jas@extundo.com>
59449
59450         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59451         GC_USE_HMAC_MD5, respectively.
59452
59453         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59454         (gc_md5): Fix typo.
59455
59456         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59457
59458         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59459
59460         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59461
59462 2005-10-12  Bruno Haible  <bruno@clisp.org>
59463
59464         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59465         Reported by Stepan Kasal <kasal@ucw.cz>.
59466
59467 2005-10-11  Simon Josefsson  <jas@extundo.com>
59468
59469         * tests/test-crc.c: New file.
59470
59471         * modules/crc, modules/crc-tests: New files.
59472
59473 2005-10-11  Simon Josefsson  <jas@extundo.com>
59474
59475         * m4/crc.m4: New file.
59476
59477 2005-10-11  Simon Josefsson  <jas@extundo.com>
59478
59479         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59480
59481         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59482
59483         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59484
59485 2005-10-11  Simon Josefsson  <jas@extundo.com>
59486
59487         * lib/crc.h, lib/crc.c: New files.
59488
59489         * lib/gc.h (gc_hash_buffer): Add doc.
59490
59491 2005-10-11  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/c-strcasestr: New file.
59494         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59495
59496 2005-10-11  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/c-strcase: New file.
59499         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59500
59501 2005-10-11  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/strcasecmp.c: Include limits.h.
59504         (strcasecmp): Avoid integer overflow on exotic platforms.
59505         * lib/strncasecmp.c: Include limits.h.
59506         (strncasecmp): Avoid integer overflow on exotic platforms.
59507         Reported by Paul Eggert.
59508
59509 2005-10-11  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/c-strcasestr.h: New file, from GNU gettext.
59512         * lib/c-strcasestr.c: New file, from GNU gettext.
59513
59514 2005-10-11  Bruno Haible  <bruno@clisp.org>
59515
59516         * lib/c-strcase.h: New file, from GNU gettext.
59517         * lib/c-strcasecmp.c: New file, from GNU gettext.
59518         * lib/c-strncasecmp.c: New file, from GNU gettext.
59519
59520 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * modules/mempcpy (License): GPL -> LGPL.
59523         * modules/strchrnul (License): Likewise.
59524         * modules/sysexits (License): Likewise.
59525
59526 2005-10-08  Simon Josefsson  <jas@extundo.com>
59527
59528         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59529
59530 2005-10-07  Simon Josefsson  <jas@extundo.com>
59531
59532         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59533
59534 2005-10-06  Simon Josefsson  <jas@extundo.com>
59535
59536         * tests/test-hmac-md5.c: New file.
59537
59538         * modules/hmac-md5-tests: New file.
59539
59540         * modules/hmac-md5: New file.
59541
59542 2005-10-06  Simon Josefsson  <jas@extundo.com>
59543
59544         * m4/hmac-md5.m4: New file.
59545
59546         * m4/memxor.m4: Require gl_C_RESTRICT.
59547
59548 2005-10-06  Simon Josefsson  <jas@extundo.com>
59549
59550         * lib/memxor.c (memxor): Avoid casts and warnings.
59551
59552 2005-10-06  Simon Josefsson  <jas@extundo.com>
59553
59554         * lib/hmac-md5.c: New file.
59555
59556         * lib/hmac.h: New file.
59557
59558 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59561         promotes to int, not unsigned int, to catch the AIX 5.3
59562         compiler bug.
59563
59564 2005-10-05  Simon Josefsson  <jas@extundo.com>
59565
59566         * modules/memxor: New file.
59567
59568         * modules/iconv (Files): Move config.rpath to havelib, it is used
59569         there.
59570
59571         * modules/havelib (Files): Add config.rpath.
59572
59573 2005-10-05  Simon Josefsson  <jas@extundo.com>
59574
59575         * m4/memxor.m4: New file.
59576
59577 2005-10-05  Simon Josefsson  <jas@extundo.com>
59578
59579         * lib/memxor.c (memxor): Fix compiler error.
59580
59581         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59582         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59583
59584         * lib/memxor.h, lib/memxor.c: New files.
59585
59586         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59587         we assume all systems have it, suggested by Jim Meyering
59588         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59589         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59590         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59591         same reasons.
59592
59593 2005-10-05  Simon Josefsson  <jas@extundo.com>
59594
59595         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59596
59597 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59598
59599         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59600         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59601         needed, since the source code now assumes these .h files.
59602
59603 2005-10-05  Derek Price  <derek@ximbiot.com>
59604
59605         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59606
59607 2005-10-05  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/stdint (License): Change to LGPL.
59610
59611 2005-10-04  Simon Josefsson  <jas@extundo.com>
59612
59613         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59614         D. Baushke" <mdb@gnu.org>.
59615
59616 2005-10-04  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/verify.h (verify_true): Provide alternative definition for C++.
59619
59620 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59623         (SSIZE_MAX): New macro, if not already defined.
59624         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59625         than 2 GiB.
59626
59627 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         Sync from coreutils.
59630         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59631         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59632         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59633         ULLONG_MAX doesn't work with 2.7.2.1.
59634
59635 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59638         From Ben Pfaff.
59639
59640         * modules/exclude (Depends-on): Depend on verify.
59641         * modules/strtoimax (Depends-on): Likewise.
59642         * modules/utimecmp (Depends-on): Likewise.
59643
59644 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/exclude.c: Include verify.h.
59647         (verify): Remove.  All callers changed to use verify.h's version.
59648         * lib/strtoimax.c: Likewise.
59649         * lib/utimecmp.c: Likewis.e
59650
59651         Sync from coreutils.
59652         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59653         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59654         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59655         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59656         bother returning ENOSYS if settimeofday or stime fails; just let
59657         them return whatever errno they want to return.
59658         * lib/utimens.c: Include unistd.h, for dup2.
59659         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59660         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59661
59662 2005-10-02  Jim Meyering  <jim@meyering.net>
59663
59664         Sync from coreutils.
59665         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59666         from glibc-2.2.5 that fails for read-only files.
59667
59668 2005-10-02  Jim Meyering  <jim@meyering.net>
59669
59670         Sync from coreutils.
59671         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59672         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59673         `#if HAVE_CONFIG_H'.
59674         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59675         Remove AT_FDCWD test.
59676         Do not consume the fd unless successful.
59677         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59678         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59679         block, so that we don't even try to compile it if settimeofday is
59680         available.  This works around a compilation failure on OSF1 V5.1,
59681         due to stime requiring a `long int*' while tv_sec is `int'.
59682
59683 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59684
59685         Sync from coreutils.
59686         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59687         against `yes', rather than just testing for nonempty.
59688
59689 2005-10-01  Simon Josefsson  <jas@extundo.com>
59690
59691         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59692         and Darwin.
59693
59694         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59695         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59696         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59697         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59698         Check if struct addrinfo is declared.
59699
59700 2005-10-01  Simon Josefsson  <jas@extundo.com>
59701
59702         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59703         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59704         AI_* and EAI_* definitions.  Protect function declarations.
59705
59706 2005-10-01  Jim Meyering  <jim@meyering.net>
59707
59708         Sync from coreutils.
59709
59710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59711         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59712         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59714         in the inet and nsl libraries.  Required on Solaris 5.7.
59715
59716 2005-10-01  Jim Meyering  <jim@meyering.net>
59717
59718         Sync from coreutils.
59719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59720         in the inet and nsl libraries.  Required on Solaris 5.7.
59721
59722 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59723
59724         * lib/getdelim.c (getdelim): Remove unused variables.
59725
59726 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59727
59728         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59729         so that the code works even with ancient cpp.  Portability problem
59730         with GCC 2.7.2.1 reported by Thomas M.Ott.
59731
59732 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59733
59734         * modules/regex (Depends-on): Add strcase.
59735
59736         * modules/gethostname (Licence): Change from GPL to LGPL, since
59737         gethostname.c is a trivial implementation of a standard library
59738         function.
59739         * modules/poll (License): Change from GPL to LGPL, since it's
59740         derived from LGPL code.
59741
59742 2005-09-27  Jim Meyering  <jim@meyering.net>
59743
59744         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59745         HAVE_CONFIG_H.
59746
59747         * lib/intprops.h (signed_type_or_expr__): Define.
59748         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59749         for unsigned types.
59750
59751 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * lib/verify.h (verify_expr): Remove, replacing with:
59754         (verify_true): New macro that returns true instead of void.
59755         (verify_type__): Remove.
59756         (verify): Use verify_true rather than verify_type__.
59757
59758 2005-09-26  Bruno Haible  <bruno@clisp.org>
59759
59760         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59761         is necessary.
59762         (lib_SOURCES): Remove mbchar.c.
59763         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59764         (Files): Add m4/mbrtowc.m4.
59765         * modules/mbiter: Likewise.
59766         * modules/mbuiter: Likewise.
59767
59768 2005-09-26  Bruno Haible  <bruno@clisp.org>
59769
59770         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59771         compile mbchar.c if they are not both present.
59772         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59773         * m4/mbiter.m4 (gl_MBITER): Likewise.
59774         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59775         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59776         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59777
59778 2005-09-25  Jim Meyering  <jim@meyering.net>
59779
59780         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59781         also uses socklen_t.
59782
59783 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * lib/utimens.c (ENOSYS): Define if not already defined.
59786         (futimens): Support having a null PATH if the file descriptor
59787         is nonnegative.
59788
59789         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59790         Remove.
59791         (__attribute): Define to empty unless GCC 3.1 or later.
59792         This works around a core dump on OpenBSD 3.4, which has GCC
59793         2.95.3, which dumps core when given __attribute__(()).  It also
59794         simplifies other tests, since we really don't want to bother with
59795         worrying about which ancient version of GCC supported what.
59796         Original problem reported by Yoann Vandoorselaere, with part of
59797         the fix suggested by Derek Price.
59798
59799 2005-09-24  Jim Meyering  <jim@meyering.net>
59800
59801         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59802         so we can once again use a positive bitfield width of 1 -- now we
59803         don't have to explain why we were using a bitfield width of 2.
59804
59805 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59808         and similarly for the other external symbols.  Problem reported
59809         by James Gallager.
59810
59811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59812         bug reported by Jim Meyering.
59813
59814         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59816         not needed, since socklen is a prerequisite module.
59817
59818 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59819
59820         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59821         Problem reported by Eric Blake.
59822         (getaddrinfo): Initialize se so that it's not garbage.
59823         Redo internal storage allocation so that it doesn't make unportable
59824         assumptions about alignment.
59825         Fix a memory leak.
59826
59827         * lib/utimens.c (futimens): Use futimesat if available.
59828         Prefer it to futimes since it doesn't have the futimes bug.
59829
59830         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59831         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59832         Instead, declare a function that returns a pointer to an array,
59833         and use verify_type__ to declare the size of the array.
59834         Problem and germ of a solution reported by Bruno Haible.
59835         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59836         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59837
59838 2005-09-23  Jim Meyering  <jim@meyering.net>
59839
59840         Sync from coreutils.
59841         Correct build failure (socklen_t not defined) on at least
59842         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59843         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59844
59845 2005-09-23  Jim Meyering  <jim@meyering.net>
59846
59847         * modules/getaddrinfo (Depends-on): Add socklen.
59848
59849 2005-09-23  Bruno Haible  <bruno@clisp.org>
59850
59851         * tests/test-verify.c: New file.
59852
59853 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         Sync from coreutils.
59856
59857         * modules/argmatch (Depends-on): Add verify.
59858         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59859         unistd-safer.
59860         * modules/save-cwd (Depends-on): Likewise.
59861
59862         * modules/openat (Files): Add lib/openat-die.c.
59863         (Depends-on): Remove error, exitfail.
59864         Add dirname.
59865
59866         * modules/verify: New file.
59867         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59868         with "verify" module.
59869
59870 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59871
59872         Sync from coreutils.
59873
59874         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59875         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59876         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59877         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59878         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59879         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59880         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59881         Don't bother checking for string.h, stdlib.h, unistd.h.
59882         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59883         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59884         module's job.
59885         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59886         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59887
59888         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59889         (gl_GETDATE): Use it.
59890
59891         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59892
59893 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         Sync from coreutils.
59896
59897         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59898         stat-time.h.
59899         * lib/argmatch.h: Include verify.h
59900         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59901         (ARGMATCH_ASSERT): Remove; unused.
59902         * lib/canonicalize.c: Assume STDC_HEADERS.
59903         * lib/exclude.c: Include "strcase.h".
59904         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59905         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59906         and stdio-safer.h.
59907         (getusershell): Call fopen, not fopen_safer.
59908         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59909         Do not include unistd-safer.h.
59910         (save_cwd): Don't call fd_safer; no longer needed
59911         now that we include fcntl--.h.
59912
59913         * lib/getdate.y (relative_time): New type.
59914         (RELATIVE_TIME_0): New constant.
59915         (parser_control): Use relative_time instead of doing it ourselves.
59916         (%union): Add new relative_time rel member.
59917         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59918         Now typeless.
59919         (relunit, relunit_snumber): Now of type rel.
59920         (zone, rel, relunit, get_date): Adjust to above changes.
59921
59922         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59923         Do not include unistd-safer.h.
59924         (getloadavg): Don't call fd_safer; no longer needed
59925         now that we include fcntl--.h.
59926
59927         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59928         (make_dir_parents): Treat ENOSYS like EEXIST.
59929
59930         Improve quality of diagnostics on restore_cwd failure.
59931         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59932         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59933         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59934         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59935         each time through the loop.  Do not diagnose restore_cwd failure;
59936         that is the caller's job (and perhaps the caller does not care).
59937
59938         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59939         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59940         If the file already exists but is not a directory, don't bother
59941         to try to make its parents.
59942         Close potential file descriptor leak if we can't chdir("/") (!).
59943         Don't always return true if chdir($PWD) fails; return true only
59944         if the requested action was done successfully (except for the
59945         chdir($PWD)).
59946         Don't log final directory unless we actually made it.
59947         Refactor to avoid duplicate code to fix up permissions.
59948         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59949
59950         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59951         to make it a bit faster and (I hope) clearer.
59952         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59953         Fix bug in formats like %2N.
59954
59955         * lib/verify.h: New file.
59956
59957 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         Sync from coreutils.
59960         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59961
59962 2005-09-22  Jim Meyering  <jim@meyering.net>
59963
59964         Sync from coreutils.
59965
59966         * m4/lstat.m4 (gl_FUNC_LSTAT):
59967         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59968         Remove obsolete comment.
59969         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59970         * m4/xstrtod.m4: Likewise.
59971
59972         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59973
59974 2005-09-22  Jim Meyering  <jim@meyering.net>
59975
59976         Sync from coreutils.
59977
59978         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59979
59980         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59981         the .tm_year member, since otherwise gcc-4.0 would now warn about
59982         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59983
59984         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59985         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59986
59987         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59988         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59989         when run in a time zone for which daylight savings time is in effect
59990         for the starting date.
59991
59992         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59993         stop us from restricting permissions of just-created absolute-named
59994         directories.
59995         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59996         to restore initial working directory.
59997         * lib/mkdir-p.c (make_dir_parents): New parameter:
59998         different_working_dir, to tell caller if/when we change the working
59999         directory and are unable to return to the initial one.
60000         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60001         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60002         `return false'.  This fixes a bug introduced on 2004-07-30.
60003
60004         * lib/openat.c (fdopendir): Be sure to close the supplied
60005         file descriptor before returning.  This makes our replacement
60006         implementation a little closer to Solaris's, where fdopendir
60007         ties the file descriptor to the returned DIR* pointer.
60008         * lib/openat.c (unlinkat): New function.
60009         * lib/openat.h (unlinkat): Add prototype.
60010         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60011         (openat_restore_fail): Rename from openat_restore_die.
60012         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60013
60014         Provide an alternative to exiting immediately upon save_cwd or
60015         restore_cwd failure.  Now, an application can arrange e.g.,
60016         to perform a longjump in that case.
60017         * lib/openat.c: Include dirname.h.
60018         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60019         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60020         and openat_restore_die rather than calling error directly.
60021         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60022
60023         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60024         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60025         define.
60026
60027         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60028         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60029                             int utc, int nanoseconds);
60030         Background:
60031         date should not have to allocate a megabyte of virtual memory to
60032         handle a format argument like +%1048575T.  When implemented with
60033         strftime, it must allocate such a buffer, use strftime to fill it
60034         in, print it, then free it.
60035         With fprintftime, it simply prints everything and exits.
60036         With no need for memory allocation, that's one fewer way to fail.
60037         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60038         optional field width, not before, so we accept %9:z, not %:9z.
60039         (my_strftime): Be sure to use L_('x') for literals.
60040
60041         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60042         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60043         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60044         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60045         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60046         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60047         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60048         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60049         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60050         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60051         * lib/xgethostname.c, lib/xreadlink.c:
60052         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60053
60054         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60055         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60056         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60057         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60058         and don't include <sys/file.h>).
60059
60060 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60061
60062         Sync from coreutils.
60063
60064         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60065         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60066         [!LDAV_DONE]: Avoid unused variable warning.
60067
60068 2005-09-21  Bruno Haible  <bruno@clisp.org>
60069
60070         * lib/unicodeio.h (unicode_to_mb): New declaration.
60071
60072 2005-09-20  Derek Price  <derek@ximbiot.com>
60073
60074         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60075         getaddrinfo.h.
60076
60077 2005-09-20  Bruno Haible  <bruno@clisp.org>
60078
60079         * gnulib-tool: Remove trailing slashes from the values specified for
60080         --source-base, --m4-base, --tests-base, --aux-dir.
60081         Suggested by Simon Josefsson <jas@extundo.com>.
60082
60083 2005-09-20  Bruno Haible  <bruno@clisp.org>
60084
60085         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60086         func_modules_to_filelist, func_import, func_create_testdir): Make all
60087         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60088         change when gnulib-tool is invoked in a different locale.
60089
60090 2005-09-19  Simon Josefsson  <jas@extundo.com>
60091
60092         * m4/socklen.m4: Fix typo.
60093
60094 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60095
60096         Use a consistent style for including <config.h>.
60097         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60098         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60099         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60100         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60101         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60102         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60103         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60104         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60105         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60106         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60107         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60108         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60109         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60110         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60111         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60112         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60113         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60114         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60115         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60116         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60117         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60118         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60119         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60120         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60121         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60122         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60123         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60124         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60125         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60126         lib/xstrtoumax.c, lib/yesno.c:
60127         Standardize inclusion of config.h.
60128         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60129         lib/inttostr.h:  Removed inclusion of config.h from header files.
60130         * lib/inttostr.c:  Adjusted in-tree users.
60131         * lib/timespec.h: Remove superfluous warning to include config.h.
60132         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60133         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60134         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60135         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60136         config.h with HAVE_CONFIG_H.
60137
60138 2005-09-19  Jim Meyering  <jim@meyering.net>
60139
60140         * modules/pathmax (License): Change to LGPL.
60141
60142 2005-09-19  Derek Price  <derek@ximbiot.com>
60143
60144         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60145
60146 2005-09-19  Bruno Haible  <bruno@clisp.org>
60147
60148         * gnulib-tool (import): Provide default for --tests-base.
60149
60150 2005-09-19  Bruno Haible  <bruno@clisp.org>
60151
60152         * doc/quote.texi: New file, extracted from gnulib.texi.
60153         * doc/ctime.texi: New file, extracted from gnulib.texi.
60154         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60155         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60156         * doc/gnulib.texi: Include them.
60157
60158 2005-09-18  Bruno Haible  <bruno@clisp.org>
60159
60160         Portability fix.
60161         * gnulib-tool (func_readlink): New function.
60162         (func_ln_if_changed): Use it.
60163
60164 2005-09-18  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool: Support --with-tests also with --import.
60167         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60168         (func_import): Use variables $testsbase and $inctests. Emit a
60169         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60170         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60171         SUBDIRS += $testsdir.
60172         (func_create_testdir): Update.
60173
60174 2005-09-18  Bruno Haible  <bruno@clisp.org>
60175
60176         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60177         instead of $dry_run.
60178         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60179         (func_ln_if_changed): Don't handle dry-run here.
60180         (func_import): In dry-run mode, detect more precisely which actions
60181         would be performed, and don't use "...ing" verbs.
60182
60183 2005-09-18  Bruno Haible  <bruno@clisp.org>
60184
60185         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60186         (func_import): Use join on two temporary files instead of three nested
60187         loops, in order to determine which files are new or old.
60188
60189 2005-09-18  Bruno Haible  <bruno@clisp.org>
60190
60191         * gnulib-tool (func_import): Comment out code that spits out the
60192         new files with --dry-run.
60193
60194 2005-09-18  Bruno Haible  <bruno@clisp.org>
60195
60196         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60197
60198 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * lib/stat-time.h: New file.
60201         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60202         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60203         in a different way.
60204         (timespec_cmp): New function.
60205         * lib/utimecmp.c: Include stat-time.h.
60206         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60207         members exist, not on the obsolescent ST_MTIM_NSEC.
60208         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60209
60210 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60213
60214 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60215
60216         * MODULES.html.sh (File system functions): Add stat-time.
60217         * modules/stat-time: New file.
60218         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60219         is now done in a different way, by the stat-time module.
60220         * modules/utimecmp (Depends-on): Add stat-time.
60221
60222 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         * m4/st_mtim.m4: Remove.  Superseded by...
60225         * m4/stat-time.m4: New file.
60226         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60227         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60228
60229 2005-09-15  Derek Price  <derek@ximbiot.com>
60230
60231         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60232
60233 2005-09-15  Derek Price  <derek@ximbiot.com>
60234
60235         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60236         * lib/regex_internal.c: Ditto, using this...
60237         (__GNUC_PREREQ): ...new macro.
60238         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60239         using...
60240         (__GNUC_PREREQ): ...this new macro.
60241
60242         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60243
60244 2005-09-15  Derek Price  <derek@ximbiot.com>
60245             Paul Eggert  <eggert@cs.ucla.edu>
60246
60247         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60248         changes, consolidating in...
60249         * lib/regex_internal.h: ...this file.
60250
60251 2005-09-13  Jim Meyering  <jim@meyering.net>
60252
60253         * lib/canon-host.c: Filter through gnu indent and reword comments
60254         slightly.
60255         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60256
60257 2005-09-13  Derek Price  <derek@ximbiot.com>
60258
60259         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60260         failure.
60261         Reported by Jim Meyering  <jim@meyering.net>.
60262
60263 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60264
60265         * lib/base64.c: Typo.
60266         (base64_encode): Put b64str in initialized data section.
60267
60268 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         Merge glibc and coreutils changes into gnulib, plus a few
60271         extra fixes.
60272         * lib/md5.c: Use #error rather than a string.
60273         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60274         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60275         (__attribute__): Define to empty for non recent-GCC.
60276         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60277         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60278         Renamed from their non-__ counterparts, with new macros replacing
60279         them if not _LIBC.  Add __THROW attribute.
60280         (rol): Remove.
60281         (struct md5_ctx): Align buffer if using GCC.
60282         * lib/sha1.h (struct sha1_ctx): Likewise.
60283         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60284         The old name was backwards.
60285         (NOTSWAP): Remove; not used.
60286         (rol): New macro, moved here from md5.h.
60287         (sha1_process_block): Remove a FIXME that doesn't make sense.
60288
60289 2005-09-12  Derek Price  <derek@ximbiot.com>
60290
60291         Return usable errors from canon-host.
60292         * lib/canon-host.h: New file.
60293         * lib/canon-host.c (canon_host): Wrap...
60294         (canon_host_r): ...this new function, which now relies exclusively on
60295         getaddrinfo.
60296         (ch_strerror): New function.
60297         (last_cherror): New global.
60298         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
60299         interface.
60300         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
60301         void *.
60302         (freeaddrinfo): Free ai->ai_canonname when set.
60303
60304 2005-09-12  Derek Price  <derek@ximbiot.com>
60305
60306         Make canon-host require getaddrinfo.
60307         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
60308         AC_LIBSOURCE canon-host.h.  Call...
60309         (gl_PREREQ_CANON_HOST): ...this new function, which requires
60310         gl_GETADDRINFO.
60311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
60312
60313 2005-09-12  Derek Price  <derek@ximbiot.com>
60314
60315         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
60316         LGPL.
60317         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
60318
60319 2005-09-12  Derek Price  <derek@ximbiot.com>
60320
60321         * lib/gai_strerror.c: Include config.h when available.  Include
60322         getaddrinfo.h before other headers to test interface.
60323         Reported by Larry Jones <lawrence.jones@ugs.com>.
60324
60325 2005-09-12  Derek Price  <derek@ximbiot.com>
60326             Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * modules/glob (Files): Add glob-libc.h.
60329
60330 2005-09-12  Derek Price  <derek@ximbiot.com>
60331             Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
60334         glob_.h, glob-libc.h.
60335         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60336
60337 2005-09-12  Derek Price  <derek@ximbiot.com>
60338             Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60341         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60342         protecting things that should be done only in gnulib contexts.
60343         * lib/glob_.h: New file, containing only the glob things needed for
60344         gnulib.
60345         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60346         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60347         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60348         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60349         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60350         and to respect the namespace rules better.
60351
60352 2005-09-08  Simon Josefsson  <jas@extundo.com>
60353
60354         * modules/socklen: New file.
60355
60356 2005-09-08  Simon Josefsson  <jas@extundo.com>
60357
60358         * m4/socklen.m4: New file.
60359
60360 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60361
60362         * modules/utimens (Files): Add m4/utimbuf.m4, since
60363         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60364         Reported by Sergey Poznyakoff.
60365
60366 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60369         definitions, since that's the preferred style in glibc.
60370         Fix a minor spacing issue, and update copyright notice to match
60371         glibc's.
60372
60373 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60376
60377 2005-09-06  Simon Josefsson  <jas@extundo.com>
60378
60379         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60380         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60381
60382 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60385         warning.
60386
60387 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         * config/srclist.txt: Add glibc bug 1302.
60390
60391 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         Change bitset word type from unsigned int to unsigned long int,
60394         as this has better performance on typical 64-bit hosts.
60395         Port bitset code to hosts with unusual word sizes.
60396         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60397         (build_collating_symbol):
60398         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60399         argument is a bitset.  This is merely a style issue, but it makes
60400         it clearer that an entire array is expected.
60401         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60402         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60403         Port to the case where bitset_word is not the same as unsigned int.
60404         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60405         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60406         Likewise.
60407         * lib/regexec.c (check_dst_limits_calc_pos_1,
60408         check_subexp_matching_top):
60409         (build_trtable, group_nodes_into_DFAstates):
60410         Likewise.
60411         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60412         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60413         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60414         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60415         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60416         * lib/regcomp.c (optimize_subexps, lower_subexp):
60417         Work even if bitset_word has holes in its bitwise representation.
60418         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60419         * lib/regexec.c (check_dst_limits_calc_pos_1,
60420         check_subexp_matching_top):
60421         Likewise.
60422         * lib/regex_internal.c (re_string_reconstruct):
60423         Don't assume UCHAR_MAX == 255.
60424         * lib/regex_internal.h (bitset_set_all): Likewise.
60425         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60426         All uses changed.
60427         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60428         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60429         All uses changed.
60430         (BITSET_WORD_MAX): New macro.
60431         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60432         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60433         (bitset_empty, bitset_copy):
60434         Prefer sizeof (bitset) to multiplying it out ourselves.
60435         (bitset_not_merge): Remove; unused.
60436         (bitset_contain): Return bool, not unsigned int with one bit on.
60437         All callers changed.
60438         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60439         alignment than re_node_set; do this by defining a new internal
60440         type struct dests_alloc and using it to allocate memory.
60441
60442 2005-09-05  Bruno Haible  <bruno@clisp.org>
60443
60444         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60445         links.
60446
60447 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60448
60449         * modules/size_max (Makefile.am): Add size_max.h
60450
60451 2005-09-04  Derek Price  <derek@ximbiot.com>
60452
60453         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60454
60455 2005-09-03  Simon Josefsson  <jas@extundo.com>
60456
60457         * gnulib-tool: Fix typo.
60458
60459 2005-09-03  Simon Josefsson  <jas@extundo.com>
60460
60461         * config/srclist.txt: Add glibc bug 1293.
60462
60463 2005-09-03  Derek Price  <derek@ximbiot.com>
60464
60465         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60466         From Larry Jones <lawrence.jones@ugs.com>.
60467
60468 2005-09-02  Simon Josefsson  <jas@extundo.com>
60469
60470         * modules/socklen: New file.
60471
60472 2005-09-02  Simon Josefsson  <jas@extundo.com>
60473
60474         * modules/havelib: New module.
60475
60476         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60477         Use havelib.
60478
60479 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         Check for arithmetic overflow when calculating sizes, to prevent
60482         some buffer-overflow issues.  These patches are conservative, in the
60483         sense that when I couldn't determine whether an overflow was possible,
60484         I inserted a run-time check.
60485         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60486         macros.
60487         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60488         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60489         (re_xnrealloc, re_x2nrealloc): New inline functions.
60490         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60491         parse_bracket_exp):
60492         (build_equiv_class, build_charclass): Check for arithmetic overflow
60493         in size expression calculations.
60494         * lib/regex_internal.c (re_string_realloc_buffers):
60495         (build_wcs_upper_buffer, re_node_set_add_intersect):
60496         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60497         (re_dfa_add_node, register_state): Likewise.
60498         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60499         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60500         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60501         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60502
60503 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60506         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60507
60508 2005-09-02  Bruno Haible  <bruno@clisp.org>
60509
60510         Support for lib vs. lib64 distinction on biarch platforms.
60511         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60512         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60514
60515 2005-09-02  Bruno Haible  <bruno@clisp.org>
60516
60517         * gnulib-tool (import): In the other first-use case, provide defaults
60518         as well.
60519
60520 2005-09-02  Bruno Haible  <bruno@clisp.org>
60521
60522         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60523         patches not yet found in the latest gettext release.
60524
60525 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60526
60527         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60528         to avoid a collision with bits/local_lim.h in glibc.
60529         All uses changed.  Problem reported by Dmitry V. Levin in
60530         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60531
60532         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60533         bugs in int versus size_t comparisons.
60534         (re_string_context_at): Fix bug where the code assumed that
60535         Idx is signed.
60536
60537         Use bool where appropriate.
60538         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60539         All callers changed.
60540         (calc_eclosure_iter): Likewise, for ROOT arg.
60541         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60542         (build_charclass_op): Likewise, for NON_MATCH arg.
60543         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60544         (re_string_construct_common): Likewise, for ICASE arg.
60545         * lib/regexec.c (re_search_2_stub, re_search_stub):
60546         Likewise, for RET_LEN arg.
60547         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60548         (set_regs): Likewise, for FL_BACKTRACK arg.
60549         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60550         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60551         (calc_eclosure_iter, parse_bracket_exp):
60552         Use bool for internal variables that are booleans.
60553         * lib/regexec.c (re_search_internal, check_matching,
60554         proceed_next_node):
60555         (set_regs, build_sifted_states, sift_states_bkref):
60556         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60557         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60558         (find_collation_sequence_value):
60559         Likewise.
60560         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60561         (re_node_set_compare):
60562         Return bool, not int. All callers changed.
60563         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60564         (build_trtable, check_node_accept): Likewise.
60565         * lib/regex_internal.h: Include stdbool.h.
60566
60567         Fix bugs uncovered when converting to bool.
60568         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60569         failure instead of charging ahead blindly.
60570         * lib/regex_internal.c (register_state): Likewise.
60571         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60572         for freeing internal storage.
60573         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60574         bitset pieces used as boolean, to avoid undefined behavior
60575         on hosts that do int overflow checking.
60576
60577 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         * config/srclist.txt: Add glibc bugs 1285-1287.
60580
60581 2005-09-01  Jim Meyering  <jim@meyering.net>
60582
60583         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60584         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60585         Require gl_STAT_MACROS, too.
60586
60587 2005-09-01  Bruno Haible  <bruno@clisp.org>
60588
60589         * gnulib-tool (import): In the first-use case, provide defaults.
60590
60591 2005-09-01  Bruno Haible  <bruno@clisp.org>
60592
60593         * gnulib-tool (func_import): Remove the .tmp files.
60594
60595 2005-09-01  Bruno Haible  <bruno@clisp.org>
60596
60597         * gnulib-tool (func_import): Fix handling of symbolic links.
60598
60599 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60602         old glibc regex code mishandles strings longer than 2**31 bytes.
60603         This patch fixes this when the regex code is used in gnulib
60604         (i.e., outside glibc).
60605
60606         This patch should not affect the use of the regex code inside
60607         glibc.  No doubt this problem also needs to be handled for glibc
60608         as well, but the result will be an incompatible change to the
60609         glibc ABI, and the old ABI will have to be supported too.  That
60610         can be the the subject for another patch.
60611
60612         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60613         governing whether the rest of this patch is active.  By default,
60614         the macro is disabled and the patch has no effect.
60615         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60616         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60617         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60618         (re_match_2, re_set_registers): Use the new types.
60619         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60620         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60621         New macros.
60622         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60623         (re_string_context_at, bin_tree_t, re_dfastate_t):
60624         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60625         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60626         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60627         (re_string_char_size_at, re_string_wchar_at):
60628         (re_string_elem_size_at):
60629         Use the new types and macros to port to 64-bit hosts.
60630         Use unsigned types for internal values, so that the code
60631         mostly works even for arrays larger than SSIZE_MAX.
60632         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60633         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60634         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60635         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60636         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60637         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60638         (calc_inveclosure, parse_dup_op, build_range_exp):
60639         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60640         (fetch_number, create_token_tree, mark_opt_subexp):
60641         Likewise.
60642         * lib/regex_internal.c (re_string_construct_common,
60643         create_ci_newstate):
60644         (create_cd_newstate, re_string_allocate, re_string_construct):
60645         (re_string_realloc_buffers, build_wcs_upper_buffer):
60646         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60647         (re_string_reconstruct, re_string_peek_byte_case):
60648         (re_string_fetch_byte_case, re_string_context_at):
60649         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60650         (re_node_set_init_copy, re_node_set_add_intersect):
60651         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60652         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60653         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60654         (re_acquire_state, re_acquire_state_context, register_state):
60655         Likewise.
60656         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60657         search_cur_bkref_entry):
60658         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60659         (re_search_internal, re_search_2_stub, re_search_stub)
60660         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60661         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60662         (update_cur_sifted_state, check_dst_limits):
60663         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60664         (check_subexp_limits, sift_states_bkref, merge_state_array):
60665         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60666         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60667         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60668         (expand_bkref_cache, check_node_accept_bytes):
60669         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60670         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60671         (acquire_init_state_context, check_halt_node_context):
60672         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60673         (sift_states_backward, clean_state_log_if_needed):
60674         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60675         (find_recover_state, transit_state_sb, transit_state_mb):
60676         (transit_state_bkref, build_trtable, match_ctx_clean):
60677         Likewise.
60678         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60679         to work around an assumption that REG_MISSING is negative.
60680
60681         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60682         (seek_collating_symbol_entry) [defined _LIBC]:
60683         (lookup_collation_sequence_value) [defined _LIBC]:
60684         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60685         Use prototypes rather than old-style function definitions.
60686         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60687         (transit_state_sb) [0]:
60688         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60689
60690         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60691         rm_eo.
60692
60693         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60694         (optimize_subexps, lower_subexp):
60695         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60696         since the signed shift might overflow.  Use 1u<<31 instead.
60697         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60698         Likewise.
60699         * lib/regexec.c (check_dst_limits_calc_pos_1,
60700         check_subexp_matching_top): Likewise.
60701
60702         * lib/regcomp.c (optimize_subexps, lower_subexp):
60703         Use CHAR_BIT rather than 8, for clarity.
60704         * lib/regexec.c (check_dst_limits_calc_pos_1):
60705         (check_subexp_matching_top): Likewise.
60706         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60707         have to worry about portability issues when shifting it left.
60708         Remove no-longer-needed test for table_size > 0.
60709         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60710         in a word, as the resulting behavior is undefined.
60711         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60712         in one case, a <= should have been an <, and in another case the
60713         whole test was missing.
60714         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60715         the standard name CHAR_BIT.
60716         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60717         this is not true on one's complement and signed-magnitude hosts.
60718
60719         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60720         next_last_offset.
60721         (struct re_dfa_t): Remove unused member states_alloc.
60722         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60723
60724 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60725
60726         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60727         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60728         and large-file glibc and in 32-bit large-file Solaris.
60729
60730 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60733         lengths fit in regoff_t; this isn't true if regoff_t is the same
60734         width as size_t.
60735         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60736         (= START + RANGE) instead of RANGE.  This avoids overflow
60737         problems when regoff_t is the same width as size_t.
60738         All callers changed.
60739         (re_search_2_stub): Check for overflow when adding the
60740         sizes of the two strings.
60741         (re_search_stub): Check for overflow when adding START
60742         to RANGE; if it occurs, substitute the extreme value.
60743
60744 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60745
60746         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60747
60748 2005-08-31  Jim Meyering  <jim@meyering.net>
60749
60750         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60751         a pointer-to-const.
60752         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60753         (register_state): Likewise.
60754         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60755         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60756         (group_nodes_into_DFAstates): Likewise.
60757
60758 2005-08-31  Jim Meyering  <jim@meyering.net>
60759
60760         * check-module: Add a FIXME comment.
60761
60762 2005-08-31  Eric Blake  <ebb9@byu.net>
60763
60764         * modules/unistd-safer (Files): Add unistd--.h.
60765         * modules/stdio-safer (Files): Add stdio--.h.
60766
60767 2005-08-31  Derek Price  <derek@ximbiot.com>
60768
60769         * lib/getdelim.c (getdelim): Return EOF on EOF.
60770         Reported by Larry Jones <lawrence.jones@ugs.com>.
60771
60772 2005-08-31  Bruno Haible  <bruno@clisp.org>
60773
60774         Avoid unnecessary diffs in the generated lib/Makefile.am.
60775         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60776         the generated files.
60777         (func_import): Don't set cmd.
60778
60779 2005-08-31  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/strstr.c: Include <stddef.h>, for NULL.
60782         * lib/strcasestr.c: Likewise.
60783         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60784
60785 2005-08-31  Bruno Haible  <bruno@clisp.org>
60786
60787         * gnulib-tool: New option --macro-prefix.
60788         (func_import): Use macro_prefix.
60789         (import): Handle option --macro-prefix.
60790
60791 2005-08-31  Bruno Haible  <bruno@clisp.org>
60792
60793         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60794         Also use new variables cached_lgpl, cached_libtool.
60795
60796 2005-08-31  Bruno Haible  <bruno@clisp.org>
60797
60798         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60799         always instantiating them.
60800
60801 2005-08-31  Bruno Haible  <bruno@clisp.org>
60802
60803         * gnulib-tool (func_import): Read the previous cached settings
60804         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60805         earlier added by gnulib but are now dropped. Warn when a gnulib file
60806         overwrites a non-gnulib file.
60807
60808 2005-08-31  Bruno Haible  <bruno@clisp.org>
60809
60810         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60811         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60812         projects that don't keep autogenerated files in CVS. Put into
60813         actioncmd only the specified modules, not the transitive closure.
60814
60815 2005-08-31  Bruno Haible  <bruno@clisp.org>
60816
60817         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60818         Create directories that shall be filled.
60819         (import): Don't look for gl_* macros in configure.ac. Recurse across
60820         all directories containing a gnulib-cache.m4 files, if meaningful.
60821
60822 2005-08-31  Bruno Haible  <bruno@clisp.org>
60823
60824         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60825         (import): Set seen_libtool when we see gl_LIBTOOL.
60826
60827 2005-08-31  Bruno Haible  <bruno@clisp.org>
60828
60829         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60830         declaration macro definitions from generated gnulib.m4.
60831
60832 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60833
60834         * lib/iconvme.h: Add prototype for iconv_alloc.
60835
60836 2005-08-29  Simon Josefsson  <jas@extundo.com>
60837
60838         * lib/iconvme.c: Fix errno.
60839
60840 2005-08-29  Bruno Haible  <bruno@clisp.org>
60841
60842         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60843         that it works when the directory contains spaces.
60844
60845 2005-08-29  Bruno Haible  <bruno@clisp.org>
60846
60847         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60848
60849 2005-08-29  Bruno Haible  <bruno@clisp.org>
60850
60851         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60852         Emit more advice.
60853
60854 2005-08-29  Bruno Haible  <bruno@clisp.org>
60855         and Stepan Kasal  <kasal@ucw.cz>
60856
60857         * check-module: If more parameters are given, check each of them
60858         separately; add more exceptions, as noted by Jim Meyering.
60859         (check_module): New procedure.
60860         (%exempt_header): Now contains all exceptions.
60861
60862 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60863
60864         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60865
60866 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60867
60868         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60869
60870 2005-08-28  Bruno Haible  <bruno@clisp.org>
60871
60872         * m4/gnulib-tool.m4: New file.
60873
60874 2005-08-27  Jim Meyering  <jim@meyering.net>
60875
60876         * modules/unistd-safer (Files): Add pipe-safer.c.
60877         * modules/fcntl-safer (Files): Add creat-safer.c.
60878
60879 2005-08-27  Jim Meyering  <jim@meyering.net>
60880
60881         * m4/stdlib-safer.m4: New file.  From coreutils.
60882         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60883         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60884         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60885         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60886         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60887
60888 2005-08-27  Jim Meyering  <jim@meyering.net>
60889
60890         * lib/fopen-safer.c: Merge minor changes from coreutils.
60891         * lib/dup-safer.c: Likewise.
60892         * lib/fd-safer.c: Likewise.
60893
60894         Merge from coreutils.
60895         * lib/stdio--.h: New file.
60896         * lib/stdlib--.h: New file.
60897         * lib/mkstemp-safer.c: New file.
60898
60899         GNU tar needs these.
60900         * lib/pipe-safer.c: New file.
60901         * lib/creat-safer.c: New file.
60902         * lib/fcntl--.h (creat): Define to creat_safer.
60903         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60904         * lib/unistd--.h (pipe): Define to pipe_safer.
60905         * lib/unistd-safer.h: Declare pipe_safer.
60906
60907 2005-08-26  Simon Josefsson  <jas@extundo.com>
60908
60909         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60910         Haible <bruno@clisp.org>.
60911
60912 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/regex_internal.h: Remove all references to
60915         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60916         or better.
60917         (bitset_not, bitset_merge, bitset_not_merge):
60918         (bitset_mask, re_string_allocate, re_string_construct):
60919         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60920         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60921         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60922         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60923         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60924         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60925         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60926         (re_acquire_state_context):
60927         Remove unnecessary forward decls.
60928         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60929         Put __attribute at function definition,
60930         now that the function decl has been removed.
60931         * lib/regex_internal.c (re_string_peek_byte_case):
60932         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60933         Likewise.
60934
60935 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60936
60937         * m4/regex.m4: Add AC_PREREQ(2.50).
60938         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60939
60940 2005-08-25  Simon Josefsson  <jas@extundo.com>
60941
60942         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60943         __fsetlocking.
60944
60945 2005-08-25  Simon Josefsson  <jas@extundo.com>
60946
60947         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60948         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60949         GLIBC specific code.
60950
60951 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         Make regex safe for g++.  This fixes one real bug (an "err"
60954         that should have been "*err").  g++ problem reported by
60955         Sam Steingold.
60956         * lib/regex_internal.h (re_calloc): New macro, consistent with
60957         re_malloc etc.  All callers of calloc changed to use re_calloc.
60958         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60959         not int.  All callers changed.
60960         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60961         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60962         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60963         (find_recover_state): Change "err" to "*err"; this fixes what
60964         appears to be a real bug.
60965         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60966         versus int.
60967
60968 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * modules/regex (Depends-on): Add malloc, since the code
60971         assumes that !malloc(0) means failure.
60972
60973 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60974
60975         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60976
60977         alloca modernization/simplification for regex.
60978         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60979         needs to be at the start of the file, and can be moved into
60980         regex_internal.h and simplified.
60981         * lib/regex_internal.h: Include <alloca.h>.
60982         (__libc_use_alloca) [!defined _LIBC]: New macro.
60983         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60984         now works outside glibc.
60985
60986 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * config/srclist.txt: Add glibc bugs 1241, 1245.
60989
60990 2005-08-25  Jim Meyering  <jim@meyering.net>
60991
60992         * lib/open-safer.c: Include <config.h>.
60993         Otherwise, we'd lose LARGEFILE support in any file using
60994         e.g. "fcntl--.h"
60995
60996 2005-08-25  Bruno Haible  <bruno@clisp.org>
60997
60998         * m4/minmax.m4: Require autoconf 2.52.
60999         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61000         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61001         alternatives of translit over the alphabet.
61002         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61003
61004 2005-08-24  Simon Josefsson  <jas@extundo.com>
61005
61006         * tests/test-getpass.c: New file.
61007
61008 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61011         for GNU regex features.
61012
61013 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61016         * lib/regex.h (regerror): Likewise.
61017
61018         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61019         requires this.  (The code never needed it.)
61020
61021         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61022         All uses of recently-renamed identifiers changed to use the new,
61023         POSIX-compliant names.  The code will build and run just fine
61024         without these changes, but it's better to eat our own dog food
61025         and use the standard-conforming names.
61026
61027         * lib/regex.h: Fix a multitude of POSIX name space violations.
61028         These changes have an effect only for programs that define
61029         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61030         do not change anything for programs compiled in the normal way.
61031         Also, there is no effect on the ABI.
61032
61033         (_REGEX_SOURCE): New macro.
61034         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61035         defined and _GNU_SOURCE is not; this fixes a name space violation.
61036
61037         Rename the following macros to obey POSIX requirements.
61038         The old names are still visible as macros if _REGEX_SOURCE is defined.
61039         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61040         RE_BACKSLASH_ESCAPE_IN_LISTS.
61041         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61042         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61043         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61044         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61045         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61046         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61047         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61048         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61049         (REG_INTERVALS): renamed from RE_INTERVALS.
61050         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61051         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61052         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61053         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61054         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61055         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61056         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61057         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61058         RE_UNMATCHED_RIGHT_PAREN_ORD.
61059         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61060         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61061         (REG_DEBUG): renamed from RE_DEBUG.
61062         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61063         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61064         unusual, since we can't clash with the POSIX REG_ICASE.
61065         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61066         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61067         (REG_NO_SUB): renamed from RE_NO_SUB.
61068         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61069         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61070         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61071         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61072         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61073         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61074         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61075         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61076         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61077         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61078         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61079         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61080         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61081         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61082         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61083         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61084         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61085         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61086         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61087         (REG_FIXED): Renamed from REGS_FIXED.
61088         (REG_NREGS): Renamed from RE_NREGS.
61089
61090         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61091         of other REG_* macros, since POSIX says the user is allowed to
61092         #undef these macros selectively.
61093
61094         (reg_errcode_t): Update comment stating what other tables need
61095         to be consistent.
61096
61097         Rename the following enum values to obey POSIX requirements.
61098         The old names are still visible as macros.
61099         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61100         is not defined, since GNU is supposed to be a superset of POSIX as
61101         much as possible, and since we want reg_errcode_t to be a signed
61102         type for implementation consistency.
61103         (_REG_NOERROR): Renamed from REG_NOERROR.
61104         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61105         (_REG_BADPAT): Renamed from REG_BADPAT.
61106         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61107         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61108         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61109         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61110         (_REG_EBRACK): Renamed from REG_EBRACK.
61111         (_REG_EPAREN): Renamed from REG_EPAREN.
61112         (_REG_EBRACE): Renamed from REG_EBRACE.
61113         (_REG_BADBR): Renamed from REG_BADBR.
61114         (_REG_ERANGE): Renamed from REG_ERANGE.
61115         (_REG_ESPACE): Renamed from REG_ESPACE.
61116         (_REG_BADRPT): Renamed from REG_BADRPT.
61117         (_REG_EEND): Renamed from REG_EEND.
61118         (_REG_ESIZE): Renamed from REG_ESIZE.
61119         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61120         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61121         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61122         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61123         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61124
61125         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61126         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61127         changed.  But support the old name if the new one is not defined
61128         and if _REGEX_SOURCE.
61129
61130         Change the following member names in struct re_pattern_buffer.
61131         The old names are still supported if !_REGEX_SOURCE.
61132         The new names are always supported, regardless of _REGEX_SOURCE.
61133         (re_buffer): Renamed from buffer.
61134         (re_allocated): Renamed from allocated.
61135         (re_used): Renamed from used.
61136         (re_syntax): Renamed from syntax.
61137         (re_fastmap): Renamed from fastmap.
61138         (re_translate): Renamed from translate.
61139         (re_can_be_null): Renamed from can_be_null.
61140         (re_regs_allocated): Renamed from regs_allocated.
61141         (re_fastmap_accurate): Renamed from fastmap_accurate.
61142         (re_no_sub): Renamed from no_sub.
61143         (re_not_bol): Renamed from not_bol.
61144         (re_not_eol): Renamed from not_eol.
61145         (re_newline_anchor): Renamed from newline_anchor.
61146
61147         Change the following member names in struct re_registers.
61148         The old names are still supported if !_REGEX_SOURCE.
61149         The new names are always supported, regardless of _REGEX_SOURCE.
61150         (rm_num_regs): Renamed from num_regs.
61151         (rm_start): Renamed from start.
61152         (rm_end): Renamed from end.
61153
61154         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61155         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61156         Prepend __ to parameter names.
61157
61158         Undo yesterday's changes.
61159
61160 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61163         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61164         lib/regex.c.
61165
61166 2005-08-24  Jim Meyering  <jim@meyering.net>
61167
61168         Sync from coreutils.
61169         * m4/fcntl-safer.m4: New file.
61170
61171         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61172         and object files for this module.
61173
61174 2005-08-24  Jim Meyering  <jim@meyering.net>
61175
61176         Sync from coreutils.
61177         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61178
61179 2005-08-24  Jim Meyering  <jim@meyering.net>
61180
61181         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61182         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61183
61184 2005-08-24  Jim Meyering  <jim@meyering.net>
61185
61186         * modules/fcntl-safer: New module.
61187         * modules/fts (Depends-on): Add fcntl-safer.
61188         * MODULES.html.sh (File descriptor based Input/Output):
61189         Add fcntl-safer.
61190
61191 2005-08-24  Bruno Haible  <bruno@clisp.org>
61192
61193         Support for unit test modules.
61194         * modules/README: Mention tests modules.
61195         * modules/TEMPLATE-TESTS: New file.
61196         * gnulib-tool: New options --extract-tests-module, --with-tests and
61197         --tests-base (unused for the moment).
61198         (testsbase, inctests): New variables.
61199         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61200         (func_verify_module): Exclude TEMPLATE-TESTS.
61201         (func_verify_nontests_module, func_verify_tests_module): New functions.
61202         (func_get_dependencies): Add implicit dependency for tests modules.
61203         (func_get_tests_module): New function.
61204         (func_modules_transitive_closure): When --with-tests was specified,
61205         include the unit tests as well, unless explicitly avoided.
61206         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61207         (func_emit_tests_Makefile_am): New function.
61208         (func_create_testdir): When --with-tests was specified, emit a
61209         tests/ directory.
61210         * MODULES.html.sh (Future developments): Update.
61211
61212 2005-08-24  Bruno Haible  <bruno@clisp.org>
61213
61214         * modules/tls-tests: New file.
61215         * tests/test-tls.c: New file, from GNU gettext.
61216
61217 2005-08-24  Bruno Haible  <bruno@clisp.org>
61218
61219         * modules/lock-tests: New file.
61220         * tests/test-lock.c: New file, from GNU gettext.
61221
61222 2005-08-24  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/lock.h: Add multiple inclusion guard.
61225         * lib/tls.h: Add multiple inclusion guard.
61226
61227 2005-08-24  Bruno Haible  <bruno@clisp.org>
61228
61229         * gnulib-tool: Add support for the --aux-dir option to
61230         --create-testdir, --create-megatestdir, --test, --megatest.
61231         (func_create_testdir, func_create_megatestdir): Optionally emit a
61232         AC_CONFIG_AUX_DIR directive.
61233         (create-testdir, create-megatestdir, test, megatest): Provide a
61234         default value for $auxdir.
61235
61236 2005-08-24  Bruno Haible  <bruno@clisp.org>
61237
61238         * gnulib-tool (import): Use compound statement instead of subshell
61239         where possible.
61240
61241 2005-08-24  Bruno Haible  <bruno@clisp.org>
61242
61243         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61244
61245 2005-08-24  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_version): Update.
61248
61249 2005-08-24  Bruno Haible  <bruno@clisp.org>
61250
61251         * gnulib-tool (func_import, func_create_testdir,
61252         func_create_megatestdir): Quote all autoconf macro arguments.
61253
61254 2005-08-24  Bruno Haible  <bruno@clisp.org>
61255
61256         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61257         option --force, because --force causes the aclocal.m4 of each
61258         subdirectory to be newer than the corresponding config.h.in.
61259
61260 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61263         All contents moved to gl_REGEX.
61264         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61265         assume that it does.
61266
61267 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61268
61269         * lib/regex.h (REG_NOSYS)
61270         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61271         Define, since POSIX requires it as of 2001.
61272         (_REG_ENOSYS)
61273         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61274         New private symbol, used to keep the enum signed in all cases.
61275         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61276         Youngman in
61277         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61278
61279         * lib/regex_internal.c (re_string_skip_chars, register_state):
61280         (calc_state_hash):
61281         Remove forward decls; no longer needed now that we use prototypes.
61282         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61283         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61284         (clean_state_log_if_needed): Likewise.
61285
61286 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         * config/srclist.txt: Add glibc bugs 1231-1233.
61289
61290 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         Fix problems reported by Sam Steingold in
61293         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
61294         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
61295         assumed that reg_errcode_t is a signed type, which is not
61296         necessarily true if _XOPEN_SOURCE is not defined.
61297         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
61298         since some compilers warn about it otherwise.
61299
61300 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
61303         (init_word_char, create_initial_state, duplicate_node_closure):
61304         (fetch_token, peek_token_bracket, build_range_exp):
61305         (build_collating_symbol): Remove forward decls; no longer needed
61306         now that we use prototypes.
61307
61308         * lib/regcomp.c:
61309         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
61310         (re_compile_fastmap_iter, regcomp, regerror, regfree):
61311         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
61312         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
61313         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
61314         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
61315         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
61316         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
61317         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
61318         (build_range_exp, build_collating_symbol, parse_bracket_exp):
61319         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
61320         (build_charclass, build_charclass_op, fetch_number, create_tree):
61321         (create_token_tree, mark_opt_subexp, duplicate_tree):
61322         Use prototypes rather than old-style definitions.
61323
61324         * lib/regex_internal.c:
61325         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
61326         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
61327         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61328         (re_string_reconstruct, re_string_peek_byte_case):
61329         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
61330         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61331         (re_node_set_init_copy, re_node_set_add_intersect):
61332         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61333         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61334         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61335         (re_acquire_state, re_acquire_state_context, register_state):
61336         (create_ci_newstate, create_cd_newstate, free_state):
61337         Likewise.
61338         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61339         re_search_2):
61340         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61341         (re_search_internal, prune_impossible_nodes):
61342         (acquire_init_state_context, check_matching, static):
61343         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61344         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61345         (update_regs, sift_states_backward, build_sifted_states):
61346         (clean_state_log_if_needed, merge_state_array):
61347         (update_cur_sifted_state, add_epsilon_src_nodes):
61348         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61349         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61350         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61351         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61352         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61353         (check_arrival, check_arrival_add_next_nodes):
61354         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61355         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61356         (check_node_accept_bytes, check_node_accept, extend_buffers):
61357         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61358         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61359         (sift_ctx_init):
61360         Likewise.
61361
61362         * lib/regex_internal.h:
61363         (re_string_allocate, re_string_construct, re_string_reconstruct):
61364         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61365         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61366         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61367         (re_string_context_at, re_string_peek_byte_case):
61368         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61369         is defined, since we now use prototypes always.
61370
61371         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61372         C89 or better.  All uses removed.
61373
61374 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         * config/srclist.txt: Add glibc bugs 1220-1227.
61377
61378 2005-08-20  Jim Meyering  <jim@meyering.net>
61379
61380         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61381         of unused local, dfa.
61382
61383 2005-08-20  Bruno Haible  <bruno@clisp.org>
61384
61385         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61386
61387 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61390         (re_node_set_insert_last, re_dfa_add_node):
61391         Rename local variables to avoid GCC shadowing warnings.
61392
61393 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61394
61395         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61396         [defined lint]: Suppress bogus uninitialized-variable warnings.
61397
61398         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61399         and let the caller return REG_ESPACE if out of space.  This
61400         removes an uninitialied-variable warning with GCC 4.0.1, and also
61401         avoids taking the address of a local variable.  All callers
61402         changed.
61403
61404 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61407         $LIBCSRC/posix/regexec.c.
61408         Add glibc bug 1217 for regcomp.c.
61409
61410 2005-08-19  Jim Meyering  <jim@meyering.net>
61411
61412         * lib/regexec.c (proceed_next_node): Redo local variables to
61413         avoid GCC shadowing warnings.
61414
61415 2005-08-18  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/strstr.c (strstr): Fix return value in multibyte case.
61418         * lib/strcasestr.c (strcasestr): Likewise.
61419
61420 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61421
61422         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61423
61424 2005-08-17  Jim Meyering  <jim@meyering.net>
61425
61426         Make the %s format (seconds since the epoch) work for a negative
61427         number and when used with a zero-padded field width, e.g. %015s.
61428
61429         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61430         label so that it precedes the code to set `digits'.  Otherwise,
61431         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61432         print `00-22'.  Now, it prints `-0022', as it should.
61433
61434 2005-08-17  Bruno Haible  <bruno@clisp.org>
61435
61436         * modules/strstr (Files): Add m4/mbrtowc.m4.
61437         (Depends-on): Add mbuiter.
61438
61439 2005-08-17  Bruno Haible  <bruno@clisp.org>
61440
61441         * modules/strcasestr: New file.
61442         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61443         strcasestr.
61444
61445 2005-08-17  Bruno Haible  <bruno@clisp.org>
61446
61447         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61448
61449 2005-08-17  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/mbuiter: New file.
61452         * MODULES.html.sh (Extended multibyte and wide character utilities):
61453         Add mbuiter.
61454
61455 2005-08-17  Bruno Haible  <bruno@clisp.org>
61456
61457         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61458         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61459
61460 2005-08-17  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/strcasestr.m4: New file.
61463
61464 2005-08-17  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61467         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61468
61469 2005-08-17  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/strcasestr.h: New file.
61472         * lib/strcasestr.c: New file.
61473
61474 2005-08-17  Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/strcasecmp.c: Use mbuiter.h.
61477
61478 2005-08-17  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/mbuiter.h: New file.
61481
61482 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61483
61484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61485         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61486         and gl_GETOPT are both invoked via different paths (as happens
61487         with GNU tar CVS because it uses both argp and getopt), the former
61488         wins.
61489
61490 2005-08-16  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/tls: New file.
61493         * MODULES.html.sh (Multithreading): Add tls.
61494
61495 2005-08-16  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/strnlen1: New file.
61498         * MODULES.html.sh (String handling): Add strnlen1.
61499
61500 2005-08-16  Bruno Haible  <bruno@clisp.org>
61501
61502         * modules/strcase (Files): Add m4/mbrtowc.m4.
61503         (Depends-on): Add strnlen1, mbchar.
61504
61505 2005-08-16  Bruno Haible  <bruno@clisp.org>
61506
61507         * modules/mbiter: New file.
61508         * MODULES.html.sh (Extended multibyte and wide character utilities):
61509         Add mbiter.
61510
61511 2005-08-16  Bruno Haible  <bruno@clisp.org>
61512
61513         * modules/mbfile: New file.
61514         * MODULES.html.sh (Extended multibyte and wide character utilities):
61515         Add mbfile.
61516
61517 2005-08-16  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/mbchar: New file.
61520         * MODULES.html.sh (Extended multibyte and wide character utilities):
61521         New section.
61522
61523 2005-08-16  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/tls.m4: New file, from GNU gettext.
61526
61527 2005-08-16  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61530         always.
61531         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61532
61533 2005-08-16  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/mbiter.m4: New file.
61536
61537 2005-08-16  Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/mbfile.m4: New file.
61540
61541 2005-08-16  Bruno Haible  <bruno@clisp.org>
61542
61543         * m4/mbchar.m4: New file.
61544
61545 2005-08-16  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/tls.h: New file, from GNU gettext.
61548         * lib/tls.c: New file, from GNU gettext.
61549
61550 2005-08-16  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/strnlen1.h: New file.
61553         * lib/strnlen1.c: New file.
61554
61555 2005-08-16  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61558         (mbi_init): Update.
61559         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61560         NUL byte, not after it.
61561
61562 2005-08-16  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/strcase.h (strcasecmp): Add note in comments.
61565         * lib/strncasecmp.c: Use code from strcasecmp.c.
61566         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61567         (strcasecmp): Work correctly in multibyte locales.
61568
61569 2005-08-16  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/mbiter.h: New file.
61572
61573 2005-08-16  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/mbfile.h: New file.
61576
61577 2005-08-16  Bruno Haible  <bruno@clisp.org>
61578
61579         * lib/mbchar.h: New file.
61580         * lib/mbchar.c: New file.
61581
61582 2005-08-16  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61585         the valid ones. Makes the comparison operations transitive:
61586         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61587         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61588
61589 2005-08-15  Simon Josefsson  <jas@extundo.com>
61590
61591         * modules/ssize_t (License): Change to 'unlimited'.
61592
61593         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61594
61595 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61598         Add comments for each pending glibc patch.
61599
61600 2005-08-15  Bruno Haible  <bruno@clisp.org>
61601
61602         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61603         __cplusplus is defined.
61604
61605 2005-08-14  Jim Meyering  <jim@meyering.net>
61606
61607         Sync from coreutils.
61608
61609         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61610         Use the hash-table-based cycle-detection code not just when
61611         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61612         Reported by James Youngman in
61613         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61614         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61615         FTS_TIGHT_CYCLE_CHECK.
61616         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61617         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61618         once again.
61619         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61620         * lib/fts.c (fd_safer): Remove decl.
61621         Include fcntl--.h rather than unistd-safer.h
61622         (fts_safe_changedir): Don't call fd_safer; no longer needed
61623         now that we include fcntl--.h.
61624
61625 2005-08-12  Simon Josefsson  <jas@extundo.com>
61626
61627         * modules/getndelim2: Use ssize_t module.
61628         * modules/getnline: Likewise.
61629         * modules/safe-read: Likewise.
61630         * modules/xreadlink: Likewise.
61631
61632         * modules/ssize_t: New file.
61633
61634 2005-08-12  Simon Josefsson  <jas@extundo.com>
61635
61636         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61637
61638 2005-08-12  Simon Josefsson  <jas@extundo.com>
61639
61640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61641         ssize_t.
61642
61643 2005-08-12  Simon Josefsson  <jas@extundo.com>
61644
61645         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61646         readline, getdelim and check_version.
61647         (Support for systems lacking ISO C 99: Sizes of integer types):
61648         Add size_max.
61649
61650 2005-08-12  Bruno Haible  <bruno@clisp.org>
61651
61652         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61653
61654 2005-08-11  Simon Josefsson  <jas@extundo.com>
61655
61656         * modules/readline: New file.
61657
61658         * modules/strnlen (Files): Add strnlen.h.
61659
61660 2005-08-11  Simon Josefsson  <jas@extundo.com>
61661
61662         * m4/readline.m4: New file.
61663
61664 2005-08-11  Simon Josefsson  <jas@extundo.com>
61665
61666         * lib/readline.h, readline.c: New file.
61667
61668 2005-08-11  Simon Josefsson  <jas@extundo.com>
61669
61670         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61671         gl_AVOID.
61672
61673 2005-08-11  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61676
61677 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61678
61679         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61680
61681 2005-08-10  Simon Josefsson  <jas@extundo.com>
61682
61683         * tests/test-iconvme.c: New file.
61684
61685 2005-08-10  Simon Josefsson  <jas@extundo.com>
61686
61687         * m4/strnlen.m4: New file.
61688
61689         * m4/strndup.m4: Don't check for strnlen declaration, done in
61690         strnlen.m4.
61691
61692 2005-08-10  Simon Josefsson  <jas@extundo.com>
61693
61694         * lib/strndup.c: Use strnlen.h.
61695
61696         * lib/strnlen.h: New file.
61697
61698 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61699
61700         * README: Typos.
61701
61702 2005-08-02  Simon Josefsson  <jas@extundo.com>
61703
61704         * modules/readline: New file.
61705
61706 2005-08-02  Simon Josefsson  <jas@extundo.com>
61707
61708         * modules/getdelim: New file.
61709
61710         * modules/getline: Rewrite, don't use getndelim2.
61711
61712 2005-08-02  Simon Josefsson  <jas@extundo.com>
61713
61714         * m4/getline.m4: Separate out getdelim stuff into separate module.
61715
61716         * m4/getdelim.m4: New file.
61717
61718 2005-08-02  Simon Josefsson  <jas@extundo.com>
61719
61720         * lib/getline.h, getline.c: Rewrite.
61721
61722         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61723
61724 2005-07-31  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/lock.h (gl_lock_initializer): New macro.
61727         (gl_lock_define_initialized): Use it.
61728         (gl_rwlock_initializer): New macro.
61729         (gl_rwlock_define_initialized): Use it.
61730         (gl_recursive_lock_initializer): New macro.
61731         (gl_recursive_lock_define_initialized): Use it.
61732
61733 2005-07-30  Karl Berry  <karl@gnu.org>
61734
61735         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61736         Report from Ben Pfaff, regarding getopt.
61737
61738 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61741         normal way.
61742         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61743         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61744         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61745         (gl_GETOPT): Use the new macros.  Most of the implementation
61746         is moved to the new macros.  This is for programs like Emacs
61747         that don't want all the functionality of gl_GETOPT.
61748
61749 2005-07-26  Bruno Haible  <bruno@clisp.org>
61750
61751         * m4/lock.m4: Update from GNU gettext.
61752
61753 2005-07-26  Bruno Haible  <bruno@clisp.org>
61754
61755         * lib/lock.h: Update from GNU gettext.
61756         * lib/lock.c: Update from GNU gettext.
61757
61758 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61761         obsolescent AC_TRY_RUN.  Include the default includes files, for
61762         'exit'.
61763
61764 2005-07-24  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/visibility: New file.
61767         * MODULES.html.sh (Misc): Add visibility.
61768
61769 2005-07-24  Bruno Haible  <bruno@clisp.org>
61770
61771         * m4/visibility.m4: New file.
61772
61773 2005-07-24  Bruno Haible  <bruno@clisp.org>
61774
61775         * doc/visibility.texi: New file.
61776
61777 2005-07-22  Bruno Haible  <bruno@clisp.org>
61778
61779         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61780         $(ALLOCA_H), redundant through BUILT_SOURCES.
61781         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61782         redundant through BUILT_SOURCES.
61783         * modules/byteswap (Makefile.am): Remove explicit dependency on
61784         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61785         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61786         $(FNMATCH_H), redundant through BUILT_SOURCES.
61787         * modules/getopt (Makefile.am): Remove explicit dependency on
61788         $(GETOPT_H), redundant through BUILT_SOURCES.
61789         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61790         redundant through BUILT_SOURCES.
61791         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61792         redundant through BUILT_SOURCES.
61793         * modules/stdbool (Makefile.am): Remove explicit dependency on
61794         $(STDBOOL_H), redundant through BUILT_SOURCES.
61795         * modules/stdint (Makefile.am): Remove explicit dependency on
61796         $(STDINT_H), redundant through BUILT_SOURCES.
61797         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61798         Remove explicit dependency on $(SYSEXITS_H).
61799         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61800
61801 2005-07-18  Simon Josefsson  <jas@extundo.com>
61802
61803         * lib/check-version.c (check_version): Accept identical versions too.
61804
61805 2005-07-18  Bruno Haible  <bruno@clisp.org>
61806
61807         * modules/lock: New file.
61808         * MODULES.html.sh (Multithreading): New section.
61809
61810 2005-07-18  Bruno Haible  <bruno@clisp.org>
61811
61812         * m4/lock.m4: New file, from GNU gettext.
61813
61814 2005-07-18  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/lock.h: New file, from GNU gettext.
61817         * lib/lock.c: New file, from GNU gettext.
61818
61819 2005-07-18  Bruno Haible  <bruno@clisp.org>
61820
61821         * lib/lock.h (gl_once_t): New type.
61822         (gl_once_define, gl_once): New macros.
61823         * lib/lock.c (fresh_once): New variable.
61824         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61825         functions.
61826
61827 2005-07-16  Simon Josefsson  <jas@extundo.com>
61828
61829         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61830         workaround, suggested by Bruno.
61831
61832 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * modules/xalloc (Depends-on): Add xalloc-die.
61835         * modules/xvasprintf (Depends-on): Add xalloc-die.
61836
61837 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61840         with a minor change.
61841
61842 2005-07-15  Bruno Haible  <bruno@clisp.org>
61843
61844         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61845         When using lib/poll.c, define poll as rpl_poll.
61846
61847 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * modules/argp (Depends-on): Remove unlocked-io.
61850
61851 2005-07-14  Derek Price  <derek@ximbiot.com>
61852
61853         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61854         for glob symlink bug.
61855
61856 2005-07-14  Bruno Haible  <bruno@clisp.org>
61857
61858         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61859         Instead, test for *_unlocked function declarations directly.
61860
61861 2005-07-11  Simon Josefsson  <jas@extundo.com>
61862
61863         * modules/size_max: New file.
61864
61865         * modules/xsize: Depend on size_max module for size_max.m4.
61866
61867 2005-07-11  Simon Josefsson  <jas@extundo.com>
61868
61869         * lib/size_max.h: New file.
61870
61871 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61874         copyright symbol and the year.
61875         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61876         (version_etc_va): Use parameterized copyright notice.
61877         Reword to conform to the current GNU coding standards.
61878
61879 2005-07-11  Karl Berry  <karl@gnu.org>
61880
61881         * doc/gnulib.texi (Quoting): new node.
61882         (Initial import): more info, from Patrice.
61883
61884 2005-07-11  Bruno Haible  <bruno@clisp.org>
61885
61886         * gnulib-tool (func_usage): Document option --avoid.
61887         (Command line options): Handle --avoid.
61888         (func_acceptable): New function.
61889         (func_modules_transitive_closure): Use it.
61890
61891 2005-07-11  Bruno Haible  <bruno@clisp.org>
61892
61893         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61894         Reported by Jim Meyering.
61895
61896 2005-07-10  Bruno Haible  <bruno@clisp.org>
61897
61898         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61899         Needed when size_t is smaller than 'unsigned int'.
61900         Reported by Paul Eggert.
61901
61902 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61903
61904         * modules/argp (Depends-on): Add unlocked-io
61905
61906 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61907
61908         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61909         block of defines.
61910
61911 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61914         fix now.
61915
61916 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61917         and Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61920         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61921
61922 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * modules/regex (Files): Add lib/regex_internal.c,
61925         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61926         (Depends-on): Add extensions.
61927         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61928
61929 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61932         pathconf.
61933         * m4/same.m4 (gl_SAME): Likewise.
61934         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61935
61936         * m4/regex.m4: Adjust to new libc regex implementation.
61937         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61938         all the .c and .h parts of (the new) regex.
61939         Quote the m4 stuff better.
61940         Check for RE_ICASE bug of old gnulib.
61941         Check for REG_STARTEND of recent libc.
61942         Rename local variables from jm_* to gl_*.
61943         Quote operand of "test -f".
61944         Say "recent enough" version of libc, not "version 2".
61945         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61946         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61947         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61948         Remove check for btowc, isascii.
61949         Require AM_LANGINFO_CODESET.
61950
61951 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * lib/regex.c, regex.h: Sync from libc.
61954         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61955         * lib/regexec.c:
61956         New files, synced from libc, except that regex_internal.h
61957         currently has a small porting fix.
61958
61959 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61962         regex_internal.c, regexec.c.
61963         Add regex_internal.h too, but as a comment, since the libc version
61964         is currently broken in gnulib mode.
61965
61966 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         Support programs like Emacs that use gnulib but not gettext.
61969         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61970         * modules/gettext-h: New file.
61971         * modules/gettext (Files): Remove lib/gettext.h.
61972         (Depends-on): Add gettext-h.
61973         (Makefile.am): Remove lib_SOURCES.
61974         * modules/argmatch, modules/c-stack, modules/closeout:
61975         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61976         * modules/execute, modules/file-type, modules/getaddrinfo:
61977         * modules/getopt, modules/human, modules/javacomp:
61978         * modules/javaexec, modules/mkdir-p, modules/obstack:
61979         * modules/openat, modules/pagealign_alloc, modules/pipe:
61980         * modules/quotearg, modules/regex, modules/rpmatch:
61981         * modules/unicodeio, modules/userspec, modules/version-etc:
61982         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61983         * modules/xsetenv:
61984         Depend on gettext-h, not gettext.
61985
61986 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         * gnulib-tool (func_import): Add support for 'public domain' license.
61989         * modules/alloca, modules/atexit, modules/memmove:
61990         Now public domain, not GPL.
61991         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61992         * modules/realloc, modules/strerror, modules/strtod:
61993         Now LGPL, not GPL.
61994
61995 2005-07-05  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61998         autoconf CVS. Needed for mingw.
61999
62000 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         Remove the dependency of the strftime module on the tzset module.
62003         * modules/strftime (Depends-on): Remove dependency on tzset.
62004
62005 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62006
62007         Remove the dependency of the strftime module on the tzset module.
62008         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62009         gl_FUNC_TZSET_CLOBBER.
62010
62011 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         Remove the dependency of the strftime module on the tzset module.
62014         * lib/strftime.c (my_strftime)
62015         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62016         Copy the input structure, to work around some of the bug with
62017         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62018         Solaris releases, you should also use the tzset module, but we won't
62019         require it as a dependency any more since we don't want LGPLed code
62020         to depend on GPLed code.
62021
62022 2005-07-02  Jim Meyering  <jim@meyering.net>
62023
62024         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62025         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62026         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62027         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62028
62029 2005-07-02  Jim Meyering  <jim@meyering.net>
62030
62031         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62032
62033 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62036         declares only 'struct timespec;' (!).
62037
62038 2005-07-01  Jim Meyering  <jim@meyering.net>
62039
62040         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62041         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62042         * lib/save-cwd.c, tempname.c:
62043         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62044         and don't include <sys/file.h>).
62045
62046 2005-06-29  Jim Meyering  <jim@meyering.net>
62047
62048         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62049         type name.  Use the variable name instead.
62050         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62051         Likewise.
62052
62053 2005-06-28  Simon Josefsson  <jas@extundo.com>
62054
62055         * modules/check-version (Files): Add check-version.m4.
62056
62057 2005-06-28  Simon Josefsson  <jas@extundo.com>
62058
62059         * m4/check-version.m4: New file, suggested by Jim Meyering
62060         <jim@meyering.net>.
62061
62062 2005-06-28  Simon Josefsson  <jas@extundo.com>
62063
62064         * lib/check-version.h, lib/check-version.c: New files.
62065
62066 2005-06-28  Simon Josefsson  <jas@extundo.com>
62067
62068         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62069         collision with global variable.  Better indentation.  Don't
62070         increment buffer pointer beyond buffer end.  Based on comments
62071         from Paul Eggert <eggert@cs.ucla.edu>.
62072
62073         * lib/base64.h: Indent.
62074
62075 2005-06-28  Simon Josefsson  <jas@extundo.com>
62076
62077         * doc/gnulib.texi (Library version handling): New section.
62078
62079 2005-06-28  Jim Meyering  <jim@meyering.net>
62080
62081         * check-module (find_included_lib_files): Hard-code another
62082         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62083         but modules/fts-lgpl (correctly) does not list those files.
62084
62085         * modules/canonicalize (Files): Add lib/pathmax.h.
62086
62087 2005-06-25  Simon Josefsson  <jas@extundo.com>
62088
62089         * modules/check-version: New file.
62090
62091 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62094         initializer of struct addrinfo, as an indication that we don't
62095         care how many members the structure has.
62096
62097 2005-06-24  Derek Price  <derek@ximbiot.com>
62098         and Bruno Haible  <bruno@clisp.org>
62099
62100         Remove stat module & update lstat.
62101         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62102         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62103         * m4/stat.m4: Remove this file.
62104
62105 2005-06-24  Derek Price  <derek@ximbiot.com>
62106         and Bruno Haible  <bruno@clisp.org>
62107
62108         Remove stat module & update lstat.
62109         * lib/stat.c: Remove this file...
62110         (slash_aware_lstat): ...moving this content and its support...
62111         * lib/lstat.c (rpl_lstat): ...into here.
62112         * lib/lstat.h: New file.
62113
62114 2005-06-24  Derek Price  <derek@ximbiot.com>
62115         and Bruno Haible  <bruno@clisp.org>
62116
62117         Remove stat module & update lstat.
62118         * config/srclist.txt (libc sources): Remove stat.
62119
62120 2005-06-24  Derek Price  <derek@ximbiot.com>
62121         and Bruno Haible  <bruno@clisp.org>
62122
62123         Remove stat module & update lstat.
62124         * MODULES.html.sh (stat): Remove.
62125         * MODULES.html: Regenerated.
62126         * modules/lstat (Description): Correct function name.
62127         (Files): Add "lstat.h".
62128         (Depends-on): Remove stat, add xalloc, stat-macros.
62129         * modules/stat: Remove this file.
62130         (Include): Add "lstat.h", remove <sys/stat.h>.
62131
62132 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62135         (ranged_convert): Don't save conversion in a temporary struct.
62136         This causes a warning with GCC 4.0.0, and anyway in the typical
62137         case it's not worth the extra 100 bytes or so of code.
62138         (ranged_convert, __mktime_internal): When calling a function via a
62139         pointer P, use P () rather than (*P) (), as we now assume C89 or
62140         better.
62141
62142 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62143
62144         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62145         "who -r" failed to give output.  Problem reported by Tim Waugh.
62146
62147         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62148         (xcalloc): Use it to avoid needless tests.
62149         Problem reported by Jim Meyering.
62150
62151 2005-06-20  Derek Price  <derek@ximbiot.com>
62152
62153         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62154         unnecessary for Autoconfs > 2.59c.
62155
62156 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62157
62158         * lib/argp.h (__option_is_short): Check upper limit of
62159         __key. Isprint() requires its argument to have the value
62160         of an unsigned char or EOF.
62161
62162 2005-06-16  Jim Meyering  <jim@meyering.net>
62163
62164         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62165         when either N or S is zero.
62166
62167 2005-06-16  Derek Price  <derek@ximbiot.com>
62168
62169         * m4/bison.m4: Declare YACC & YFLAGS precious.
62170
62171 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62172
62173         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62174         multibyte string or pattern, fall back on unibyte matching.
62175         Problem reported by James Youngman.
62176
62177 2005-06-08  Bruno Haible  <bruno@clisp.org>
62178
62179         * modules/csharpcomp: New file.
62180         * MODULES.html.sh (C#): Add csharpcomp.
62181
62182 2005-06-08  Bruno Haible  <bruno@clisp.org>
62183
62184         * m4/csharpcomp.m4: New file, from GNU gettext.
62185
62186 2005-06-08  Bruno Haible  <bruno@clisp.org>
62187
62188         * lib/csharpcomp.h: New file, from GNU gettext.
62189         * lib/csharpcomp.c: New file, from GNU gettext.
62190         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62191
62192 2005-06-08  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62195         warning on mingw.
62196
62197 2005-06-07  Derek Price  <derek@ximbiot.com>
62198
62199         Sync from CVS.
62200         * lib/glob_.h: Indent nested #ifdef.
62201
62202 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         Sync from coreutils.
62205         Use "file name" when talking about file names, instead of "filename"
62206         or "path", as per the GNU coding standards.
62207         * lib/mkdir-p.c: Renamed from makepath.c.
62208         (make_dir_parents): Renamed from make_path.  All callers changed.
62209         * lib/mkdir-p.h: Likewise.  All includers changed.
62210         * lib/filenamecat.c: Renamed from path-concat.c.
62211         (file_name_concat): Renamed from path_concat.  All callers changed.
62212         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62213         * lib/filenamecat.h: Likewise.  All includers changed.
62214         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62215         in comments or local variable names.
62216         * lib/basename.c: Likewise.
62217         * lib/canonicalize.c, canonicalize.h: Likewise.
62218         * lib/dirname.c, dirname.h: Likewise.
62219         * lib/euidaccess.c: Likewise.
62220         * lib/exclude.c: Likewise
62221         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62222         * lib/fsusage.c, fsuage.h: Likewise.
62223         * lib/fts.c, fts_.h: Likewise.
62224         * lib/getcwd.c: Likewise.
62225         * lib/getloadavg.c: Likewise.
62226         * lib/mkstemp.c: Likewise.
62227         * lib/mountlist.c, mountlist.h: Likewise.
62228         * lib/openat.c, openat.h: Likewise.
62229         * lib/readlink-stub.c: Likewise.
62230         * lib/readutmp.c, readutmp.h: Likewise.
62231         * lib/rename.c: Likewise.
62232         * lib/rmdir.c: Likewise.
62233         * lib/same.c: Likewise.
62234         * lib/savedir.c: Likewise.
62235         * lib/stripslash.c: Likewise.
62236         * lib/tempname.c: Likewise.
62237         * lib/xreadlink.c: Likewise.
62238         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62239         All uses changed.
62240         * lib/exclude.h: Likewise.
62241
62242         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62243         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62244         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62245         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62246         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62247         files have been getting away with it for years (MORE/BSD 4.3
62248         is extinct now).
62249         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62250         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62251
62252         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62253         Define to 256, not 255, as per modern POSIX.
62254
62255 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         Sync from coreutils.
62258         Use "file name" when talking about file names, instead of "filename"
62259         or "path", as per the GNU coding standards.
62260         * MODULES.html.sh: mkdir-p renamed from makepath.
62261         filenamecat renamed from path-concat.
62262         * modules/filenamecat: Renamed from modules/path-concat.
62263         (Files): filenamecat.h and filenamecat.c renamed from
62264         path-concat.h and path-concat.c.
62265         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62266         (Include): filenamecat.h, not path-concat.h.
62267         * modules/mkdir-p: Renamed from modules/makepath.
62268         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62269         makepath.c.
62270         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62271         (Include): mkdir-p.h, not makepath.h.
62272
62273 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         Sync from coreutils.
62276         * m4/mkdir-p.m4: Renamed from makepath.m4.
62277         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62278         Rename files from makepath.c to mkdir-p.c, and from
62279         makepath.h to mkdir-p.h.
62280         * m4/filenamecat.m4: Renamed from path-concat.m4.
62281         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62282         Rename files from path-concat.c to filenamecat.c,
62283         and from path-concat.h to filenamecat.h.
62284         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62285         "file name" in local variables or comments.
62286         * m4/rename.m4: Likewise.
62287
62288 2005-06-01  Bruno Haible  <bruno@clisp.org>
62289
62290         * modules/csharpexec: New file.
62291         * MODULES.html.sh (C#): New section.
62292
62293 2005-06-01  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/csharp.m4: New file, from GNU gettext.
62296         * m4/csharpexec.m4: New file, from GNU gettext.
62297
62298 2005-06-01  Bruno Haible  <bruno@clisp.org>
62299
62300         * lib/csharpexec.h: New file, from GNU gettext.
62301         * lib/csharpexec.c: New file, from GNU gettext.
62302         * lib/csharpexec.sh.in: New file, from GNU gettext.
62303
62304 2005-05-31  Derek Price  <derek@ximbiot.com>
62305             Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         Sync from cvs.
62308         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62309
62310 2005-05-31  Derek Price  <derek@ximbiot.com>
62311             Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         Sync from cvs.
62314         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62315
62316 2005-05-29  Derek Price  <derek@ximbiot.com>
62317
62318         * config/srclist.txt (glob_.h, glob.c): Add these files.
62319
62320 2005-05-29  Derek Price  <derek@ximbiot.com>
62321
62322         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
62323         * modules/glob: New file.
62324         * modules/getlogin_r: Add link to POSIX spec in description.
62325
62326 2005-05-29  Derek Price  <derek@ximbiot.com>
62327             Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * m4/glob.m4: New file.
62330
62331 2005-05-29  Derek Price  <derek@ximbiot.com>
62332             Paul Eggert  <eggert@cs.ucla.edu>
62333
62334         * lib/glob_.h, lib/glob.c: New files.
62335
62336 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62339         * modules/fts-lgpl (Depends-on): Remove gettext.
62340
62341 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62344         and don't require gt_INTTYPES_PRI.
62345
62346 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62347
62348         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62349
62350         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62351         the configuration hassle isn't worth it.
62352         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62353         (LONGEST_MODIFIER, PRIuMAX): Remove.
62354
62355 2005-05-27  Bruno Haible  <bruno@clisp.org>
62356
62357         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62358
62359 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62362         _POSIX_PTHREAD_SEMANTICS for Solaris.
62363
62364 2005-05-25  Derek Price  <derek@ximbiot.com>
62365
62366         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62367
62368 2005-05-25  Derek Price  <derek@ximbiot.com>
62369             Paul Eggert  <eggert@cs.ucla.edu>
62370
62371         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62372         * lib/getlogin_r.c, getlogin_r.h: New files.
62373
62374 2005-05-25  Bruno Haible  <bruno@clisp.org>
62375             Derek Price  <derek@ximbiot.com>
62376
62377         * lib/getlogin_r.h: Simplify API documentation.
62378
62379 2005-05-23  Derek Price  <derek@ximbiot.com>
62380
62381         * modules/minmax (Files): Add m4/minmax.m4.
62382         (configure.ac): Add gl_MINMAX.
62383
62384 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62387         so that unistd-safer.h (GPL'ed code) need not be included.
62388
62389 2005-05-22  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/minmax.m4: New file.
62392         Based on a patch by Derek Price <derek@ximbiot.com>.
62393
62394 2005-05-22  Bruno Haible  <bruno@clisp.org>
62395
62396         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62397         (INT64_MIN): Fix definition.
62398         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62399
62400         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62401         NEED_SIGNED_INT_TYPES.
62402
62403         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62404         HAVE_SYSTEM_INTTYPES.
62405
62406 2005-05-22  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62409         Also include <sys/param.h> if it defines MIN, MAX.
62410         Based on a patch by Derek Price <derek@ximbiot.com>.
62411
62412 2005-05-21  Jim Meyering  <jim@meyering.net>
62413
62414         * modules/fts (Files): Add m4/inttypes-pri.m4.
62415         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62416
62417 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         New fts module.
62420         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62421         (setup_dir, free_dir): New functions.
62422         (enter_dir, leave_dir): Define trivial
62423         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62424         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62425         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62426         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62427         Move to fts-cycle.c.
62428         (fts_open): Use setup_dir.
62429         (fts_close): Use free_dir.
62430         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62431         This adds a label and some gotos, but the alternatives were messier.
62432         Check for memory allocation failure when entering a dir.
62433         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62434         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62435         (FTS): New member fts_cycle, that is a union that contains the
62436         old active_dir_ht and cycle_state.  All uses changed to mention
62437         fts_cycle.ht and fts_cycle.state.
62438         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62439         fts.c, with the following changes:
62440         (setup_dir, free_dir): New functions.
62441         (enter_dir): Now returns bool.  Return true if successful, false
62442         if memory exhausted.  All callers changed.
62443         Do not bother partly cleaning up on
62444         memory allocation failure; that is free_dir's job.
62445         However, free ad if hash_insert fails, to avoid memory leak.
62446         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62447         fts->fts_options to see which union member to use.
62448
62449 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62450
62451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62452         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62453
62454 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62457
62458 2005-05-20  Jim Meyering  <jim@meyering.net>
62459
62460         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62461         Now a macro, to pacify GCC.
62462
62463 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62464
62465         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62466         of -1.
62467
62468 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62469
62470         * lib/chown.c (rpl_chown): Return -1 on failure.
62471
62472 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62475         Don't check for stddef.h.
62476         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62477         don't use its results.
62478         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62479         since we include them unconditionally.  Don't require
62480         AM_STDBOOL_H, since stdbool is a prerequisite.
62481         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62482         since we assume C89 or better.
62483         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62484         as we don't use their results.
62485         Don't check for fchdir, memmove, memset, strrchr, as we use
62486         them unconditionally.
62487         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62488         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62489
62490 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62493         Include <stddef.h> unconditionally, since we assume C89 now.
62494         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62495         * lib/fts.c: Include fts_.h first, to check interface.
62496         Do not include intprops.h; no longer needed.
62497         Include cycle-check.h and hash.h, since fts_.h no longer does.
62498         Remove unnecessary casts of closedir to void.
62499         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62500         decide whether to decrement nlinks.
62501         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62502         (FTS): Use struct hash_table * instead of Hash_table, so that
62503         we no longer need to include hash.h here.
62504
62505 2005-05-18  Jim Meyering  <jim@meyering.net>
62506
62507         * modules/dirfd (License): Change to LGPL.  Most of the code
62508         is already in the public domain.
62509
62510 2005-05-18  Jim Meyering  <jim@meyering.net>
62511
62512         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62513         Reported by Yoann Vandoorselaere.
62514
62515 2005-05-17  Jim Meyering  <jim@meyering.net>
62516
62517         * m4/fts.m4: New file, from coreutils.
62518
62519 2005-05-17  Jim Meyering  <jim@meyering.net>
62520
62521         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62522
62523 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         Sync from coreutils.
62526         * m4/unlinkdir.m4: New file.
62527
62528 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         Sync from coreutils.
62531         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62532         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62533         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62534         White space changes only.
62535         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62536         special.
62537         * lib/yesno.c: Include getline.h, not ctype.h.
62538         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62539         Use getline to remove arbitrary restriction on response length.
62540
62541 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62542
62543         * config/srclist-update: Spell out "Street" in FSF postal
62544         mail address; this is the style the FSF seems to prefer.
62545
62546         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62547         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62548         this updates FSF postal mail address.
62549
62550         Sync from coreutils.
62551         * modules/unlinkdir: New file.
62552         * modules/yesno (Depends-on): Add getline.
62553         * MODULES.html.sh (File system functions): Add unlinkdir.
62554
62555 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62558         lib/strsep.h:
62559         Change the initial comment to refer to GPL, not LGPL.
62560         gnulib-tool will change it to LGPL as needed.
62561
62562         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62563         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62564         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62565         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62566         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62567         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62568         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62569         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62570         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62571         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62572         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62573         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62574         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62575         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62576         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62577         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62578         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62579         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62580         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62581         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62582         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62583         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62584         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62585         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62586         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62587         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62588         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62589         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62590         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62591         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62592         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62593         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62594         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62595         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62596         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62597         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62598         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62599         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62600         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62601         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62602         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62603         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62604         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62605         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62606         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62607         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62608         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62609         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62610         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62611         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62612         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62613         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62614         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62615         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62616         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62617         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62618         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62619         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62620         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62621         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62622         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62623         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62624         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62625         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62626         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62627         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62628         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62629         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62630         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62631         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62632         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62633         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62634         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62635         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62636         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62637         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62638         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62639         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62640         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62641         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62642         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62643         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62644         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62645         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62646         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62647         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62648         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62649         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62650         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62651         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62652         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62653         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62654         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62655         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62656         lib/yesno.c, lib/yesno.h:
62657         Update FSF postal mail address.
62658
62659 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62660
62661         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62662         tests/test-memmem.c, tests/test-stpncpy.c:
62663         Update FSF postal mail address.
62664
62665 2005-05-13  Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62668         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62669         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62670         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62671         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62672         Add support for 64-bit integers in the MSVC compiler.
62673
62674 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62675
62676         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62677
62678 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62679
62680         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62681
62682 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * doc/getdate.texi (General date syntax): Don't say that date
62685         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62686         Problem reported by Nic Ferrier.
62687
62688 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62689
62690         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62691         specified in ai_socktype. Fix invalid ai_protocol
62692         check. ai_protocol is usually set to 0 or depending on
62693         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62694         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62695         ai_socktype / ai_protocol in the returned addrinfo structure.
62696
62697 2005-05-10  Simon Josefsson  <jas@extundo.com>
62698
62699         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62700         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62701
62702 2005-05-10  Karl Berry  <karl@gnu.org>
62703
62704         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62705         (from http://www.gnu.org/licenses).
62706         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62707         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62708         fdl.texi suffices.
62709
62710 2005-05-10  Karl Berry  <karl@gnu.org>
62711
62712         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62713         (COPYING.DOC): remove.
62714
62715         * config/srclist-update: new FSF address.
62716
62717 2005-05-10  Derek Price  <derek@ximbiot.com>
62718
62719         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62720         possible.
62721
62722 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62723             Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/inet_ntop: New file.
62726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62727         inet_ntop.
62728
62729 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62730             Bruno Haible  <bruno@clisp.org>
62731
62732         * m4/inet_ntop.m4: New file.
62733
62734 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62735             Bruno Haible  <bruno@clisp.org>
62736
62737         * lib/inet_ntop.h: New file.
62738         * lib/inet_ntop.c: New file, from glibc with modifications.
62739
62740 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62741
62742         * modules/time_r (License): Change to LGPL.
62743         * modules/extensions (License): Change to LGPL.  Actually,
62744         the license is more permissive than that, but currently gnulib-tool
62745         doesn't know how to handle more-permissive licenses.
62746
62747         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62748         Problem reported by Dave Love.
62749
62750 2005-05-08  Jim Meyering  <jim@meyering.net>
62751
62752         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62753         blank.
62754
62755 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62756
62757         * modules/argmatch (Depends-on): Add stdbool.
62758         * modules/backupfile (Depends-on): Likewise.
62759         * modules/chdir-long (Depends-on): Likewise.
62760         * modules/closeout (Depends-on): Likewise.
62761         * modules/cycle-check (Depends-on): Likewise.
62762         * modules/dirname (Depends-on): Likewise.
62763         * modules/fnmatch (Depends-on): Likewise.
62764         * modules/fsusage (Depends-on): Likewise.
62765         * modules/fwriteerror (Depends-on): Likewise.
62766         * modules/getcwd (Depends-on): Likewise.
62767         * modules/getloadavg (Depends-on): Likewise.
62768         * modules/hard-locale (Depends-on): Likewise.
62769         * modules/makepath (Depends-on): Likewise.
62770         * modules/mountlist (Depends-on): Likewise.
62771         * modules/nanosleep (Depends-on): Likewise.
62772         * modules/posixtm (Depends-on): Likewise.
62773         * modules/quotearg (Depends-on): Likewise.
62774         * modules/readtokens (Depends-on): Likewise.
62775         * modules/readtokens0 (Depends-on): Likewise.
62776         * modules/readutmp (Depends-on): Likewise.
62777         * modules/save-cwd (Depends-on): Likewise.
62778         * modules/strftime (Depends-on): Likewise.
62779         * modules/userspec (Depends-on): Likewise.
62780         * modules/utimecmp (Depends-on): Likewise.
62781         * modules/xgetcwd (Depends-on): Likewise.
62782         * modules/xnanosleep (Depends-on): Likewise.
62783         * modules/xstrtod (Depends-on): Likewise.
62784         * modules/yesno (Depends-on): Likewise.
62785
62786 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62787
62788         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62789         needless checks.
62790
62791 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         Merge from coreutils.  Among other things,
62794         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62795         * lib/fd-safer.c: New file.
62796         * lib/fcntl-safer.h, open-safer.c: Remove.
62797         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62798         * lib/dup-safer.c: Include unistd-safer.h first.
62799         Don't include errno.h.
62800         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62801         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62802         * lib/file-type.c: Rely on file-type.h change.
62803         * lib/getloadavg.c: Include unistd-safer.h.
62804         (getloadavg): Use safer open.
62805         * lib/getusershell.c: Include "stdio-safer.h".
62806         (getusershell): Use safer fopen.
62807         * lib/long-options.c (long_options): Use NULL rather than 0.
62808         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62809         'free'.
62810         * lib/modechange.c: Likewise.
62811         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62812         (MODE_DONE): New constant.
62813         (struct mode_change): Remove 'next' member.
62814         (make_node_op_equals): New function; like the old one of the
62815         same name, except it allocates an array.
62816         (mode_compile, mode_create_from_ref): Use it.
62817         (mode_compile): Allocate result as an array, not a linked list.
62818         Parse octal string ourself, so that we catch mistakes like "+0".
62819         (mode_adjust): Arg is an array, not a linked list.
62820         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62821         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62822         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62823         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62824         Remove.  This is now stat-macros.h's job.
62825         (talloc): Remove.  All callers replaced by xalloc, so that
62826         our invokers don't have to worry about reporting memory failures.
62827         (make_node_op_equals): Remove.
62828         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62829         New constants.
62830         (struct mode_change): Moved here from modechange.h.
62831         (mode_append_entry): Remove.
62832         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62833         apps to have incorrect behavior.  Use simpler algorithm for head
62834         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62835         Detect more invalid usages rather than having somewhat-random behavior.
62836         Don't insert an "a=" action, as that leads to incorrect behavior.
62837         (mode_compile, mode_create_from_ref): Return NULL on error instead
62838         of an enum, since now there's only one way to have an error.  All
62839         callers changed.
62840         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62841         at the correct time.  Simplify calculation of "+u" and its ilk.
62842         Don't mishandle "+X".
62843         (mode_free): Remove "register" and localize decls.
62844         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62845         (struct mode_change): Move to modechange.c; callers don't
62846         need to see this stuff.
62847         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62848         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62849         (mode_change, mode_adjust): Reflect the new signatures noted above.
62850         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62851         that might redefine system include files.
62852         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62853         (my_usleep): Use NULL rather than (void *) 0.
62854         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62855         Use siginterrupt to specify that system calls should be interrupted.
62856         (rpl_nanosleep): Move initialization of suspended closer to call of
62857         my_usleep.
62858         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62859         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62860         (desirable_utmp_entry): New function.
62861         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62862         using x2nrealloc, to simplify logic.
62863         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62864         size calculation.  Do not assume utmp file is a regular file.
62865         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62866         (READ_UTMP_CHECK_PIDS): New constant.
62867         * lib/save-cwd.c: Include unistd-safer.h.
62868         (save_cwd): Use fd_safer.
62869         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62870         [!_LIBC] Include "stat-macros.h" instead.
62871         * lib/unistd-safer.h (fd_safer): New decl.
62872
62873 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         * modules/getloadavg (Depends-on): Add unistd-safer.
62876         * modules/getusershell (Depends-on): Add stdio-safer.
62877         * modules/lstat (Depends-on): Remove xalloc.
62878         * modules/mkstemp (Depends-on): Add stat-macros.
62879         * modules/modechange (Depends-on): Remove xstrtol.
62880         Add stat-macros, xalloc.
62881         * modules/save-cwd (Depends-on): Add unistd-safer.
62882         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62883         * modules/unistd-safer (Files): Add lib/fd-safer.c
62884         (Makefile.am): Remove lib_SOURCES.
62885
62886         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62887         Remove fcntl-safer; unistd-safer supersedes it.
62888
62889 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62890
62891         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62892         AC_HEADER_STAT.
62893         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62894         (gl_PREREQ_CHOWN): Remove.
62895         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62896         it.  Don't require AC_HEADER_STAT.
62897         (gl_PREREQ_LSTAT): Remove.
62898         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62899         Don't require AC_HEADER_STAT.
62900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62901         (gl_PREREQ_RMDIR): Remove.
62902         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62903         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62904         the stat-macros module a prerequisite.
62905         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62906         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62907         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62908         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62909         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62910         variable names.
62911         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62912         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62913         variable prefixes.
62914         * m4/fcntl-safer.m4: Remove.
62915         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62916         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62917         Invoke gl_PREREQ_FD_SAFER.
62918         (gl_PREREQ_FD_SAFER): New macro.
62919         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62920         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62921         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62922         Remove duplicate call to AC_LIBOBJ(readutmp).
62923         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62924
62925         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62926         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62927
62928 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         * MODULES.html.sh (Misc): Add byteswap.
62931
62932 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62933
62934         * modules/getcwd (Depends-on): Add extensions.
62935         * modules/openat (Depends-on): Likewise.
62936
62937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62938
62939         * modules/byteswap: New file.
62940
62941 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62942
62943         * m4/byteswap.m4: New file.
62944
62945 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62946
62947         * lib/byteswap_.h: New file.
62948
62949 2005-04-25  Karl Berry  <karl@gnu.org>
62950
62951         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62952
62953 2005-04-25  Albert Chin  <china@thewrittenword.com>
62954
62955         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62956         Toolkit C bug.
62957
62958 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62959
62960         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62961         (func_ln_if_changed) Remove forcibly for no error message
62962         in case file does not exist.
62963
62964 2005-04-19  Simon Josefsson  <jas@extundo.com>
62965
62966         * gnulib-tool (Options): Make --symlink mean --symbolic.
62967
62968 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62969
62970         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62971
62972 2005-04-16  Simon Josefsson  <jas@extundo.com>
62973
62974         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62975
62976 2005-04-15  Simon Josefsson  <jas@extundo.com>
62977
62978         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62979
62980 2005-04-15  Simon Josefsson  <jas@extundo.com>
62981
62982         * gnulib-tool: Rename --symlink to --symbolic.
62983
62984 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62985
62986         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62987         symbolic links to files instead of copying/moving.  Add --aux-dir,
62988         specifying directory relative --dir where auxiliary build tools
62989         are placed.
62990
62991 2005-04-14  Bruno Haible  <bruno@clisp.org>
62992
62993         * modules/allocsa (License): Change to LGPL.
62994         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62995
62996 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62999         that "UTC +1 second" continues to work.  Problem reported
63000         by Dmitry V. Levin.
63001         (relunit_snumber): New rule.
63002         (relunit): Use it.
63003
63004 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/getdate.y (universal_time_zone_table): New constant.
63007         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63008         universal_time_zone_table.
63009         (lookup_zone): Prefer universal_time_zone_table to
63010         local_time_zone_table, so that "GMT" time stamps are allowed in
63011         London during the summer.  Problem reported by Ian Abbott.
63012
63013 2005-04-12  Jim Meyering  <jim@meyering.net>
63014
63015         * lib/human.c (humblock): Set *options even when returning due to
63016         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63017         warning from gcc-4.
63018
63019 2005-04-09  Jim Meyering  <jim@meyering.net>
63020
63021         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63022         -Wuninitialized: initialize tm0.tm_year.
63023
63024 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63027         count, since there's no maximum.  All uses changed.
63028         Add member dsts_seen.
63029         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63030         not being INT_MAX.
63031         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63032         Use pc_rels_seen to decide whther a date is absolute.
63033
63034         * lib/getdate.y (number): Don't overwrite year.
63035         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63036         check.
63037
63038 2005-04-02  Simon Josefsson  <jas@extundo.com>
63039
63040         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63041         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63042
63043 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63044
63045         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63046         where no absolute path name can be longer than PATH_MAX.
63047
63048 2005-03-27  Jim Meyering  <jim@meyering.net>
63049
63050         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63051
63052 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63055         "one's complement" -> "ones' complement" in comment, as per Knuth.
63056         "value of type" -> "type or expression" in comment.
63057         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63058
63059 2005-03-26  Jim Meyering  <jim@meyering.net>
63060
63061         Comment nits.
63062         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63063         Correct typos: s/or/of/.
63064
63065 2005-03-26  Jim Meyering  <jim@meyering.net>
63066
63067         * modules/check-include-files: Move to ../ and rename to...
63068         * check-module: ...this.
63069
63070 2005-03-25  Jim Meyering  <jim@meyering.net>
63071
63072         * modules/xvasprintf (Files): Add xalloc.h.
63073
63074 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * modules/gettext (Files): config/config.rpath ->
63077         build-aux/config.rpath
63078         * modules/iconv (Files): Likewise.
63079         Problem reported by Oskar Liljeblad.
63080
63081 2005-03-23  Jim Meyering  <jim@meyering.net>
63082
63083         * modules/check-include-files: New script to check for
63084         missing dependencies, multiple includes, etc.
63085
63086         * modules/c-strtold (Depends-on): Add xalloc.
63087         * modules/c-strtod (Depends-on): Add xalloc.
63088         * modules/hash (Depends-on): Add xalloc.
63089         (Files): Remove lib/xalloc.h.
63090
63091         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63092         * modules/userspec (Files): Add lib/inttostr.h.
63093
63094 2005-03-23  Jim Meyering  <jim@meyering.net>
63095
63096         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63097
63098 2005-03-22  Jim Meyering  <jim@meyering.net>
63099
63100         * modules/stat-macros: New module.
63101         * modules/canonicalize, modules/euidaccess, modules/file-type,
63102         * modules/filemode, modules/lchown, modules/makepath,
63103         * modules/rmdir, modules/stat: Depend on new stat-macros module
63104         rather than listing lib/stat-macros.h manually.
63105         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63106
63107 2005-03-22  Jim Meyering  <jim@meyering.net>
63108
63109         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63110
63111 2005-03-22  Bruno Haible  <bruno@clisp.org>
63112
63113         * config/srclist.txt: Replace target directory 'config' with
63114         'build-aux'.
63115         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63116         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63117         ../build-aux/.
63118
63119 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63120
63121         * modules/chdir-long (Depends-on): Add mempcpy.
63122
63123         * modules/acl, modules/backupfile, modules/c-strtod,
63124         modules/c-strtold, modules/canon-host, modules/canonicalize,
63125         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63126         modules/exclude, modules/exitfail, modules/file-type,
63127         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63128         modules/getdate, modules/getline, modules/getpagesize,
63129         modules/getpass, modules/getugroups, modules/group-member,
63130         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63131         modules/inttostr, modules/long-options, modules/makepath,
63132         modules/md5, modules/memcasecmp, modules/memcoll,
63133         modules/modechange, modules/mountlist, modules/path-concat,
63134         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63135         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63136         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63137         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63138         modules/strftime, modules/strndup, modules/strverscmp,
63139         modules/timespec, modules/unlocked-io, modules/userspec,
63140         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63141         modules/yesno:
63142         Remove lib_SOURCES line from Makefile.am section, as this is now
63143         done automatically by the corresponding Autoconf macro.
63144
63145 2005-03-21  Jim Meyering  <jim@meyering.net>
63146
63147         Changes imported from coreutils.
63148
63149         * lib/cycle-check.c: Don't include xalloc.h.
63150
63151         * lib/path-concat.c: Don't include assert.h.
63152         (path_concat): Remove assertion that would have triggered
63153         for ABASE starting with more than one slash.
63154         Reported by Andreas Schwab.
63155
63156         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63157         properly when ABASE is an absolute file name.
63158         Correct the description of this function.
63159         Include <assert.h>.
63160         Add an assertion and a test driver.
63161         This fixes a bug introduced on 2004-07-02.
63162         Andreas Schwab reported the resulting failure of cp --parents:
63163         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63164
63165 2005-03-21  Jim Meyering  <jim@meyering.net>
63166
63167         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63168         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63169
63170 2005-03-21  Jim Meyering  <jim@meyering.net>
63171         and  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63174         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63175         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63176         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63177         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63178         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63179         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63180         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63181         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63182         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63183         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63184         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63185         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63186         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63187         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63188         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63189         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63190         for these modules.
63191
63192 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63195         (which shouldn't happen), generate nothing instead of returning 0
63196         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63197
63198 2005-03-16  Bruno Haible  <bruno@clisp.org>
63199
63200         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63201         HAVE_LONGLONG_64BIT.
63202
63203 2005-03-16  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63206         HAVE_LONGLONG_64BIT.
63207
63208 2005-03-16  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63211         HAVE_LONGLONG_64BIT.
63212
63213 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63216         reliably distinguish strftime failure from empty output on POSIX
63217         hosts.
63218
63219 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63222         (iconv_string): Don't guess a size-zero buffer, as that might cause
63223         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63224         result would be 'too large', where 'too large' is (heuristically)
63225         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63226         overflow concerns.  This will prevent some unwanted malloc failures
63227         when the inputs are very large.
63228
63229 2005-03-15  Karl Berry  <karl@gnu.org>
63230
63231         * config/srclist.txt (config.rpath): from gettext.
63232         * config/config.rpath: update.
63233
63234 2005-03-15  Bruno Haible  <bruno@clisp.org>
63235
63236         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63237         to 'negate'.
63238
63239         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63240         variable.
63241
63242         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63243         results.
63244
63245 2005-03-14  Simon Josefsson  <jas@extundo.com>
63246
63247         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63248         <fx@gnu.org>.
63249
63250 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63253         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63254         intprops.h.
63255         * lib/strtol.c: Likewise.
63256
63257 2005-03-14  Jim Meyering  <jim@meyering.net>
63258
63259         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63260         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63261         to be nonzero so that we (and caller) can detect the difference
63262         between a valid zero-length expansion and an error return, even
63263         when the underlying strftime fails before writing anything into
63264         that location.
63265
63266 2005-03-14  Bruno Haible  <bruno@clisp.org>
63267
63268         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63269         Update from GNU gettext 0.14.3.
63270
63271 2005-03-10  Jim Meyering  <jim@meyering.net>
63272
63273         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63274
63275 2005-03-10  Jim Meyering  <jim@meyering.net>
63276
63277         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63278         so that this module works on systems without fchdir.
63279
63280 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         Factor int-properties macros into a single file, except for
63283         glibc-related files.
63284         * lib/intprops.h: New file.
63285         * lib/getloadavg.c: Include it instead of limits.h.
63286         (INT_STRLEN_BOUND): Remove.
63287         * lib/human.c: Include intprops.h.
63288         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63289         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63290         302/1000.
63291         * lib/inttostr.h: Include intprops.h instead of limits.h.
63292         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
63293         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
63294         for consistency with intprops.h.
63295         (time_t_is_integer, twos_complement_arithmetic): Use them.
63296         * lib/sig2str.h: Include <signal.h>, intprops.h.
63297         (INT_STRLEN_BOUND): Remove.
63298         * lib/strftime.c (TYPE_SIGNED): Remove.
63299         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
63300         * lib/strtol.c: Adjust comments to match intprops.h.
63301         * lib/userspec.c: Include intprops.h.
63302         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
63303         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
63304         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
63305         instead of rolling our own expressions.
63306         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
63307
63308         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
63309         instead of int.
63310         (my_strftime): Do not mishandle years close to INT_MAX, by doing
63311         the right thing even if adding 1900 would overflow.  Similarly
63312         for tm_mon + 1 and tm_yday + 1.
63313         Make %Y always equivalent to %C%y, and similarly for %G and %g.
63314         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
63315         (DO_SIGNED_NUMBER): New macro.
63316         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
63317
63318 2005-03-07  Bruno Haible  <bruno@clisp.org>
63319
63320         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
63321
63322 2005-03-07  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
63325
63326 2005-03-04  Derek R. Price  <derek@ximbiot.com>
63327
63328         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
63329         (func_import): Only replace files via --import when they have actually
63330         changed.
63331
63332 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63333
63334         * m4/mmap-anon.m4: New file.
63335         * m4/pagealign_alloc.m4: New file.
63336
63337 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63338             Bruno Haible  <bruno@clisp.org>
63339
63340         * modules/pagealign_alloc: New file.
63341         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63342
63343 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63344             Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/pagealign_alloc.h: New file.
63347         * lib/pagealign_alloc.c: New file.
63348
63349 2005-03-03  Bruno Haible  <bruno@clisp.org>
63350
63351         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63352         Use an all-permissive copyright notice, recommended by RMS.
63353
63354 2005-03-02  Bruno Haible  <bruno@clisp.org>
63355
63356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63357         of AIX, the replacement has to be done only after <string.h> is
63358         included, therefore not in config.h. stpncpy.h does the replacement,
63359         and stpncpy.c uses it.
63360
63361 2005-03-02  Bruno Haible  <bruno@clisp.org>
63362
63363         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63364         stpncpy.c uses it.
63365
63366 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63369         The workaround isn't strictly needed for POSIX conformance, and
63370         it's too much of a pain to configure and maintain.  We'll ask
63371         people to fix their kernels instead.
63372         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63373         (NANOSLEEP_BUG_WORKAROUND): Remove.
63374         (xnanosleep): Remove the workaround.
63375
63376 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63379         Reported by Derek Price.
63380         (Include): Add "timespec.h".
63381
63382         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63383
63384 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63387         to detect nanosleep bug.
63388
63389 2005-03-01  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63392
63393 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * modules/gethrxtime: New file.
63396         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63397         (Depends-on): Add gethrxtime.
63398         (configure.ac): Add gl_XNANOSLEEP.
63399         (Makefile.am): Remove lib_SOURCES line.
63400
63401 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63404         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63405
63406 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63409         * lib/timespec.h (gettime): Return void, since it always
63410         succeeds now.  All uses changed.
63411         * lib/gettime.c (gettime) Likewise.
63412         [HAVE_NANOTIME]: Prefer nanotime.
63413         Assume gettimeofday succeeds, as POSIX requires.
63414         Assime time () succeeds, since other code already does.
63415         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63416         (timespec_subtract): Remove.
63417         (NANOSLEEP_BUG_WORKAROUND): New constant.
63418         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63419         things considerably.  Use it only on GNU/Linux hosts, since the
63420         workaround shouldn't be needed elsewhere.
63421
63422 2005-02-24  Bruno Haible  <bruno@clisp.org>
63423
63424         * modules/gettext (Files): Add m4/glibc2.m4.
63425
63426 2005-02-24  Bruno Haible  <bruno@clisp.org>
63427
63428         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63429         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63430         * m4/progtest.m4:
63431         Update from GNU gettext 0.14.2.
63432         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63433
63434 2005-02-24  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63437         * lib/config.charset: Update from GNU gettext 0.14.2.
63438
63439 2005-02-24  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/gettext.h: Update from GNU gettext 0.14.2.
63442
63443 2005-02-23  Simon Josefsson  <jas@extundo.com>
63444
63445         * m4/iconvme.m4: New file.
63446
63447 2005-02-23  Jim Meyering  <jim@meyering.net>
63448
63449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63450         change.
63451         Thanks to Bruno Haible for catching it.
63452
63453 2005-02-22  Simon Josefsson  <jas@extundo.com>
63454
63455         * modules/iconvme: New file.
63456
63457         * MODULES.html.sh: Add iconvme.
63458
63459 2005-02-22  Simon Josefsson  <jas@extundo.com>
63460
63461         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63462
63463 2005-02-22  Simon Josefsson  <jas@extundo.com>
63464
63465         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63466
63467 2005-02-22  Jim Meyering  <jim@meyering.net>
63468
63469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63470         s/ifndef/ifdef/.
63471
63472 2005-02-20  Neil Conway  <neilc@samurai.com>
63473
63474         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63475         returned by OSX/Darwin if the specified buffer is not large
63476         enough for the hostname.
63477
63478 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63479
63480         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63481         pass it to _help, otherwise the latter coredumps trying to
63482         dereference state.root_argp.
63483
63484 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         * modules/chdir-long (Depends-on): Add memrchr.
63487         * modules/memrchr (Files): Add lib/memrchr.h.
63488         (Include): "memrchr.h".
63489
63490 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63493
63494 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * lib/memrchr.h: New file.
63497         * lib/chdir-long.c: Include it.
63498         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63499         Don't bother including stddef.h.
63500
63501 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63504         inclusion.
63505         Include <sys/types.h>, for dev_t.
63506         (ME_DUMMY, ME_REMOTE): Move from here....
63507         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63508         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63509         Dmitry V. Levin.
63510         Include mountlist.h first, to test the interface.
63511
63512 2005-01-29  Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/progname.c (program_name): Initialize.
63515         Needed when linking statically on MacOS X.
63516
63517 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         Sync from coreutils.
63520         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63521         (Depends-on): Add c-strtod.
63522         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63523
63524 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         Sync from coreutils.
63527         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63528
63529         Remove files that are specific to coreutils.
63530         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63531
63532 2005-01-28  Bruno Haible  <bruno@clisp.org>
63533
63534         * modules/javacomp: New file.
63535         * MODULES.html.sh (Java): Add javacomp.
63536
63537 2005-01-28  Bruno Haible  <bruno@clisp.org>
63538
63539         * m4/javacomp.m4: New file, from GNU gettext.
63540
63541 2005-01-28  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/javacomp.sh.in: New file, from GNU gettext.
63544         * lib/javacomp.h: New file, from GNU gettext.
63545         * lib/javacomp.c: New file, from GNU gettext.
63546
63547 2005-01-26  Simon Josefsson  <jas@extundo.com>
63548
63549         * lib/gai_strerror.c: Use GPL in header.
63550
63551 2005-01-26  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/javaexec: New file.
63554         * MODULES.html.sh (Java): Add javaexec.
63555
63556 2005-01-26  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/javaexec.m4: New file, from GNU gettext.
63559
63560 2005-01-26  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/javaexec.sh.in: New file, from GNU gettext.
63563         * lib/javaexec.h: New file, from GNU gettext.
63564         * lib/javaexec.c: New file, from GNU gettext.
63565
63566 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63567
63568         * modules/lchown (Depends-on): Remove lchown.h
63569
63570 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63571
63572         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63573         must be defined if the header file was not found, in order
63574         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63575
63576 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63577
63578         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63579         initializers for struct pentry_state.
63580         (__argp_error): Check return value of __asprintf
63581         (__argp_failure): Translate error message
63582
63583         * lib/argp-parse.c: Removed braces around the expansion of N_()
63584
63585 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63588         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63589         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63590         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63591         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63592         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63593         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63594         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63595         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63596         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63597         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63598         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63599         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63600         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63601         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63602         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63603         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63604         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63605         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63606         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63607         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63608         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63609         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63610         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63611         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63612         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63613         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63614         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63615         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63616         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63617         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63618         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63619         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63620         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63621         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63622         Use an all-permissive copyright notice, recommended by RMS.
63623
63624 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * modules/chdir-long (Depends-on): Remove mempcpy.
63627
63628 2005-01-21  Jim Meyering  <jim@meyering.net>
63629
63630         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63631         same value as for Solaris 9.
63632
63633         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63634         component length.  This included changing the parameter to be
63635         of type `char *' rather than `char const *'.
63636         * lib/chdir-long.h (chdir_long): Update prototype.
63637
63638         * lib/openat.c (fdopendir, fstatat): New functions.
63639         * lib/openat.h: Include headers required for use of DIR and struct
63640         stat.
63641         [AT_SYMLINK_NOFOLLOW]: Define.
63642         (fdopendir, fstatat): Add prototypes.
63643
63644 2005-01-21  Bruno Haible  <bruno@clisp.org>
63645
63646         * modules/classpath: New file.
63647         * MODULES.html.sh (Java): Add classpath.
63648
63649 2005-01-21  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/classpath.h: New file, from GNU gettext.
63652         * lib/classpath.c: New file, from GNU gettext.
63653
63654 2005-01-20  Simon Josefsson  <jas@extundo.com>
63655
63656         * modules/version-etc-fsf: New file.
63657
63658 2005-01-20  Simon Josefsson  <jas@extundo.com>
63659
63660         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63661         * lib/version-etc.c: Remove version_etc_copyright.
63662         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63663         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63664
63665 2005-01-20  Simon Josefsson  <jas@extundo.com>
63666
63667         * lib/base64.h (isbase64): Add.
63668
63669         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63670         using a unsigned prototype, don't inline.
63671         (base64_decode): Use it.
63672
63673 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63676         it.
63677
63678 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         * lib/save-cwd.c (save_cwd): Remove code to support the case
63681         where fchdir is missing or flaky.
63682
63683 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63686
63687 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63690         AC_LIBSOURCES now does this.
63691         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63692         with new ullong_max module.
63693
63694 2005-01-19  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/sh-quote: New file.
63697         * MODULES.html.sh (Executing programs): Add sh-quote.
63698
63699 2005-01-19  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/sh-quote.h: New file, from GNU gettext.
63702         * lib/sh-quote.c: New file, from GNU gettext.
63703
63704 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63705
63706         Merge from coreutils.
63707         * m4/ullong_max.m4: New file.
63708         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63709         (gl_MACROS): Assume localeconv exists.
63710
63711 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         Merge changes from coreutils, as described below in several
63714         changelogs dated today.
63715
63716         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63717         (O_DIRECTORY): Remove; not needed here, since "." must be
63718         a directory.  All uses removed.
63719         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63720         universal on Suns, and we also need to test for IRIX.
63721         Revamp code to use 'if' rather than '#if'.
63722         Avoid unnecessary comparison of cwd->desc to 0.
63723
63724         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63725         for known valid error numbers rather than observed invalid ones.
63726
63727 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         * modules/ullong_max: New file.
63730
63731         * modules/chdir-long, modules/openat: New files.
63732         * modules/save-cwd (Depends-on): Depend on chdir-long.
63733         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63734
63735 2005-01-18  Jim Meyering  <jim@meyering.net>
63736
63737         Merge from coreutils.
63738         * m4/chdir-long.m4, m4/openat.m4: New files.
63739         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63740         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63741         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63742         is sane and DOES follow symlinks.  Besides, testing 20 different
63743         systems found no broken chown implementations.
63744         Prompted by a change in rsync's copy of this macro.
63745         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63746
63747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63748
63749         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63750         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63751         NULL-means-set-to-current-time semantics.
63752         Remove temporary file immediately, rather than waiting
63753         for configure's at-exit trap code to do it.
63754
63755 2005-01-18  Jim Meyering  <jim@meyering.net>
63756
63757         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63758
63759         * lib/utimens.c (futimens): Account for the fact that futimes
63760         can also fail with errno == ENOSYS or errno == ENOENT.
63761         Patch from Dmitry V. Levin.
63762
63763         Change the name of the robust chdir function from chdir to chdir_long.
63764         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63765         (restore_cwd): Use chdir_long, not chdir.
63766         * lib/chdir-long.c: Renamed from chdir.c.
63767         * lib/chdir-long.h: Renamed from chdir.h.
63768         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63769         Hurd.
63770
63771 2005-01-18  Bruno Haible  <bruno@clisp.org>
63772
63773         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63774         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63775         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63776         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63777         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63778         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63779         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63780         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63781         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63782         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63783         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63784         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63785         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63786         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63787         Use an all-permissive copyright notice, recommended by RMS.
63788
63789 2005-01-18  Bob Proulx  <bob@proulx.com>
63790
63791         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63792         simplify offsetof() macro construct to avoid compile failure with
63793         native HP-UX 11.0 ANSI C compiler.
63794
63795 2005-01-17  Bruno Haible  <bruno@clisp.org>
63796
63797         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63798         redundant because stpncpy.m4 takes care of it.
63799
63800 2005-01-17  Bruno Haible  <bruno@clisp.org>
63801
63802         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63803
63804 2005-01-17  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63807         used.
63808
63809 2005-01-17  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/fwriteerror.h (fwriteerror): Change specification to include
63812         fclose.
63813         * lib/fwriteerror.c: Include <stdbool.h>.
63814         (fwriteerror): At the end, close the file stream. Record whether
63815         stdout was already closed.
63816
63817 2005-01-17  Bruno Haible  <bruno@clisp.org>
63818
63819         * lib/execute.c (environ): Declare if needed.
63820         * lib/pipe.c (environ): Likewise.
63821         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63822
63823 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63824
63825         * modules/argp: Depend on vsnprintf
63826
63827 2005-01-10  Jim Meyering  <jim@meyering.net>
63828
63829         * modules/closeout (Depends-on): Add atexit.
63830
63831 2005-01-06  Bruno Haible  <bruno@clisp.org>
63832
63833         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63834
63835 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63838         definitions to be after all include files, to avoid collisions.
63839         Problem reported by Bob Proulx.
63840
63841 2005-01-04  Jim Meyering  <jim@meyering.net>
63842
63843         Changes imported from coreutils.
63844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63845         as the mkstemp template, use a temporary directory and an
63846         8.3-friendly template to avoid trouble on systems like DJGPP.
63847         Reported by Juan M. Guerrero via Stepan Kasal.
63848         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63849         close. Remove the temporary directory right away, rather than waiting
63850         for configure's at-exit trap code to do it.
63851         Suggestion from Stepan Kasal.
63852
63853 2005-01-01  Simon Josefsson  <jas@extundo.com>
63854
63855         * gnulib-tool: Print #include directives when --import'ing.
63856
63857 2004-12-28  Simon Josefsson  <jas@extundo.com>
63858
63859         * tests/test-base64.c: Include required header files.  Remove
63860         unused variables.
63861
63862 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * modules/error (Depends-on): Remove gettext.
63865
63866 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63869         not needed.  This removes a dependency on the gettext module.
63870         [defined _LIBC]: Do not include <libintl.h>; not needed.
63871
63872 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63875         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63876
63877 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63880         HAVE_DECL_STRTOLD.
63881
63882 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         * modules/getdate (Depends-on): Remove alloca-opt.
63885
63886 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63889
63890 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63891
63892         * lib/argp-parse.c: Include <stddef.h>.
63893         (alignof, alignto): New macros.
63894         (parser_init): Don't assume that void * is aligned sufficiently
63895         for struct option.
63896
63897         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63898         need to extend the stack.
63899         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63900         large.
63901
63902 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63903
63904         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63905
63906 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63907
63908         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63909         (2004-10-24) change.  Apparently this was a false alarm.
63910
63911         * modules/getdate: Depend on alloca-opt, not alloca.
63912
63913 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63914
63915         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63916         Remove now-obsolete comment about AIX.
63917         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63918         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63919         (YYMAXDEPTH): New macro.
63920
63921 2004-12-18  Simon Josefsson  <jas@extundo.com>
63922
63923         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63924
63925 2004-12-18  Bruno Haible  <bruno@clisp.org>
63926
63927         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63928
63929 2004-12-18  Bruno Haible  <bruno@clisp.org>
63930
63931         * lib/fatal-signal.c (fatal_signals): Make non-const.
63932         (init_fatal_signals): New function.
63933         (uninstall_handlers, install_handlers): Ignore signals that were set to
63934         SIG_IGN.
63935         (at_fatal_signal): Call init_fatal_signals.
63936         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63937         SIG_IGN.
63938         Reported by Paul Eggert.
63939
63940 2004-12-18  Bruno Haible  <bruno@clisp.org>
63941
63942         * doc/alloca.texi: New file.
63943         * doc/alloca-opt.texi: New file.
63944
63945 2004-12-17  Jim Meyering  <jim@meyering.net>
63946
63947         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63948         Otherwise, install-sh could exit with improper exit status when
63949         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63950
63951 2004-12-16  Simon Josefsson  <jas@extundo.com>
63952
63953         * tests/test-base64.c: Add license.
63954
63955 2004-12-15  Stepan Kasal  <address@hidden>
63956
63957         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63958
63959 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * modules/getcwd (Files): Add m4/d-ino.m4.
63962         Suggested by Mark D. Baushke.
63963
63964 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * lib/getdate.y (textint): New member "negative".
63967         (time_zone_hhmm): New function.
63968         Expect 14 shift-reduce conflicts, not 13.
63969         (o_colon_minutes): New rule.
63970         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63971         (yylex): Set the "negative" member of signed numbers.
63972
63973 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * doc/getdate.texi (Time of day items, Time zone items):
63976         Describe new formats +00:00, UTC+00:00.
63977
63978 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63981         spurious "-l"s.  Problem reported by Stepan Kasal.
63982
63983 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63986         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63987
63988 2004-12-04  Simon Josefsson  <jas@extundo.com>
63989
63990         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63991         Vandoorselaere <yoann@prelude-ids.org>.
63992
63993 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         Changes imported from coreutils.
63996         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63997         exist.
63998         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63999
64000 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64001
64002         Changes imported from coreutils.
64003         * lib/hard-locale.c: Assume <locale.h> exists.
64004         Include "strdup.h".
64005         (GLIBC_VERSION): New macro.
64006         (hard_locale): Assume setlocale exists.
64007         Rewrite to avoid #ifdef.
64008         Use strdup rather than malloc + strcpy.
64009         * lib/human.c: Assume <locale.h> exists.
64010         (human_readable): Assume localeconv exists.
64011
64012 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * modules/hard-locale (Depends-on): Add strdup.
64015
64016 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64017
64018         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64019         convert T2, not T.  (Imported from libc.)
64020
64021 2004-11-30  Simon Josefsson  <jas@extundo.com>
64022
64023         * modules/restrict (License): Change to LGPL.
64024
64025 2004-11-30  Simon Josefsson  <jas@extundo.com>
64026
64027         * m4/restrict.m4: Add copyright and copying conditions.
64028
64029 2004-11-30  Simon Josefsson  <jas@extundo.com>
64030
64031         * m4/base64.m4: New file.
64032
64033 2004-11-30  Simon Josefsson  <jas@extundo.com>
64034
64035         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64036         base64.
64037
64038         * tests/test-base64.c: New file.
64039
64040         * modules/base64: New file.
64041
64042 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64045         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64046
64047         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64048
64049 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64052         (__getcwd.c): Don't restore errno; glibc doesn't.
64053         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64054         first, falling back to our code only if its results look suspicious.
64055         Ensure that the resulting buffer is only as large as necessary.
64056
64057         * lib/readutmp.c: Include readutmp.h first.
64058         Include <errno.h>, since readutmp.h no longer does that.
64059         * lib/readutmp.h: Don't include <errno.h>,
64060         <sys/param.h>, <time.h>; not needed to establish interface.
64061         (errno): Remove decl.
64062         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64063         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64064         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64065
64066 2004-11-28  Simon Josefsson  <jas@extundo.com>
64067
64068         * lib/base64.h, base64.c: New file.
64069
64070 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64073
64074 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64077         (Depends-on): Remove pathmax, same.  Add mempcpy.
64078         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64079         (Makefile.am): Append getcwd.h to lib_SOURCES.
64080         (Include): Add getcwd.h.
64081         (Maintainer): Change from Jim Meyering to "all, glibc",
64082         since getdate now uses intended-for-glibc code.
64083         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64084         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64085
64086 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64089         HP's ANSI C compiler.
64090         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64091         Declaring int functions causes warnings on some modern systems and
64092         shouldn't be needed to compile on ancient ones.
64093         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64094         defined.
64095
64096         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64097         with the following changes.
64098         (__set_errno): Parenthesize properly.
64099         Include <stdbool.h>.
64100         (MIN, MAX, MATCHING_INO): New macros.
64101         (__getcwd): Define with prototype, not K&R form.
64102         Use heuristics to allocate default buffer on stack if possible.
64103         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64104         behavior, and to avoid the PATH_MAX limit when computing
64105         ../../../../...
64106         Use MATCHING_INO to compare inode number to file.
64107         Check for arithmetic overflow in size calculations.
64108         Fix bug in reallocation of dot array that caused getcwd to fail
64109         on directories nested deeper than 75.
64110         Be more careful about saving errno on error.
64111         Do not use realloc; use only free+malloc, as this is a bit
64112         more flexible and avoids a needless copy operation.
64113         Do not inspect st_dev and st_ino for symbolic links; POSIX
64114         doesn't specify the latter.
64115         Check for closedir errors.
64116         Avoid needless casts.
64117         Use "#ifdef weak_alias" around weak_alias, to be like other
64118         glibc code.
64119         The following changes to getcwd.c have effect only when used in
64120         gnulib; they have no effect inside glibc proper.
64121         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64122         as alloca isn't used.
64123         (alloca, __alloca): Likewise.
64124         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64125         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64126         unconditionally, as gnulib assumes C89 or better.
64127         Do not include <sys/param.h>.
64128         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64129         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64130         better.
64131         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64132         Include <dirent.h> in a way that is compatible with modern Autoconf.
64133         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64134         New macros, if not already defined.
64135         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64136         Use "_LIBC", not "defined _LIBC", for consistency.
64137         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64138         a mempcpy module.
64139         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64140         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64141         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64142         credit only to Jim Meyering and adjust the copyright dates.
64143         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64144         <stdlib.h>, <unistd.h>, "pathmax.h".
64145         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64146         (INITIAL_BUFFER_SIZE): Remove.
64147         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64148
64149 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64150
64151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64152         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64153         Use the _ONCE methods, for efficiency.
64154         Check for fcntl.h.  In test program, include <errno.h>
64155         and <fcntl.h> if available.  Remove old K&R cruft from
64156         test program.  Check for common errors in GNU/Linux,
64157         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64158         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64159         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64160         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64161         name accordingly.
64162         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64163         accommodate new getcwd.c.
64164         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64165         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64166         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64167         that's all we need now.
64168
64169 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64170
64171         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64172         argp-parse.c depends on getopt internals, that means we should
64173         always use our getopt, to be on the safe side.
64174         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64175         order not to spoil the result of an eventual previous invocation
64176         of gl_GETOPT_SUBSTITUTE.
64177
64178 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64179
64180         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64181         redefinition warnings. To avoid them, include the defines
64182         in `#if !defined __need_getopt ... #endif'. The only place
64183         where __getopt_argv_const is used is in definitions
64184         of getopt_long and getopt_long_only below, which are as well
64185         protected by `#ifndef __need_getopt'.
64186         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64187         __need_getopt after including <stdio.h> and <unistd.h> These
64188         headers might have defined it.
64189
64190 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64193
64194 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64195
64196         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64197         (futimens): New function, which uses futimes if available.
64198         (futimens, utimens): Support timespec==NULL, with same semantics
64199         as utime and utimens.
64200         * lib/utimens.h (futimens): New decl.
64201
64202 2004-11-23  Jim Meyering  <jim@meyering.net>
64203
64204         * lib/getopt_.h: Remove trailing blanks.
64205
64206 2004-11-23  Jim Meyering  <jim@meyering.net>
64207
64208         * lib/__fpending.c: Add comment.
64209
64210 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * modules/canonicalize (Depends-on): Add xreadlink.
64213         Problem reported by James Youngman.
64214
64215 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64218         New macros.
64219         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64220         optopt): Use them instead of invoking ## directly; otherwise, the
64221         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64222
64223 2004-11-19  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/strtok_r.c: Move comments from here...
64226         * lib/strtok_r.h: ... to here.
64227
64228 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64231         implementations that mishandle size_t overflow.
64232
64233 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64236         might fail.  Problem reported by Yoann Vandoorselaere.
64237         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64238         implementations that mishandle size_t overflow.
64239
64240 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * modules/canon-host (Depends-on): Add strdup.
64243
64244 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64245
64246         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64247
64248 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64249
64250         * lib/canon-host.c: Include "strdup.h".
64251         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64252         Use strdup instead of malloc/strcpy to duplicate strings.
64253
64254         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64255         (human_space_before_unit): New constant.
64256         * lib/human.c (human_readable): Support it.
64257
64258         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64259         (xgetcwd): Set errno correctly when failing.
64260         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64261         the failure is actually due to a PATH_MAX problem.
64262
64263         Further getopt changes to make it more likely that glibc will
64264         buy the changes back.
64265         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64266         (getopt): Use it, so to preserve glibc semantic
64267         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64268         when compiling for libc.
64269         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64270         (getopt_long, getopt_long_only): Use it.
64271
64272         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64273         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64274         (getopt): Argv is now char * const *, as per standard.
64275         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64276         not char *__getopt_argv_const *.
64277         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64278         _getopt_long_only_r): Likewise.
64279         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64280         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64281         _getopt_long_r, _getopt_long_only_r): Likewise.
64282         * lib/getopt_.h (__getopt_argv_const): Remove.
64283         (getopt): Argv is now char * const *, as per standard.
64284
64285         * lib/getdate.y (tORDINAL): New token.
64286         (day, relunit): Allow it for relative times.
64287         (relative_time_table): Use tORDINAL for ordinals.
64288
64289 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
64292         Document that "second" isn't allowed as an ordinal number.
64293
64294 2004-11-16  Jim Meyering  <jim@meyering.net>
64295
64296         * modules/closeout (Depends-on): Add fpending.
64297
64298 2004-11-15  Jim Meyering  <jim@meyering.net>
64299
64300         * lib/closeout.c: Include "__fpending.h" once again.
64301         Include <stdbool.h>.
64302         (close_stdout): Don't fail just because stdout was closed initially,
64303         since some programs don't write to stdout in the normal course of
64304         operation (other than --version and --help), and we don't want this
64305         function to make e.g. `touch file >&-' fail.
64306         But do fail if it was closed and someone has tried to write to it.
64307         E.g., `printf foo >&-' must fail.
64308
64309 2004-11-13  Jim Meyering  <jim@meyering.net>
64310
64311         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
64312
64313 2004-11-12  Simon Josefsson  <jas@extundo.com>
64314
64315         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
64316         small doc fix is still pending.
64317
64318 2004-11-11  Simon Josefsson  <jas@extundo.com>
64319
64320         * modules/strtok_r: New file.
64321
64322         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64323         strtok_r.
64324
64325 2004-11-11  Simon Josefsson  <jas@extundo.com>
64326
64327         * m4/strtok_r.m4: New file.
64328
64329         * m4/getopt.m4: Replace opterr.
64330
64331 2004-11-11  Simon Josefsson  <jas@extundo.com>
64332
64333         * lib/strtok_r.h, strtok_r.c: New file.
64334
64335 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64338         of replacing opterr, getopt, etc.  This should handle the
64339         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64340
64341 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64344         we can stop lying to compilers about the constness of argv when we
64345         are compiled outside glibc.
64346         (getopt, getopt_long, getopt_long_only): Use it.
64347         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64348         _getopt_internal, getopt): Likewise.
64349         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64350         _getopt_long_only_r): Likewise.
64351         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64352         _getopt_long_r, _getopt_long_only_r): Likewise.
64353
64354         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64355         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64356         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64357         the other external symbols.
64358         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64359         declaration, since the above renaming now works around collisions.
64360
64361 2004-11-11  Jim Meyering  <jim@meyering.net>
64362
64363         * lib/linebreak.c: Remove trailing blanks.
64364         * lib/alloca_.h: Likewise.
64365         * lib/acosl.c: Likewise.
64366         * lib/euidaccess.c: Likewise.
64367         * lib/allocsa.h: Likewise.
64368
64369 2004-11-10  Simon Josefsson  <jas@extundo.com>
64370
64371         * m4/getaddrinfo.m4: New file.
64372
64373 2004-11-10  Simon Josefsson  <jas@extundo.com>
64374
64375         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64376
64377 2004-11-10  Simon Josefsson  <jas@extundo.com>
64378
64379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64380         getaddrinfo.
64381
64382         * modules/getaddrinfo: New file.
64383
64384 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64385
64386         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64387
64388 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * lib/mktime.c (SHR): New macro, which is a portable
64391         substitute for >> that should work even on Crays.
64392         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64393         Problem reported by Mark D. Baushke in
64394         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64395         * lib/getdate.y (SHR): Likewise.
64396         (tm_diff): Use it.
64397         * lib/strftime.c (SHR): Likewise.
64398         (tm_diff): Use it.
64399         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64400         quote_these_too, so that right shifts are well defined.  All uses
64401         changed.
64402
64403 2004-11-10  Jim Meyering  <jim@meyering.net>
64404
64405         Ensure that no close failure goes unreported.
64406         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64407         return early when it seems there's nothing to flush.
64408         Don't include __fpending.h.
64409
64410 2004-11-10  Jim Meyering  <jim@meyering.net>
64411
64412         * modules/closeout (Depends-on): Remove fpending.
64413
64414 2004-11-10  Jim Meyering  <jim@meyering.net>
64415
64416         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64417
64418 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64421         gl_FUNC_STRFTIME.
64422         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64423         and AC_REQUIRE when possible, to avoid duplicate checks.
64424         Check for <wchar.h>.
64425
64426 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64429
64430 2004-11-09  Bruno Haible  <bruno@clisp.org>
64431
64432         * m4/sockpfaf.m4: New file.
64433
64434 2004-11-05  Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64437         Reported by Mark D. Baushke <mdb@cvshome.org>.
64438
64439 2004-11-04  Bruno Haible  <bruno@clisp.org>
64440
64441         2004-09-11  Bruno Haible  <bruno@clisp.org>
64442                 * allocsa.valgrind: New file.
64443         2004-02-06  Bruno Haible  <bruno@clisp.org>
64444                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64445                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64446                 Reported by Christopher Seip <chris.seip@hp.com>.
64447
64448 2004-11-04  Bruno Haible  <bruno@clisp.org>
64449
64450         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64451         (Makefile.am): Distribute it.
64452
64453 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64456         with errno == ERANGE if the buffer is too small.
64457         Problem reported by Mark D. Baushke.
64458
64459 2004-11-03  Albert Chin  <china@thewrittenword.com>
64460             Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64463         equivalent, substitute $ac_type for equivalent type rather than
64464         blindly using uint32_t *always* which won't work if uint32_t is not
64465         available.  Define _UINT32_T to work around typedef of uint32_t if
64466         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64467         2.5.1.
64468
64469 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * m4/jm-macros.m4: Sync from coreutils.
64472         (gl_MACROS): Check for mbrlen, for pathchk.
64473         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64474
64475 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         * lib/xreadlink.c (MAXSIZE): New macro.
64478         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64479         size does not exceed MAXSIZE.  Avoid cast.
64480         As suggested by Mark D. Baushke in
64481         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64482         if readlink fails with buffer size just under MAXSIZE, try again
64483         with MAXSIZE.
64484
64485 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64488
64489 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64490         and  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64493         (get_date): Overparenthesize to avoid GCC warning.
64494
64495 2004-11-02  Bruno Haible  <bruno@clisp.org>
64496
64497         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64498         returns void.
64499
64500 2004-11-02  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64503         function returns void.
64504
64505 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64506
64507         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64508         fflush_unlocked, flockfile, funlockfile, funlockfile,
64509         fputs_unlocked, putc_unlocked.
64510
64511 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64514         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64515         already declared.
64516
64517 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * modules/getdate (Files): Add doc/getdate.texi.
64520         (Depends-on): Add setenv, xalloc.
64521
64522 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64523
64524         * lib/getdate.y: Add support for TZ="foo" within a date string.
64525         Fix some bugs near time_t boundaries.  Reject dates with
64526         out-of-range components, e.g., "Sept 31".
64527         Include <stdlib.h>, "setenv.h", "xalloc.h".
64528         (ISDIGIT_LOCALE): Remove; unused.
64529         Note that the TZ and time functions used here are not reentrant.
64530         (mktime_ok, get_tz): New functions.
64531         (TZBUFSIZE): New constant.
64532         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64533         This requires that we sometimes generate our own TZ="XXX..." setting.
64534
64535 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64536
64537         * doc/getdate.texi: New file, from coreutils with modifications for
64538         the new TZ parsing.
64539
64540 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64541
64542         * lib/mktime.c (not_equal_tm): Remove redundant check.
64543
64544 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * modules/regex (lib_SOURCES): Add regex.c.
64547         Reported by James Youngman in
64548         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64549
64550 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64551
64552         * lib/getdate.y: Use Bison 1.875 features, and some minor
64553         code cleanups.  This change does not affect semantics.
64554         Don't include <stdlib.h>; no longer needed.
64555         Don't include unlocked-io.h; only the "#if TEST" code uses
64556         stdio, and performance isn't crucial there.
64557         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64558         Bison 1.875 features as described below.
64559         All uses of "PC." replaced by "pc->".
64560         (YYSTYPE): Add a forward declaration.
64561         (yylex, yyerror): Use full prototypes in forward decls.
64562         Use "%pure-parser" rather than obsolescent "%pure_parser".
64563         Use %parse-param and %lex-param instead of obsolescent
64564         YYPARSE_PARAM and YYLEX_PARAM.
64565         (meridian_table, month_and_day_table, time_units_table,
64566         relative_time_table, time_zone_table, military_table,
64567         lookup_zone, lookup_word, get_date):
64568         Use NULL instead of 0 where appropriate.
64569         (to_hour): Avoid abort (), to avoid a dependency on
64570         stdlib.h.
64571         (yyerror, yylex): Now accepts parser_control * arg.
64572         (main) [TEST]: Use '\0' rather than 0 for char.
64573
64574 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64577
64578 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64581         It's now the caller's responsibility to handle the case where
64582         !HAVE_GETPAGESIZE && !defined getpagesize.
64583
64584         * lib/mktime.c (leapyear): Arg is long int, not int.
64585
64586 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64589
64590 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64593         missing.  Problem reported by James Youngman.
64594
64595 2004-10-16  Simon Josefsson  <jas@extundo.com>
64596
64597         * gnulib-tool: Fix comments.  Fix parse problem.
64598         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64599
64600 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64603         implementation of getopt_long.  Problem reported by Alexander Taler in:
64604         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64605
64606 2004-10-15  Bruno Haible  <bruno@clisp.org>
64607
64608         * gnulib-tool: Untabify. Initialize supplied_libname.
64609         (func_usage): More homogenous output.
64610         (func_modules_transitive_closure, func_modules_to_filelist,
64611         func_emit_lib_Makefile_am): New functions.
64612         (func_import): New function, extracted from big case statement. Use
64613         func_get_license, func_modules_transitive_closure,
64614         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64615         opt_lgpl. Don't use test -a, as it's not portable.
64616         (func_create_testdir): Use func_modules_transitive_closure,
64617         func_modules_to_filelist, func_emit_lib_Makefile_am.
64618
64619 2004-10-15  Bruno Haible  <bruno@clisp.org>
64620
64621         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64622
64623 2004-10-15  Bruno Haible  <bruno@clisp.org>
64624
64625         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64626         the portions belonging to each module.
64627         Suggested by Derek Robert Price <derek@ximbiot.com>.
64628
64629 2004-10-12  Simon Josefsson  <jas@extundo.com>
64630
64631         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64632         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64633         to real functions.
64634
64635 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64636
64637         * modules/vsnprintf: New file.
64638
64639 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64640
64641         * m4/vsnprintf.m4: New file.
64642
64643 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64644
64645         * lib/vsnprintf.h: New file.
64646         * lib/vsnprintf.c: New file.
64647
64648 2004-10-11  Bruno Haible  <bruno@clisp.org>
64649
64650         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64651         vsnprintf.
64652
64653 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64656
64657 2004-10-07  Bruno Haible  <bruno@clisp.org>
64658
64659         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64660         fits into the provided buffer.
64661
64662 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64663
64664         * lib/diacrit.c, diacrit.h: Add GPL notice.
64665
64666         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64667         notice.
64668         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64669         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64670         This avoids a potential constant-folding bug.
64671
64672 2004-10-05  Bruno Haible  <bruno@clisp.org>
64673
64674         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64675         for the declaration of strsep.
64676
64677 2004-10-05  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64680
64681 2004-10-04  Simon Josefsson  <jas@extundo.com>
64682
64683         * modules/memmem: New file.
64684         * tests/test-memmem.c: New file.
64685         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64686
64687 2004-10-04  Simon Josefsson  <jas@extundo.com>
64688
64689         * m4/memmem.m4: New file.
64690
64691 2004-10-04  Simon Josefsson  <jas@extundo.com>
64692
64693         * lib/memmem.h: New file.
64694         * lib/memmem.c: New file, taken from glibc.
64695
64696 2004-10-04  Simon Josefsson  <jas@extundo.com>
64697
64698         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64699         '#ifdef USE_UNLOCKED_IO'.
64700
64701 2004-10-04  Simon Josefsson  <jas@extundo.com>
64702
64703         * config/srclist.txt: Add memmem from glibc.
64704
64705 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64708
64709         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64710         modules/exclude, modules/getdate, modules/getline,
64711         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64712         modules/getusershell, modules/linebuffer, modules/md5,
64713         modules/mountlist, modules/posixtm, modules/readtokens,
64714         modules/readutmp, modules/regex, modules/sha1,
64715         modules/version-etc, modules/yesno:
64716         Remove dependency on unlocked-io.
64717
64718 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64721
64722         * m4/unlocked-io.m4: Add copyright notice.
64723         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64724
64725 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64728         * lib/xmalloc.c (xmemdup): Likewise.
64729         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64730         XFREE): Remove these long-obsolescent macros.
64731         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64732         * lib/xstrdup.c: Remove.
64733
64734         * lib/regex.c (re_comp): Cast gettext return value to char *,
64735         Problem reported by Martin Neitzel via Mark D. Baushke.
64736
64737 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64740         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64741         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64742         regex.c, sha1.c, version-etc.c, yesno.c:
64743         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64744         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64745         the includer's responsibility.
64746
64747         Sync from coreutils.
64748
64749         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64750         points to the start of a string, as the C Standard says the
64751         resulting behavior is undefined.
64752
64753         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64754         simple -> simple_backups, numbered_existing ->
64755         numbered_existing_backups, numbered -> numbered_backups
64756         to avoid shadowing problems.  All uses changed.
64757         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64758         * lib/backupfile.c (check_extension, numbered_backup):
64759         Rename locals to avoid shadowing 'basename'.
64760         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64761         once.
64762
64763         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64764         * lib/.cvsignore: Add getopt.h.
64765
64766 2004-10-04  Bruno Haible  <bruno@clisp.org>
64767
64768         * modules/README: New file.
64769         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64770         not a module.
64771
64772 2004-10-02  Jim Meyering  <jim@meyering.net>
64773
64774         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64775
64776 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64777
64778         * modules/strsep: New file.
64779
64780 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64781
64782         * m4/strsep.m4: New file.
64783
64784 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64785
64786         * lib/strsep.h: New file.
64787         * lib/strsep.c: New file.
64788
64789 2004-10-01  Simon Josefsson  <jas@extundo.com>
64790
64791         * lib/snprintf.c (snprintf): Handle size==0.
64792
64793 2004-10-01  Simon Josefsson  <jas@extundo.com>
64794             Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64797         (snprintf): Declare 'args'.
64798
64799 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * lib/snprintf.c: Remove comments as to why each header is needed.
64802
64803 2004-10-01  Bruno Haible  <bruno@clisp.org>
64804
64805         * MODULES.html.sh: Add strsep.
64806
64807 2004-09-30  Simon Josefsson  <jas@extundo.com>
64808
64809         * modules/snprintf: New file.
64810
64811 2004-09-30  Simon Josefsson  <jas@extundo.com>
64812
64813         * m4/snprintf.m4: New file.
64814
64815 2004-09-30  Simon Josefsson  <jas@extundo.com>
64816
64817         * lib/snprintf.h, lib/snprintf.c: New files.
64818
64819 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64820
64821         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64822         (hol_entry_help): Never translate an empty string.
64823         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64824         * lib/argp.h (OPTION_NO_TRANS): New option.
64825
64826 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64827
64828         * modules/argp (Maintainer): Replace Simon Josefsson
64829         by Sergey Poznyakoff.
64830
64831 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64834         changes merged back into glibc.
64835
64836 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64839
64840 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64841
64842         * lib/xvasprintf.c: Include xalloc.h.
64843         (xvasprintf): Use xalloc_die, not xmalloc_die.
64844
64845 2004-09-29  Bruno Haible  <bruno@clisp.org>
64846
64847         * modules/alloca-opt: New file, derived from modules/alloca.
64848         * modules/allocsa: Depend on alloca-opt instead of alloca.
64849         * modules/setenv: Likewise.
64850         * modules/vasnprintf: Likewise.
64851         * MODULES.html.sh: Add alloca-opt.
64852
64853 2004-09-28  Simon Josefsson  <jas@extundo.com>
64854
64855         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64856         LGPL, and to replace license template from GPL to LGPL.
64857
64858 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * modules/dummy: Change license to LGPL.
64861
64862 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64865
64866 2004-09-24  Simon Josefsson  <jas@extundo.com>
64867
64868         * modules/minmax (License): Change from GPL to LGPL.
64869
64870 2004-09-23  Simon Josefsson  <jas@extundo.com>
64871
64872         * gnulib-tool (--import): Typo.
64873
64874 2004-09-23  Simon Josefsson  <jas@extundo.com>
64875
64876         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64877
64878 2004-09-22  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/*: Add 'License' field.
64881         * gnulib-tool: Accept --extract-license option.
64882         (func_get_license): New function.
64883
64884 2004-09-21  Bruno Haible  <bruno@clisp.org>
64885
64886         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64887         Reported by Simon Josefsson.
64888
64889 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64892         gl_AC_TYPE_LONG_LONG.
64893
64894 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64897
64898 2004-09-18  Simon Josefsson  <jas@extundo.com>
64899         and  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64902         calls with autoreconf.  Define GL_LIB.
64903
64904 2004-09-14  Karl Berry  <karl@gnu.org>
64905
64906         * config/srclist.txt: unsync setenv.c, sigh.
64907
64908 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64909
64910         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64911         Problem reported by Bruno Haible in:
64912         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64913
64914 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64915
64916         * config/srclist.txt: Comment out argp-pvh.c.
64917
64918 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64921         in case some system header has #define'd it.  Problem reported by
64922         Soeren D. Schulze in
64923         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64924
64925 2004-09-09  Karl Berry  <karl@gnu.org>
64926
64927         * regex.[ch]: delete from the root.  These were supposed to be
64928                 synced with emacs cvs, but this has not happened for about
64929                 a year, and anyway nothing else uses emacs regex.[ch].
64930                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64931                 lib/regex[.ch] is untouched.
64932
64933 2004-09-09  Bruno Haible  <bruno@clisp.org>
64934
64935         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64936
64937 2004-09-09  Bruno Haible  <bruno@clisp.org>
64938
64939         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64940         modifications.
64941         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64942
64943 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64944
64945         * modules/xvasprintf: New file.
64946         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64947
64948 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64949
64950         * lib/xvasprintf.h: New file.
64951         * lib/xvasprintf.c: New file.
64952         * lib/xasprintf.c: New file.
64953
64954 2004-09-08  Bruno Haible  <bruno@clisp.org>
64955
64956         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64957
64958 2004-09-08  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64961         length is > INT_MAX.
64962         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64963         more.
64964
64965 2004-09-08  Bruno Haible  <bruno@clisp.org>
64966
64967         * lib/stdint_.h: New file, taken from GNU clisp.
64968
64969 2004-09-08  Bruno Haible  <bruno@clisp.org>
64970             Oskar Liljeblad  <oskar@osk.mine.nu>
64971
64972         * modules/stdint: New file.
64973         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64974
64975 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         Import from coreutils.
64978         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64979         strings on unbounded length.  alloca's performance benefits aren't
64980         that important here.
64981         (V_STRDUP): Remove.
64982         (parse_with_separator): New function, with most of the internals
64983         of the old parse_user_spec.  Allow user to omit both user and group,
64984         for compatibility with FreeBSD.
64985         Clone only the user name, not the entire spec.
64986         Do not set *uid, *gid unless entirely successful.
64987         Avoid memory leak in some failing cases.
64988         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64989         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64990         (parse_user_spec): Rewrite to use parse_with_separator.
64991
64992 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64993
64994         * modules/userspec: Don't depend on alloca.
64995
64996 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64999
65000 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65003         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65004         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65005
65006 2004-08-16  Simon Josefsson  <jas@extundo.com>
65007
65008         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65009         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65010         Add --dry-run for --import.
65011         Let user provided command line parameters override configure.ac
65012         settings.
65013
65014 2004-08-12  Simon Josefsson  <jas@extundo.com>
65015
65016         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65017         as discussed with Paul Eggert in threads rooted at
65018         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65019         and
65020         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65021         Before, the test was empty, and relied on ELIDE_CODE in source
65022         code.)
65023         (gl_PREREQ_GETOPT): New macro.
65024         (gl_GETOPT): Use them.
65025
65026 2004-08-12  Simon Josefsson  <jas@extundo.com>
65027
65028         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65029         * lib/getopt_.h: Renamed from getopt.h.
65030
65031 2004-08-12  Simon Josefsson  <jas@extundo.com>
65032
65033         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65034         Change default library name from libfoo to libgnu.
65035         Now, if you have a configure.ac that says:
65036                 gl_SOURCE_BASE(gl)
65037                 gl_M4_BASE(gl/m4)
65038                 gl_MODULES(error getopt etcetera)
65039                 gl_INIT
65040         you can import all you need by running:
65041                 ../gnulib/gnulib-tool --import
65042
65043         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65044         (Makefile.am): Rewrite, use logic from argz.
65045         (Include): Use <getopt.h> instead of "getopt.h".
65046
65047 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65048
65049         * modules/argp (Files): Add m4/unlocked-io.m4.
65050         (Depends-on): Add extensions.
65051
65052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65055         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65056         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65057         Check for program_invocation_name, program_invocation_short_name,
65058         flockfile, funlockfile, features.h, _getopt_long_only_r.
65059
65060 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65063         its complicated substitute.
65064         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65065         and program_invocation_name.
65066         (__argp_basename) [!_LIBC]: Remove; the only use was
65067         replaced by its body.
65068         (__argp_short_program_name): Change condition from
65069         !defined __argp_short_program_name to
65070         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65071         to match argp-namefrob.h.
65072         (__argp_failure): Don't assume strerror_r returns char *.
65073         * lib/argp-parse.c (N_): Define unconditionally.
65074         (argp_default_options): Fill out initializers with 0 to avoid
65075         gcc warnings.
65076
65077 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65080         getopt1.c.
65081
65082 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         Merge from coreutils.
65085
65086         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65087
65088         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65089         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65090
65091 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65092
65093         Merge from coreutils.
65094
65095         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65096         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65097         for Reliant Unix 5.43.
65098
65099         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65100         (union fooround): Use uintmax_t, not long int.
65101         The rest is a merge from libc:
65102         [defined _LIBC]: Include <shlib-compat.h>.
65103         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65104
65105         * lib/settime.c (settime): Recode to avoid warning with
65106         Sun Forte C 6U2.
65107
65108         * lib/strverscmp.c: Convert to UTF-8.
65109
65110 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65113         m4/uintmax_t.m4.
65114
65115 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * modules/xalloc-die: New file.
65118         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65119
65120         * modules/md5 (Files): Add m4/uint32_t.m4.
65121         * modules/sha1: Renamed from modules/sha.
65122         (Files):
65123         Rename lib/sha.h to lib/sha1.h.
65124         Rename lib/sha.c to lib/sha1.c.
65125         Rename m4/sha.m4 to m4/sha1.m4.
65126         (lib_SOURCES): Likewise.
65127         (configure.ac): Rename gl_SHA to gl_SHA1.
65128         (Include): sha.h -> sha1.h.
65129
65130 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65133         * m4/sha1.m4: Renamed from sha.m4.
65134         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65135
65136 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * lib/obstack.h (obstack_empty_p):
65139         Don't assume that chunk->contents is suitably aligned.
65140         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65141         Likewise. Problem reported by Benno in
65142         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65143
65144         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65145         readable.  This could be improved further but it'd take some work.
65146
65147 2004-08-08  Simon Josefsson  <jas@extundo.com>
65148
65149         * modules/xgethostname (Depends-on): Remove exit and error (not
65150         used).
65151
65152         * modules/getpass-gnu: Add getpass.h.
65153         (Depends-on): Add stdbool.
65154         * modules/getpass: Add getpass.h.
65155
65156 2004-08-08  Simon Josefsson  <jas@extundo.com>
65157
65158         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65159         Check getpass declaration.
65160
65161 2004-08-08  Simon Josefsson  <jas@extundo.com>
65162
65163         * lib/xgethostname.c: Don't include error.h (not used).
65164
65165         * lib/getpass.h: Add.
65166         * lib/getpass.c: Include getpass.h first.
65167
65168 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         * lib/xalloc-die.c: New file.
65171         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65172         All uses removed.
65173         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65174         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65175         xalloc-die.c.
65176         (_, N_, xalloc_die): Move to xalloc-die.c.
65177         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65178         so that we needn't mess with xalloc_msg_memory_exhausted.
65179
65180         * lib/sha1.h: Renamed from sha.h.
65181         (SHA1_H): Renamed from _SHA_H.
65182         (sha1_ctx): Renamed from sha_ctx.
65183         (sha1_init_ctx): Renamed from sha_init_ctx.
65184         (sha1_process_block): Renamed from sha_process_block.
65185         (sha1_process_bytes): Renamed from sha_process_bytes.
65186         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65187         (sha1_read_ctx): Renamed from sha_read_ctx.
65188         (sha1_stream): Renamed from sha_stream.
65189         (sha1_buffer): Renamed from sha_buffer.
65190         * lib/sha1.c: Likewise; renamed from sha.c.
65191         Do not include <sys/types.h>.
65192         Include <stddef.h> rather than <stdlib.h>.
65193
65194 2004-08-08  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65197         FILESYSTEM_PREFIX_LEN.
65198         * lib/progreloc.c: Likewise.
65199         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65200
65201 2004-08-06  Simon Josefsson  <jas@extundo.com>
65202
65203         * modules/progname (Depends-on): Don't depend on stdbool.
65204
65205 2004-08-06  Simon Josefsson  <jas@extundo.com>
65206
65207         * modules/getsubopt: New file.
65208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65209         getsubopt.
65210
65211 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         More merge from coreutils.
65214
65215         * m4/utimens.m4, m4/utimecmp.m4: New files.
65216         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65217         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65218         prereq.m4, sha.m4: Import changes from coreutils.
65219
65220 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         More merge from coreutils.
65223         * modules/raise, modules/readtokens0, modules/utimens:
65224         * modules/utimecmp, module/xnanosleep: New files.
65225         * modules/strftime: Add lib/strftime.h.
65226         Change include from <time.h> to "strftime.h".
65227         * modules/yesno: Add lib/yesno.h.
65228         * modules/backupfile: Remove lib/addext.c.
65229         * modules/euidaccess: Add stat-macros.h.
65230         * modules/canonicalize, modules/euidaccess,
65231         modules/filemode, modules/lchown, modules/makepath,
65232         modules/rmdir, modules/stat: Likewise.
65233
65234 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65235
65236         Merge from tar.
65237         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65238         SIZE_MAX is a valid preprocessor constant.
65239         (__argp_basename): Change from "#ifndef _LIBC"
65240         to "#ifndef __argp_short_program_name", so that
65241         we don't compile these functions for tar.
65242
65243         More merges from coreutils.
65244         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65245         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65246         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65247         * lib/addext.c: Remove; no longer needed.
65248         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65249         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65250         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65251         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65252         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65253         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65254         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65255         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65256         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65257         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65258         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65259         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65260         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65261         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65262         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65263         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65264         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65265         Import changes from coreutils.
65266
65267 2004-08-05  Simon Josefsson  <jas@extundo.com>
65268
65269         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65270
65271 2004-08-05  Simon Josefsson  <jas@extundo.com>
65272
65273         * m4/getsubopt.m4: New file.
65274
65275 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         Merge from coreutils.
65278
65279         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65280         * m4/getcwd-path-max.m4: New files.
65281
65282         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65283         FILESYSTEM_PREFIX_LEN ->
65284         FILE_SYSTEM_PREFIX_LEN.
65285         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65286         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65287         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65288         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65289
65290         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
65291         prerequisite modules now handle the DOS stuff.
65292         Don't check for unistd.h.
65293
65294 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         Merge from coreutils.
65297
65298         * lib/.gdb-history: Remove; this doesn't belong here.
65299
65300         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
65301         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
65302         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
65303         * lib/getcwd.c: New files.
65304
65305         * lib/dirname.h: Include <stdbool.h>.
65306         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
65307         for consistency with POSIX terminology.  All uses changed.
65308         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
65309         (strip_trailing_slashes): Use bool for booleans.
65310         * lib/stripslash.c (strip_trailing_slashes): Likewise.
65311
65312         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
65313         sometimes returns a positive errno value even when it succeeds.
65314         (print_errno_message) [!LIBC]: Fall back on strerror if
65315         __strerror_r fails.
65316
65317         * lib/path-concat.c (mempcpy): Don't define if a system header defines
65318         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
65319         (longest_relative_suffix): New function.
65320         (path_concat): Use it.  Assume first argument is not NULL.
65321         Port to DOS.  Omit redundant separators.
65322         Report an error instead of returning NULL.
65323         Use mempcpy instead of memcpy.
65324         (xpath_concat): Remove: not declared or used.
65325
65326         * lib/same.h: Include <stdbool.h>
65327         (same_name): Return bool, not int.
65328         * lib/same.c (same_name): Likewise.
65329         (errno): Don't declare; we assume C89 or better now.
65330
65331         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
65332         if not already defined.
65333
65334         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65335         * lib/dup-safer.c (errno): Likewise.
65336
65337 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         Merge from coreutils.
65340         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65341         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65342         * modules/path-concat: Don't depend on strdup.
65343
65344 2004-08-03  Simon Josefsson  <jas@extundo.com>
65345
65346         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65347         * lib/progname.h: Don't include stdbool.h.
65348
65349 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65352         * MODULES.html.sh (func_all_modules): Remove fatal.
65353
65354 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65357
65358 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65361         working.
65362
65363 2004-08-02  Simon Josefsson  <jas@extundo.com>
65364
65365         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65366         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65367         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65368
65369 2004-08-01  Simon Josefsson  <jas@extundo.com>
65370
65371         * lib/xgetdomainname.c: Include stdlib.h, for free().
65372
65373 2004-07-19  Bruno Haible  <bruno@clisp.org>
65374
65375         * MODULES.html.sh (func_all_modules): Add dummy.
65376
65377 2004-07-16  Simon Josefsson  <jas@extundo.com>
65378
65379         * modules/dummy: New file.
65380
65381 2004-07-16  Simon Josefsson  <jas@extundo.com>
65382
65383         * lib/dummy.c: New file.
65384
65385 2004-07-16  Bruno Haible  <bruno@clisp.org>
65386
65387         * lib/backupfile.h: Add extern "C" for C++.
65388         * lib/closeout.h: Likewise.
65389         * lib/copy-file.h: Likewise.
65390         * lib/findprog.h: Likewise.
65391         * lib/full-write.h: Likewise.
65392         * lib/pathname.h: Likewise.
65393         * lib/progname.h: Likewise.
65394         * lib/stpcpy.h: Likewise.
65395         * lib/stpncpy.h: Likewise.
65396         * lib/strcase.h: Likewise.
65397         * lib/strstr.h: Likewise.
65398         * lib/xalloc.h: Likewise.
65399
65400         * lib/mbswidth.h: Add extern "C" for C++.
65401         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65402
65403 2004-07-13  Robert Millan  <robertmh@gnu.org>
65404
65405         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65406
65407 2004-07-09  Simon Josefsson  <jas@extundo.com>
65408
65409         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65410         failed without this.)
65411
65412 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         * modules/chown (Files): Add lib/fchown-stub.c, since
65415         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65416
65417 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65418
65419         * lib/fchown-stub.c: New file.
65420
65421 2004-06-24  Jim Meyering  <jim@meyering.net>
65422
65423         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65424
65425 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * modules/argz: Omit "#include".
65428
65429         * MODULES.html.sh (func_all_modules): Add calloc, to match
65430         2004-06-01 addition of calloc module.
65431
65432 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * m4/argz.m4: New file, which is autoupdated from libtool.
65435
65436 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65439         libtool.
65440
65441 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * config/srclist-update: Don't insist on "USA." before the
65444         close-comment, as libtool omits the period and puts the */ on a
65445         separate line.
65446         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65447         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65448
65449 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65450
65451         * modules/argz: New file.
65452         * MODULES.html.sh (func_all_modules): Add argz.
65453
65454 2004-06-12  Jim Meyering  <jim@meyering.net>
65455         and  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * modules/hash (Files): Add lib/xalloc.h.
65458         * modules/pipe (Depends-on): Add wait-process.
65459         * modules/stat (Depends-on): Add xalloc.
65460         * modules/userspec (Files): Add lib/userspec.h.
65461         * modules/xstrto
65462
65463         Upgrade from gettext-0.13.
65464         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65465         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65466         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65467
65468 2004-06-10  Jim Meyering  <jim@meyering.net>
65469
65470         * lib/calloc.c: New file.
65471
65472 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * lib/getdate.y (yylex): Allow space between sign and number.
65475         Problem reported by Dan Jacobson.
65476
65477 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         Merge from coreutils CVS.
65480
65481         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65482         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65483         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65484         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65485         xstrtol.m4: Fix copyright date and/or serial number.
65486
65487         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65488         See if we need an fchown replacement.
65489         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65490         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65491         and use the replacement function if we detect either defect.
65492
65493         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65494         gl_UTIMECMP.
65495
65496 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65497         and  Jim Meyering  <jim@meyering.net>
65498
65499         Merge from coreutils CVS.
65500
65501         * lib/stat-macros.h: New file, with contents from file-type.h
65502         and coreutils' system.h.
65503         * lib/file-type.c: Include "stat-macros.h".
65504         * lib/file-type.h (file_type): Move all macro definitions to new file,
65505         stat-macros.h.
65506
65507         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65508         Wrap old code with this conditional.
65509         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65510         function that does not dereference symlinks.
65511         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65512
65513         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65514         dependency problems.
65515         (xreadlink): Accept new arg SIZE, for efficiency.
65516         All decls and uses changed.
65517         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65518
65519         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65520         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65521
65522         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65523         sysexits.h.
65524
65525 2004-06-01  Jim Meyering  <jim@meyering.net>
65526
65527         * m4/calloc.m4: New file.
65528
65529 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65530
65531         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65532         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65533         Also, fix a typo in a diagnostic.
65534
65535 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65538         or AC_FUNC_REALLOC.
65539
65540 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65543         macros to be defined.
65544         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65545         the allocator returns NULL because the requested size is zero.
65546
65547 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65550         var.  Add comment explaining why libc still defines it.  This
65551         merges the following patch from glibc:
65552         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65553
65554 2004-05-20  Andreas Schwab  <schwab@suse.de>
65555
65556         * m4/free.m4: Replace free if it not known to work, not the other
65557         way round.
65558
65559 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65562         present in glibc since revision 1.1 of this file.
65563         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65564         obstack_alignment_mask, obstack_alloc, obstack_base,
65565         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65566         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65567         obstack_grow0, obstack_init, obstack_int_grow,
65568         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65569         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65570         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65571         nonexistent functions.
65572
65573 2004-05-18  Karl Berry  <karl@gnu.org>
65574
65575         * config/srclist.txt: break link for vasnprintf.c.
65576
65577 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         Port obstack to the AS/400, where pointers are 16 bytes wide and
65580         you cannot cast an integer to a valid pointer.  This patch is
65581         currently waiting to be integrated into glibc; see
65582         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65583
65584         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65585         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65586         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65587         (struct obstack): temp member is now a union of a pointer and
65588         an integer, instead of an integer.  All integer uses changed.
65589         This does not affect the physical layout of struct obstack,
65590         except on hosts (like the AS/400) where the size or alignment of
65591         void * is greater than that of ptrdiff_t.
65592         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65593         __STDC__)]: Store temporary in pointer member of union, not
65594         integer member.
65595         * lib/obstack.c: Include <stddef.h>, for offsetof.
65596         (struct fooalign): Remove; it doesn't need a name.
65597         (union fooround): Change double to long double, and add void *.
65598         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65599         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65600         not a macro.  Hence the values are always int; so remove all
65601         casts-to-int in uses.
65602
65603 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65606         we can get this patch merged into glibc.
65607
65608 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65609             Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * m4/argp: Depend on alloca.
65612
65613 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65614             Paul Eggert  <eggert@cs.ucla.edu>
65615
65616         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65617         freecoding.
65618
65619 2004-05-17  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65622         precision that consists of a '.' followed by an empty digit string.
65623         Patch by Tor Lillqvist <tml@iki.fi>.
65624
65625 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65628         for backward compatibility with older code.  We need our own
65629         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65630         it under some other name, and our alloca.h will define it.
65631
65632 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65633             Derek Price  <derek@ximbiot.com>
65634
65635         * lib/alloca.c: Include <alloca.h>, to get our interface.
65636         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65637         include <alloca.h> first.  Use C89 prototype for alloca; this
65638         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65639         Use #elif for simplicity, since we can assume C89 now.
65640         Don't try to source the system alloca.h since it will not be found
65641         and to prevent recursively including its replacement.
65642         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65643         * lib/regex.c: Likewise.
65644
65645 2004-05-16  Derek Price  <derek@ximbiot.com>
65646             Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         getline cleanup.  This changes the getndelim2 API: both order of
65649         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65650         no delimiter).
65651
65652         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65653         interface does that.
65654         (getline): Always use getdelim, so that we don't have two
65655         copies of this code.
65656         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65657         if available.
65658         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65659         (GETNDELIM2_MAXIMUM): New macro.
65660         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65661         instead of the old practice of delim2==0.  All callers changed.
65662         Return -1 on overflow, instead of returning junk.
65663         Do not set *linesize unless allocation succeeds.
65664         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65665         that we include sys/types.h.
65666         * lib/getnline.h: Likewise.
65667         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65668         (getndelim2): Reorder arguments.
65669         * lib/getnline.c (getnline, getndelim):
65670         Don't discard the NMAX argument.
65671         (getnline): Invoke getndelim, to avoid code duplication.
65672         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65673         of (size_t) -1 by callers of the getnline family.
65674
65675 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65678         Check for gettimeofday.
65679         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65680         Check for settimeofday, stime.
65681
65682 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         * lib/nanosleep.c (suspended): Change its type from int to
65685         sig_atomic_t volatile.
65686         (first_call): Make it private to rpl_nanosleep, and have it
65687         be zero initially as that's a bit faster.
65688         (my_usleep): Round up fractional times instead of truncating them,
65689         as this is the usual meaning for 'sleep'.
65690
65691         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65692         doesn't work.
65693         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65694         (ENOSYS): Define if not defined.
65695         (settime): Fall back on stime if it exists and settimeofday fails.
65696         But don't bother with fallbacks if a method fails with errno == EPERM.
65697
65698 2004-05-11  Jim Meyering  <jim@meyering.net>
65699
65700         Prior to this change, the save_cwd caller required read access to the
65701         current directory on most systems (ones with the fchdir function).
65702
65703         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65704         fails, try write-only, and finally, resort to using xgetcwd.
65705
65706 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/obstack.c, obstack.h: Import changes from libc.
65709
65710 2004-04-28  Bruno Haible  <bruno@clisp.org>
65711
65712         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65713         also implicitly appends .exe to executables.
65714         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65715         accepts Windows pathnames.
65716         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65717         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65718         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65719         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65720         Reported by Derek Robert Price <derek@ximbiot.com>.
65721
65722 2004-04-21  Karl Berry  <karl@gnu.org>
65723
65724         * config/srclist.txt (localcharset.c): break sync.
65725
65726 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65727
65728         * m4/host-os.m4: Add a copyright notice.
65729
65730 2004-04-20  Jim Meyering  <jim@meyering.net>
65731
65732         Change UTILS_ to gl_ in AC_DEFINE'd names.
65733         Change utils_- and jm_-prefixed variables, too.
65734         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65735         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65737
65738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65739         Don't emit trailing blanks.
65740         Also rename jm_-prefixed variables to have gl_ prefix.
65741
65742         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65743         Also rename jm_-prefixed variables to have gl_ prefix.
65744
65745         * m4/jm-macros.m4: Reflect the renamings.
65746         * m4/prereq.m4: Likewise.
65747
65748 2004-04-20  Jim Meyering  <jim@meyering.net>
65749
65750         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65751         memory.
65752
65753 2004-04-20  Jim Meyering  <jim@meyering.net>
65754             Bruno Haible  <bruno@clisp.org>
65755
65756         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65757         memory when realloc fails.
65758
65759 2004-04-19  Jim Meyering  <jim@meyering.net>
65760
65761         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65762         now that readutmp.c may call `free (0)'.
65763
65764 2004-04-19  Bruno Haible  <bruno@clisp.org>
65765
65766         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65767         * m4/inttypes_h.m4: Likewise.
65768         * m4/stdint_h.m4: Likewise.
65769         * m4/intmax_t.m4: Likewise.
65770         * m4/uintmax_t.m4: Likewise.
65771
65772 2004-04-18  Jim Meyering  <jim@meyering.net>
65773
65774         * m4/prereq.m4: Don't forbid jm_ prefix.
65775
65776         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65777         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65778         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65779         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65780         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65781         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65782         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65783         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65784         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65785         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65786         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65787         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65788         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65789         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65790         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65791         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65792         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65793         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65794         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65795
65796 2004-04-18  Jim Meyering  <jim@meyering.net>
65797
65798         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65799         failure, don't leak memory and do call END_UTMP_ENT.
65800
65801 2004-04-16  Jim Meyering  <jim@meyering.net>
65802
65803         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65804         coreutils' stat program.
65805         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65806
65807 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65808
65809         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65810         C89.
65811         (CHAR_BIT): Remove, since we assume C89.
65812         Include <stdint.h> if available, as per current Autoconf CVS advice.
65813
65814 2004-03-31  Jim Meyering  <jim@meyering.net>
65815
65816         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65817         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65818         * m4/xalloc.m4: Likewise.
65819
65820 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65821
65822         Merge from coreutils.
65823
65824         * m4/inttostr.m4: New file.
65825         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65826         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65827         Require gl_CLOCK_TIME.
65828         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65829
65830 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65831
65832         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65833         not bool, to be more consistent with Unix conventions.
65834         Suggested by Bruno Haible.
65835
65836         Merge from coreutils.
65837
65838         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65839         * lib/umaxtostr.c: New files.
65840
65841         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65842         the usual <time.h> dance.
65843         (get_date): Change signature to support fractional time stamps.
65844         All callers changed.
65845         * lib/getdate.y: Include "getdate.h" first, as we can now
65846         assume C89 and don't need to worry about 'const'.
65847         Similarly, include "unlocked-io.h" near start, not in middle.
65848         Include <limits.h>.
65849         (textint.value): Use long int rather than int.
65850         (textint.digits): Use size_t rather than int.
65851         (BILLION, LOG10_BILLION): New constants.
65852         (parser_control): New member rel_ns.  Members day_ordinal,
65853         time_zone, month, day, hour, minutes, rel_year, rel_month,
65854         rel_day, rel_hour, rel_minutes, rel_seconds
65855         are now long int, not int.  Member seconds is now struct timespec,
65856         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65857         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65858         not int.
65859         (%union.intval): Now long int, not int.
65860         New member timespec.
65861         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65862         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65863         (spec): Now is a timespec or an item list.
65864         (timespec, items): New nonterminals.
65865         (time, rel, relunit, number, get_date):
65866         Add support for fractional seconds.
65867         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65868         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65869         (to_hour): First arg is now long int, not int.
65870         (to_year): Returns long int, not int.
65871         Don't treat year -70 like 70.
65872         (tm_diff): Returns long int, not int.
65873         (lookup_word): Use bool instead of int when appropriate.
65874         (yylex): Use size_t for count, not int.
65875         Detect overflow when parsing large integer constants.
65876         Add support for fractions.
65877         (get_date): Make pointers 'const' if possible.
65878         Use more-portable code to detect integer overflow.
65879         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65880         Don't use ctime; it's not reliable if the year has >4 digits.
65881
65882         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65883         This is for compatibility with BSD.
65884
65885         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65886         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65887         From coreutils' system.h.
65888
65889         * lib/userspec.c: Don't include "posixver.h".
65890         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65891         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65892         compatible extension.  Simplify code by removing a boolean int
65893         that was always nonzero if a string was nonnull.
65894
65895 2004-03-30  Jim Meyering  <jim@meyering.net>
65896
65897         Merge from coreutils.
65898
65899         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65900         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65901         on some systems one must include <grp.h> before it.
65902         Reported by Christian Krackowizer.
65903
65904 2004-03-30  Jim Meyering  <jim@meyering.net>
65905
65906         Merge from coreutils.
65907
65908         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65909
65910         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65911         an empty input stream.
65912
65913         * lib/readtokens.c: Include <stdbool.h>.
65914         (readtoken): Use `size_t' rather than int/long.
65915         All callers adjusted.
65916         Use `bool' rather than `int' where appropriate.
65917         Use memset rather than an explicit loop.
65918         Use x2nrealloc rather than xrealloc.
65919         Allow the use of `\0' as a delimiter.
65920         (readtokens): Likewise.
65921         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65922
65923 2004-03-30  Jim Meyering  <jim@meyering.net>
65924
65925         * m4/realloc.m4: Remove file, since now it does no more than
65926         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65927         the `configure.ac' section of module/realloc.
65928         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65929
65930 2004-03-30  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65933         nonnull.
65934
65935 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65936
65937         Merge changes to getloadavg.c from coreutils and Emacs.
65938
65939         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65940         Define to an expression, not to the empty string.
65941         Include cloexec.h and xalloc.h.
65942         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65943         Use set_cloexec_flag rather than rolling our own.
65944         * lib/cloexec.c, lib/cloexec.h: New files.
65945
65946 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65947
65948         * m4/cloexec.m4: New file.
65949
65950 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65951
65952         * lib/getopt.h: Sync with libc CVS.
65953
65954 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65955             Bruno Haible  <bruno@clisp.org>
65956
65957         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65958         mbswidth.
65959
65960 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65961             Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/mbswidth.h: Include <wchar.h> only if
65964         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65965         <wchar.h>.
65966         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65967
65968 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65969
65970         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65971         Sync with libc CVS.
65972         * lib/getopt_int.h: New file, also synced from libc.
65973
65974 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65975
65976         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65977         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65978         Bring back getopt.c, getopt.h, getopt1.c.
65979
65980 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65981
65982         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65983         All uses changed.  Check for sa_sigaction member; this fixes
65984         a bug first reported by Jason Andrade in
65985         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65986
65987 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65988
65989         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65990         '#if' expressions.  Unlike the code it replaces, it does not
65991         depend on (defined _SC_PAGESIZE).  However, it does depend on
65992         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65993         first reported by Jason Andrade in
65994         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65995
65996 2004-02-25  Simon Josefsson  <jas@extundo.com>
65997
65998         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65999
66000 2004-02-25  Simon Josefsson  <jas@extundo.com>
66001
66002         * lib/strdup.h: New file.
66003         * lib/strdup.c: Include it.
66004         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66005         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66006
66007 2004-02-23  Karl Berry  <karl@gnu.org>
66008
66009         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66010         (from fencepost.gnu.org:/gd/gnuorg).
66011
66012 2004-02-23  Karl Berry  <karl@gnu.org>
66013
66014         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66015         * config/srclist.txt: add maintain/standards documents.
66016
66017 2004-02-18  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66020         Reported by Derek Robert Price <derek@ximbiot.com>.
66021
66022 2004-02-16  Karl Berry  <karl@gnu.org>
66023
66024         * config/mkinstalldirs, install-sh: update from automake.
66025
66026 2004-02-06  Karl Berry  <karl@gnu.org>
66027
66028         * m4/po.m4: update from gettext 0.14.1.
66029
66030 2004-02-06  Karl Berry  <karl@gnu.org>
66031
66032         * lib/config.charset: update from gettext 0.14.1.
66033
66034 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66035
66036         Add comments and code, prompted by suggestions from Bruno Haible
66037         for sh-quote.
66038         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66039         describing the enum quoting_style values.
66040         * lib/quotearg.c (quotearg_alloc): New function.
66041         (quotearg_buffer_restyled): Treat lone { and } as special.
66042         Treat = as special.  Work around bug with older shells
66043         that "see" a '\' that is really the 2nd byte of a multibyte char.
66044         Quote empty string with shell_quoting_style.
66045
66046 2004-02-03  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/pipe.m4: New file, from GNU gettext.
66049
66050 2004-02-03  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/pipe.h: New file, from GNU gettext.
66053         * lib/pipe.c: New file, from GNU gettext.
66054
66055 2004-01-27  Bruno Haible  <bruno@clisp.org>
66056
66057         * m4/execute.m4: New file, from GNU gettext.
66058
66059 2004-01-27  Bruno Haible  <bruno@clisp.org>
66060
66061         * lib/execute.h: New file, from GNU gettext.
66062         * lib/execute.c: New file, from GNU gettext.
66063         * lib/w32spawn.h: New file, from GNU gettext.
66064
66065 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66066
66067         Merge from diffutils.
66068
66069         * lib/file-type.c (file_type): Add typed memory objects.
66070         * lib/file-type.h (S_TYPEISTMO): New macro.
66071
66072         * lib/c-stack.h (c_stack_action): Remove argv argument.
66073         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66074         (die): Don't calculate message unless segv_action returns.
66075         (get_stack_location, min_address_from_argv, max_address_from_argv,
66076         volatile stack_base, volatile_stack_size): Remove.
66077         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66078         that every segmentation violation is a stack overflow.  (Ouch!)
66079         See Debian bug 136249 (still outstanding) for more info about why
66080         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66081
66082 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66083
66084         Exit-status fix from coreutils.
66085
66086         Use exit_failure consistently in place of EXIT_FAILURE,
66087         so that program exit statuses are consistent on failure.
66088
66089         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66090         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66091         * lib/argmatch.h: Comment fix to match the above.
66092         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66093         Now a macro referring to exit_failure, instead of a separate
66094         variable.  Include "exitfail.h" to get it.
66095         * lib/xstrtol.h: Include "exitfail.h".
66096         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66097
66098         * lib/long-options.c (parse_long_options): Use prototype
66099         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66100         for clarity.
66101
66102 2004-01-21  Jim Meyering  <jim@meyering.net>
66103
66104         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66105         so as not to conflict with a different-sized __mktime_internal
66106         function in GNU libc.
66107         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66108         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66109
66110 2004-01-20  Karl Berry  <karl@gnu.org>
66111
66112         * config/config.guess: update from config.
66113
66114         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66115
66116 2004-01-20  Bruno Haible  <bruno@clisp.org>
66117
66118         Safer stack allocation.
66119         * lib/setenv.c: Include allocsa.h.
66120         (alloca): Remove fallback definition.
66121         (freea): Remove macro.
66122         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66123         instead of freea.
66124
66125 2004-01-20  Bruno Haible  <bruno@clisp.org>
66126
66127         * m4/eealloc.m4: New file, from GNU gettext.
66128
66129 2004-01-20  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/allocsa.m4: New file, from GNU gettext.
66132
66133 2004-01-20  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/xallocsa.h: New file, from GNU gettext.
66136         * lib/xallocsa.c: New file, from GNU gettext.
66137
66138 2004-01-20  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66141
66142 2004-01-20  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66145         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66146         specially.
66147
66148 2004-01-20  Bruno Haible  <bruno@clisp.org>
66149
66150         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66151         patch.
66152
66153 2004-01-20  Bruno Haible  <bruno@clisp.org>
66154
66155         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66156
66157 2004-01-20  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/eealloc.h: New file.
66160
66161 2004-01-20  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/binary-io.h: Avoid warnings on Cygwin.
66164
66165 2004-01-20  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/allocsa.h: New file, from GNU gettext.
66168         * lib/allocsa.c: New file, from GNU gettext.
66169
66170 2004-01-18  Karl Berry  <karl@gnu.org>
66171
66172         * doc/gpl.texi, doc/lgpl.texi: new files.
66173
66174 2004-01-18  Karl Berry  <karl@gnu.org>
66175
66176         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66177         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66178
66179 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66180
66181         Merge from coreutils.
66182
66183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66184         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66185         (gl_DEFAULT_POSIX2_VERSION): Move
66186         the documentation from 'configure' into 'config.hin',
66187         so that 'configure --help' isn't burdened by it and
66188         we don't have to worry about its formatting there.
66189         Reword the documentation so that it's more succinct
66190         and can be run together into a single paragraph.
66191         * m4/same.m4 (gl_SAME): Check for pathconf.
66192
66193 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66194
66195         Merge from coreutils.
66196
66197         * lib/posixver.c: Include posixver.h.
66198
66199         * lib/same.c: Include <stdbool.h>, <limits.h>.
66200         (_POSIX_NAME_MAX): Define if not defined.
66201         (MIN): New macro.
66202         (same_name): If file names are silently truncated, report
66203         that the file names are the same if they are the same after
66204         the silent truncation.
66205
66206         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66207         conversion function.
66208         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66209         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66210         longer needed.
66211
66212 2004-01-15  Jim Meyering  <jim@meyering.net>
66213
66214         Merge from coreutils.
66215
66216         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66217         if no library is required.
66218         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66219         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66220         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66221         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66222         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66223         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66224         value, $ac_cv_search_crypt, if it's "none required".
66225         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66226         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66227         not gl_FUNC_GETLOADAVG.
66228         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66229         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66230
66231 2004-01-15  Jim Meyering  <jim@meyering.net>
66232
66233         Merge from coreutils.
66234
66235         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66236         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66237         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66238
66239         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66240         optional configure-time default.
66241
66242         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66243
66244         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66245
66246 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66247
66248         Merge from coreutils.
66249
66250         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66251         value, $ac_cv_search_nanosleep, if it's "none required".
66252
66253 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66254
66255         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66256         with like-named macro in fnmatch.c.
66257         (EXT): Use an internal constant instead.
66258
66259         Merge fnmatch patches from glibc.
66260         * lib/fnmatch.c (mbsinit): Remove define.
66261         Add libc_hidden_ver (__fnmatch, fnmatch).
66262         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66263         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66264
66265 2004-01-14  Karl Berry  <karl@gnu.org>
66266
66267         * config/install-sh: update from automake.
66268
66269 2004-01-13  Karl Berry  <karl@gnu.org>
66270
66271         * config/install-sh: update from automake.
66272
66273 2004-01-09  Karl Berry  <karl@gnu.org>
66274
66275         * config/install-sh: update from automake.
66276
66277 2004-01-05  Karl Berry  <karl@gnu.org>
66278
66279         * config/config.{sub,guess}: update from config.
66280
66281 2003-12-31  Karl Berry  <karl@gnu.org>
66282
66283         * config/depcomp: update from automake.
66284
66285 2003-12-14  Karl Berry  <karl@gnu.org>
66286
66287         * lib/config.charset: update from gettext-runtime.
66288
66289 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66290
66291         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
66292         Bug reported by Alfred M. Szmidt.
66293
66294 2003-12-03  Bruno Haible  <bruno@clisp.org>
66295
66296         * m4/gettext.m4: Upgrade from gettext-0.13.
66297         * m4/po.m4: Upgrade from gettext-0.13.
66298         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
66299         * m4/intmax.m4: New file, from gettext-0.13.
66300         * m4/printf-posix.m4: New file, from gettext-0.13.
66301
66302 2003-11-29  Karl Berry  <karl@gnu.org>
66303
66304         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
66305
66306 2003-11-25  Paul Eggert  <eggert@twinsun.com>
66307             Bruno Haible  <bruno@clisp.org>
66308
66309         * lib/printf-parse.h: Don't include sys/types.h.
66310         (ARG_NONE): New macro.
66311         (char_directive): Change type of *arg_index fields to size_t.
66312         * lib/printf-parse.c: Don't include sys/types.h.
66313         (SSIZE_MAX): Remove macro.
66314         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
66315         Remove unnecessary overflow check.
66316         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
66317         fields.
66318
66319 2003-11-25  Bruno Haible  <bruno@clisp.org>
66320
66321         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
66322
66323 2003-11-25  Bruno Haible  <bruno@clisp.org>
66324
66325         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
66326         gt_TYPE_SSIZE_T.
66327
66328 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66329
66330         * modules/alloca: Remove dependency on xalloc.
66331
66332 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66333
66334         * lib/alloca.c: Remove dependency on xalloc module.
66335         (xalloc_die): Remove.
66336         (memory_full) [!defined emacs]: New macro.
66337         [!defined emacs]: Don't include xalloc.h.
66338         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66339         address arithmetic overflows.  Change datatypes a bit to avoid
66340         unnecessary casts.
66341
66342 2003-11-22  Jim Meyering  <jim@meyering.net>
66343
66344         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66345         s/size/size_t/.
66346
66347 2003-11-21  Karl Berry  <karl@gnu.org>
66348
66349         * config/config.{sub,guess}: update from config.
66350
66351 2003-11-18  Karl Berry  <karl@gnu.org>
66352
66353         * config/config.{sub,guess}: update from config.
66354
66355         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66356
66357 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66358
66359         * README: Mention that S+T cannot overflow if S is the size of
66360         an existing object and T is sufficiently small.
66361
66362 2003-11-17  Jim Meyering  <jim@meyering.net>
66363
66364         On systems without utime and without a utimes function capable of
66365         dealing with a NULL struct utimbuf* argument, this utime replacement
66366         could -- in unusual circumstances -- leak a file descriptor.
66367         * lib/utime.c: Include <unistd.h> and <errno.h>.
66368         (utime_null): Be sure to close `fd' and to preserve errno.
66369         Reported by Geoff Collyer via Arnold Robbins.
66370
66371 2003-11-17  Bruno Haible  <bruno@clisp.org>
66372
66373         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66374         (Depends-on): Add xsize.
66375
66376 2003-11-17  Bruno Haible  <bruno@clisp.org>
66377
66378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66379
66380 2003-11-17  Bruno Haible  <bruno@clisp.org>
66381
66382         * lib/vasnprintf.c (alloca): Remove fallback definition.
66383         (freea): Remove definition.
66384         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66385         Reported by Paul Eggert.
66386
66387 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66388             Bruno Haible  <bruno@clisp.org>
66389
66390         Protect against address arithmetic overflow.
66391         * lib/printf-args.h: Include stddef.h.
66392         (arguments): Change type of field 'count' to size_t.
66393         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66394         'unsigned int' where appropriate.
66395         * lib/printf-parse.h: Include sys/types.h.
66396         (char_directive): Change type of *arg_index fields to ssize_t.
66397         (char_directives): Change type of fields 'count', max_*_length to
66398         size_t.
66399         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66400         (SSIZE_MAX): Define fallback value.
66401         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66402         instead of 'int' where appropriate. Check a_allocated, d_allocated
66403         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66404         * lib/vasnprintf.c: Include xsize.h.
66405         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66406         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66407         overflow. Avoid wraparound when converting a width or precision from
66408         decimal to binary.
66409
66410 2003-11-16  Bruno Haible  <bruno@clisp.org>
66411
66412         Update from GNU gettext.
66413         * lib/printf-parse.c: Generalize to it can be compiled for wide
66414         strings.
66415         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66416         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66417         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66418         SNPRINTF): New macros.
66419         Don't include <alloca.h> if the file is used inside libintl.
66420         (local_wcslen): New function, for Solaris 2.5.1.
66421         (VASNPRINTF): Use it instead of wcslen.
66422
66423 2003-11-16  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/xsize.h (xmax): New function.
66426         (xsum, xsum3, xsum4): Declare as "pure" functions.
66427
66428 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66429
66430         * modules/xalloc (Files): Undo latest change, since xalloc.h
66431         no longer needs SIZE_MAX or PTRDIFF_MAX.
66432
66433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66434
66435         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66436         gl_PTRDIFF_MAX.
66437
66438 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66439
66440         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66441         "return", to pacify some unknown compiler.  Problem reported
66442         by Joerg Schilling.
66443
66444 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66445
66446         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66447         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66448         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66449         heuristic is just as accurate as far as we know, and it removes a
66450         dependency on size_max.m4 and ptrdiff_max.m4.
66451
66452 2003-11-11  Bruno Haible  <bruno@clisp.org>
66453
66454         * modules/xsize (Files): Add m4/size_max.m4.
66455         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66456
66457 2003-11-11  Bruno Haible  <bruno@clisp.org>
66458
66459         * m4/size_max.m4: New file.
66460         * m4/ptrdiff_max.m4: New file.
66461         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66462         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66463         (gl_XALLOC): Invoke it.
66464
66465 2003-11-11  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66468         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66469         defined.
66470
66471 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66472
66473         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66474         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66475         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66476         From Bruno Haible.
66477         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66478         not (size_t) -1, since it's defined here.
66479
66480 2003-11-09  Karl Berry  <karl@gnu.org>
66481
66482         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66483
66484 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66485
66486         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66487         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66488         Reject sizes of exactly SIZE_MAX bytes.
66489         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66490         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66491
66492 2003-11-05  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66495         SIZE_MAX defined in <limits.h> on Solaris.
66496
66497 2003-11-04  Jim Meyering  <jim@meyering.net>
66498
66499         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66500         variable names, rather than @VAR@.
66501         * modules/poll: Likewise.
66502
66503 2003-11-04  Bruno Haible  <bruno@clisp.org>
66504
66505         * modules/xsize: New file.
66506         * modules/linebreak: Depend on xsize.
66507         * MODULES.html.sh (func_all_modules): Add xsize.
66508
66509 2003-11-04  Bruno Haible  <bruno@clisp.org>
66510
66511         * m4/xsize.m4: New file.
66512
66513 2003-11-04  Bruno Haible  <bruno@clisp.org>
66514
66515         * lib/xsize.h: New file.
66516         * lib/linebreak.c: Include xsize.h.
66517         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66518         argument for overflow.
66519         Suggested by Paul Eggert.
66520
66521 2003-11-03  Karl Berry  <karl@gnu.org>
66522
66523         * config/config.{guess,sub}: update from config.
66524
66525 2003-11-03  Jim Meyering  <jim@meyering.net>
66526
66527         * modules/userspec (lib_SOURCES): Add userspec.h.
66528         (Include): Add "userspec.h".
66529         Improve description.
66530
66531 2003-11-03  Jim Meyering  <jim@meyering.net>
66532
66533         * lib/userspec.c: Include "userspec.h".
66534         * lib/userspec.h: New file.
66535
66536 2003-11-03  Bruno Haible  <bruno@clisp.org>
66537
66538         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66539
66540 2003-11-03  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66543         available, to avoid (extremely rare) race condition.
66544         Suggested by Paul Eggert.
66545
66546 2003-11-02  Karl Berry  <karl@gnu.org>
66547
66548         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66549
66550 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66551
66552         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66553         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66554         (read_filesystem_list): Set and use me_type_malloced.
66555         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66556         whatever the type happens to be), for brevity and consistency.
66557         Check for size calculation overflow on Alphas running OSF/1.
66558
66559 2003-10-31  Jim Meyering  <jim@meyering.net>
66560
66561         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66562
66563         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66564
66565 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66566             Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66569         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66570
66571 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66574         netbsd*-gnu*.  Suggested by Robert Millan.
66575
66576 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66577
66578         * modules/group-member: Depend on stdbool.
66579
66580 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66581
66582         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66583
66584 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66585
66586         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66587         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66588         after the 'gnu' in these cases.  This fixes some bugs in the
66589         previous change, and is based on suggestions by Robert Millan.
66590
66591 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66592
66593         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66594         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66595         no longer needed.
66596         * lib/quotearg.c (quotearg_n_options): Use it.
66597         * lib/group-member.c: Include <stdbool.h>.
66598         (free_group_info): Arg is now const *; don't free arg.
66599         (get_group_info): Now returns bool and accepts struct group_info *,
66600         rather than returning a malloc'ed struct group_info *.
66601         All uses changed.  Check for overflow in internal size calculation.
66602
66603         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66604         rather than xmalloc/xrealloc.
66605         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66606         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66607         conformance bug: the old code used a pointer after freeing the
66608         storage that it addressed.
66609         * lib/hash.c (hash_initialize): Simplify the code by using
66610         xalloc_oversized rather than doing it by hand.
66611         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66612         the buffer preserved.  Use free and xmalloc instead.
66613         * lib/quotearg.c (quotearg_n_options): Likewise.
66614         Use a simpler test for size overflow.  Don't use xalloc_oversized
66615         because unsigned int might be wider than size_t (!); this suggests
66616         that we should switch from unsigned int to size_t for slot numbers.
66617
66618 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66619
66620         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66621         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66622         NetBSD kernels.  Requested by Richard Stallman.
66623
66624 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66625
66626         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66627         to allocate the returned structure.  Do not allocate a subarray,
66628         as x2nrealloc will do that.
66629         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66630         instead of xnrealloc.
66631         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66632
66633 2003-10-27  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/stdbool_.h: Better support for BeOS.
66636
66637 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66638
66639         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66640         now uses inline.
66641
66642 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66643
66644         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66645         callers that want to do their own size-overflow checking.  Include
66646         <stdbool.h>, since xalloc_oversized returns bool.
66647         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66648         to use xalloc_oversized.
66649
66650         Add two functions x2realloc, x2nrealloc, for programs that grow
66651         arrays dynamically by doubling their sizes.
66652         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66653         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66654         New functions.
66655
66656         Port to C99 semantics for 'inline' of external functions.
66657         Bug reported by Bruno Haible.
66658         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66659         with the old contents of xnmalloc.
66660         (xnmalloc, xmalloc): Use it.
66661         (xnrealloc_inline): New static inline function,
66662         with the old contents of xnrealloc.
66663         (xnrealloc, xrealloc): Use it.
66664
66665         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66666         that.
66667
66668 2003-10-26  Karl Berry  <karl@gnu.org>
66669
66670         * config/srclist.txt (COPYING.DOC): no longer available from
66671         /gd/gnuorg; don't know where the ultimate source is.
66672
66673 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66674
66675         Fix several address-calculation bugs in the hash modules,
66676         plus some minor code cleanup.
66677
66678         * lib/hash.h: Include <stdbool.h>, for bool.
66679         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66680         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66681         hash_get_n_entries, hash_get_max_bucket_length,
66682         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66683         hash_rehash): Use size_t rather than unsigned.
66684         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66685         hash_get_n_buckets_used, hash_get_n_entries,
66686         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66687         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66688         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66689         Likewise.
66690         (SIZE_MAX): Define if not defined.
66691         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66692         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66693         hash_print):
66694         Use const * when possible.
66695         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66696         (check_tuning): Fix bug: if tuning parameters were very close to
66697         0 or 1, rounding errors could have caused subscript violations.
66698         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66699         (hash_initialize): Add 'fail:' label
66700         to free table and return NULL, and use it to simplify code.
66701         Use calloc rather than clearing the storage ourself.
66702         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66703         buffer size calculations.
66704         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66705         Include <stddef.h>, for size_t.
66706         * lib/hash-pjw.c (hash_pjw): Likewise.
66707         Switch to method described by Bruno Haible.
66708         Include <limits.h>, for CHAR_BIT.
66709         (SIZE_BITS): New macro.
66710
66711 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66712
66713         * m4/getline.m4 (AM_FUNC_GETLINE):
66714         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66715         hosts.  Problem reported by Derek Robert Price in
66716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66717         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66718         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66719
66720 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66721
66722         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66723         ceiling the allocation at NMAX bytes rather than silently
66724         discarding input bytes before NMAX is reached.  This makes
66725         a difference only if NMAX exceeds SIZE_MAX / 2.
66726
66727         * lib/obstack.c: Merge from glibc.
66728         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66729         Add libc_hidden_def (_obstack_newchunk).
66730         (_obstack_free) [! defined _LIBC]: Remove.
66731         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66732         a clone of the function body.
66733         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66734         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66735
66736         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66737         glibc.
66738         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66739         arg to memcpy.
66740
66741         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66742         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66743         Don't use lvalue casts, as GCC plans to remove support for them
66744         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66745         was also present in the non-GCC version, indicating that this
66746         code had always been buggy and had never been widely used.
66747         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66748         Use the fast variant of each macro, rather than copying the
66749         definiens of the fast variant; that way, we'll be more likely to
66750         catch future bugs in the fast variants.
66751
66752 2003-10-20  Bruno Haible  <bruno@clisp.org>
66753
66754         * modules/wait-process: New file.
66755         * MODULES.html.sh (func_all_modules): Add wait-process.
66756
66757 2003-10-20  Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/wait-process.m4: New file.
66760
66761 2003-10-20  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/wait-process.h: New file, from GNU gettext.
66764         * lib/wait-process.c: New file, from GNU gettext.
66765
66766 2003-10-19  Jim Meyering  <jim@meyering.net>
66767
66768         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66769         HPUX 10.20.
66770
66771 2003-10-18  Karl Berry  <karl@gnu.org>
66772
66773         * config/config.guess: update from config.
66774
66775 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66776
66777         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66778         (getgroups): First arg is int, not size_t.
66779         Don't let 'free' mangle errno.
66780
66781 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66782
66783         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66784
66785 2003-10-16  Karl Berry  <karl@gnu.org>
66786
66787         * config/config.{guess,sub}: update from config.
66788
66789 2003-10-16  Jim Meyering  <jim@meyering.net>
66790
66791         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66792         memcpy.
66793
66794 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66795
66796         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66797         (SIZE_MAX): Remove.
66798         (new_exclude, add_exclude_file): Initial size no longer needs to
66799         be a power of 2.
66800         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66801         our own address arithmetic overflow checking.
66802
66803         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66804         (fnmatch): Do not alloca more than 2000 wide characters;
66805         instead, use malloc for large buffers.
66806         Check for address arithmetic overflow, and return -1
66807         with errno set to ENOMEM in that case.
66808         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66809         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66810         instead, return -1.  Check for address arithmetic overflow.
66811
66812 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66813
66814         Handle invalid suffixes and overflow independently, so that
66815         callers can treat them independently as needed.  Fix some bugs in
66816         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66817         suffix for a human-readable blocksize.  The major caller-visible
66818         change is the addition of a new
66819         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66820         that both overflow and suffix chars were found.
66821
66822         * lib/human.c (humblock): Don't check separately for invalid suffix
66823         char; that is xstrtoumax's job (now that its bug is fixed).
66824         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66825         INTMAX_MAX]: New macros.
66826         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66827         TYPE_MAXIMUM): New macros.
66828         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66829         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66830         if overflow occurs, as it's what __strtol does and it's more useful
66831         in practice.
66832         (__xstrtol): If __strtol reports some error other than ERANGE,
66833         reflect it to the caller as LONGINT_INVALID.  If it reports
66834         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66835         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66836         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66837         value.
66838         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66839         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66840         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66841         [defined UINTMAX_MAX]: New macros.
66842
66843 2003-10-14  Bruno Haible  <bruno@clisp.org>
66844
66845         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66846
66847 2003-10-14  Bruno Haible  <bruno@clisp.org>
66848
66849         * m4/sig_atomic_t: New file, from GNU gettext.
66850         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66851
66852 2003-10-14  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66855         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66856         Also use volatile where needed.
66857
66858 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66859
66860         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66861         Change maintainer from Bruno Haible to 'all'.
66862
66863 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66864
66865         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66866
66867 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66868
66869         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66870         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66871         and define in terms of the other primitives.
66872         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66873         (SIZE_MAX): Define if not already defined.
66874         (array_size_overflow): New function.
66875         (xalloc_die): Abort instead of exiting if 'error' returns.
66876         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66877         (xmalloc, xrealloc): Use them.
66878         (xcalloc): Check for address arithmetic overflow.
66879         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66880         a bit faster than strcpy.
66881
66882 2003-10-10  Simon Josefsson  <jas@extundo.com>
66883
66884         * modules/argp (Depends-on): Add restrict and strcase.
66885
66886 2003-10-10  Simon Josefsson  <jas@extundo.com>
66887
66888         * m4/argp.m4: Add AC_C_INLINE.
66889
66890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66891
66892         Merge getpass from libc, plus a few fixes.
66893
66894         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66895         Include <stdbool.h>.
66896         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66897         __fsetlocking to empty.
66898         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66899         do include <bits/libc-lock.h>.
66900         Do not include <fcntl.h>; not needed.
66901         [_LIBC]: Include <wchar.h>.
66902         (NOTCANCEL_MODE): New macro.
66903         (flockfile, funlockfile) [_LIBC]: New macros.
66904         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66905         [!_LIBC]: New macros.
66906         (call_fclose): New function.
66907         (getpass): Use it.  Save tty stream separately; this simplifies the
66908         code and makes it more reliable if stdin happens to equal stdout.
66909         Invoke __fsetlocking on tty.
66910         Handle thread cancellation if needed.
66911         Namespace cleanup (use __tcgetattr, __getline).
66912         Use bool for Booleans.
66913         [USE_IN_LIBIO]: Handle wide streams.
66914         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66915         stream might go where.
66916
66917         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66918         doesn't have to include <stdio.h> before us.
66919         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66920         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66921         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66922         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66923         if not declared, so that we can use getpass.c code from libc without
66924         rewriting it.
66925         (flockfile, ftrylockfile, funlockfile): New macros.
66926
66927 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66928
66929         * modules/getpass: Depend on stdbool.
66930
66931 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66932
66933         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66934
66935 2003-10-07  Karl Berry  <karl@gnu.org>
66936
66937         * config/config.{guess,sub}: update from config.
66938
66939 2003-10-06  Jim Meyering  <jim@meyering.net>
66940             Bruno Haible  <bruno@clisp.org>
66941
66942         This lets translators provide better translations for the
66943         "Written by ..." part of --version output.
66944         * lib/version-etc.h: Include stdarg.h.
66945         (version_etc_copyright): Declare as readonly.
66946         (version_etc): Make this function variadic with a NULL-terminated list
66947         of author name strings.
66948         (version_etc_va): New declaration.
66949         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66950         (version_etc_copyright): Declare as readonly.
66951         (version_etc_va): New function. Provide a different translatable string
66952         for each possible number of authors < 10. Abbreviate when there are 10
66953         authors or more.
66954         (version_etc): Make this function variadic. Call version_etc_va.
66955         Suggestion from Gary V. Vaughan.
66956
66957         * lib/long-options.h (parse_long_options): Change prototype: the
66958         authors string is moved to the end and becomes variadic.
66959         * lib/long-options.c: Include stdarg.h.
66960         (parse_long_options): Make this function variadic, too.
66961         Call version_etc_va, not version_etc.
66962
66963 2003-10-06  Bruno Haible  <bruno@clisp.org>
66964
66965         * modules/version-etc-2: Remove file.
66966         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66967
66968 2003-10-06  Bruno Haible  <bruno@clisp.org>
66969
66970         * modules/fatal-signal: New file.
66971         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66972
66973 2003-10-06  Bruno Haible  <bruno@clisp.org>
66974
66975         * m4/fatal-signal.m4: New file.
66976         * m4/signalblocking.m4: New file, from GNU gettext.
66977
66978 2003-10-06  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/version-etc-2.h: Remove file.
66981         * lib/version-etc-2.c: Remove file.
66982
66983 2003-10-06  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/fatal-signal.h: New file, from GNU gettext.
66986         * lib/fatal-signal.c: New file, from GNU gettext.
66987
66988 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66989
66990         * README: Rework advice for preventing empty .o files.
66991         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66992         not <sys/types.h>.
66993
66994 2003-10-04  Karl Berry  <karl@gnu.org>
66995
66996         * lib/argp*: update from libc.
66997
66998 2003-10-04  Karl Berry  <karl@gnu.org>
66999
67000         * config/config.{guess,sub}: update from config.
67001
67002 2003-10-02  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/lchown (Include): Add lchown.h.
67005         * modules/time_r (Include): Use "..." syntax.
67006         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67007
67008 2003-10-01  Simon Josefsson  <jas@extundo.com>
67009
67010         * MODULES.html.sh (func_all_modules): Move gethostname from section
67011         'based on' to section 'lacking' POSIX:2001.
67012
67013 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67014
67015         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67016         to output mode on the same stream.
67017
67018 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67019
67020         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67021         Fix arg typo in previous patch.
67022
67023 2003-09-28  Jim Meyering  <jim@meyering.net>
67024
67025         * lib/error.c: Correct cpp indentation.
67026
67027 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67028
67029         * modules/free: New file.
67030
67031 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67032
67033         * m4/free.m4: New file.
67034
67035 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67036
67037         * lib/minmax.h (MIN, MAX)
67038         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67039         Omit the special code that used __typeof__, since we worry that
67040         it could be more trouble than it's worth.  See:
67041         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67042         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67043
67044         * lib/free.c: New file.
67045
67046 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67047
67048         Trivial fixes to Makefile.am parts of module listings.
67049         * modules/strstr: Append strstr.h to lib_SOURCES.
67050         * modules/strcase: Likewise, for strcase.h.
67051
67052 2003-09-27  Karl Berry  <karl@gnu.org>
67053
67054         * config/mkinstalldirs: update from automake.
67055
67056 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67057
67058         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67059         (error_tail): Do not loop, reallocating temporary buffer, since
67060         the output cannot contain more wide characters than the input
67061         contains bytes, the size must be big enough already.  This avoids
67062         one potential size overflow calculation.  Check for size overflow
67063         when calculating temporary buffer size.  Free temporary buffer
67064         when done, if it was allocated with malloc; this plugs a memory
67065         leak.  Remove casts from void * to pointers, that are no longer
67066         needed now that we're assuming C89 or better.
67067
67068         Merge error changes from glibc.
67069
67070         * lib/error.c, error.h: Update copyright notice header to match glibc.
67071         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67072         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67073         Disable cancellation while printing error.
67074         * lib/error.h: Prepend __ to parameter names.
67075
67076 2003-09-26  Jim Meyering  <jim@meyering.net>
67077
67078         * lib/error.c (error_tail): Move some declarations
67079         into inner scope where the local variables are used.
67080
67081 2003-09-26  Bruno Haible  <bruno@clisp.org>
67082
67083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67084         stpncpy().
67085         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67086
67087 2003-09-26  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67090         (stpncpy): Define as alias for gnu_stpncpy.
67091         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67092
67093 2003-09-25  Simon Josefsson  <jas@extundo.com>
67094
67095         * lib/xgetdomainname.h: New file.
67096         * lib/xgetdomainname.c: New file.
67097
67098 2003-09-25  Simon Josefsson  <jas@extundo.com>
67099             Bruno Haible  <bruno@clisp.org>
67100
67101         * modules/getdomainname: New file.
67102         * modules/xgetdomainname: New file.
67103         * MODULES.html.sh (func_all_modules): Add getdomainname,
67104         xgetdomainname.
67105
67106 2003-09-25  Simon Josefsson  <jas@extundo.com>
67107             Bruno Haible  <bruno@clisp.org>
67108
67109         * m4/getdomainname.m4: New file.
67110
67111 2003-09-25  Simon Josefsson  <jas@extundo.com>
67112             Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/getdomainname.h: New file.
67115         * lib/getdomainname.c: New file.
67116
67117 2003-09-25  Karl Berry  <karl@gnu.org>
67118
67119         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67120
67121 2003-09-25  Karl Berry  <karl@gnu.org>
67122
67123         * config/install-sh: update from automake.
67124
67125 2003-09-25  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/version-etc-2: New file, from modules/version-etc with
67128         modifications.
67129         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67130
67131 2003-09-25  Bruno Haible  <bruno@clisp.org>
67132
67133         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67134         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67135
67136 2003-09-24  Simon Josefsson  <jas@extundo.com>
67137
67138         * modules/xgethostname: Add xgethostname.h.
67139
67140 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67141
67142         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67143         the buffer associated with the argument.  Bug reported by
67144         Simon Josefsson.
67145
67146 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67147
67148         * README: Document assumptions that 'int' is at least 32 bits
67149         wide, that integer arithmetic is 2's complement without overflow,
67150         that there are no holes in integer values, that adding sizes of
67151         two nonoverlapping objects can't overflow, and that all-bits-zero
67152         yields scalar zero.  Fix spelling and capitalization typos.
67153
67154 2003-09-19  Karl Berry  <karl@gnu.org>
67155
67156         * lib/argp.h: update from libc.
67157
67158 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67159
67160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67161         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67162         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67163
67164 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67165
67166         * gnulib-tool: Use "test -h", not "test -L", for portability
67167         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67168         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67169         (sed_extract_prog): Issue s commands one-by-one, rather than
67170         using \| in one s command.
67171
67172 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67173
67174         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67175         input error, instead of returning NULL the next time we are called
67176         (and therefore losing track of errno).
67177
67178 2003-09-16  Bruno Haible  <bruno@clisp.org>
67179
67180         * gnulib-tool (func_create_testdir): Warn about duplicated
67181         dependencies.
67182
67183 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67184
67185         * modules/argmatch, modules/fatal, modules/obstack,
67186         modules/xalloc, modules/xgethostname: Sort dependencies by
67187         importance, not alphabetically.
67188
67189 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67190
67191         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67192         fails, so that the caller gets the proper errno.
67193
67194         * lib/readutmp.c (read_utmp): Likewise.
67195         Check for fstat error.  Close stream and free storage
67196         when failing.
67197
67198 2003-09-14  Karl Berry  <karl@gnu.org>
67199
67200         * config/srclist.txt (strdup.c): disable for c89 changes.
67201
67202 2003-09-14  Jim Meyering  <jim@meyering.net>
67203
67204         * lib/getloadavg.c: Correct cpp indentation.
67205         * lib/strdup.c: Likewise.
67206         * lib/vasnprintf.c: Likewise.
67207
67208 2003-09-14  Bruno Haible  <bruno@clisp.org>
67209
67210         * modules/fwriteerror: New file.
67211         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67212
67213 2003-09-14  Bruno Haible  <bruno@clisp.org>
67214
67215         * lib/fwriteerror.h: New file.
67216         * lib/fwriteerror.c: New file.
67217
67218 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67219
67220         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67221         modules/xgethostname, modules/xalloc: Depend on exit.
67222
67223 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67224
67225         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67226
67227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67228         and AC_MINIX, too, so that their extensions are available.
67229
67230         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67231         This macro has been superseded by gl_BACKUPFILE.
67232
67233         More patches to assume C89 or better.
67234
67235         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67236
67237         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67238         unconditionally.
67239         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67240         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67241         Include <string.h>, <stdlib.h> unconditionally.
67242         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67243         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67244         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67245         headers or for string.h.
67246         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67247         or strtoul.
67248
67249         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67250         headers.
67251         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67252         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67253         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67254         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67255         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67256         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67257         memcpy, memset.
67258         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67259         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67260         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67261         strtol.
67262         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67263         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67265         strtoul.
67266
67267 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67268
67269         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67270         * lib/obstack.c [!defined _LIBC]: Likewise.
67271         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67272         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67273         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67274
67275         More changes to assume C89 or better.
67276
67277         * lib/error.c (error_tail): Assume vprintf.
67278
67279         * lib/argmatch.c (getenv): Remove decl.
67280         * lib/progreloc.c (get_full_program_name): Define via prototype.
67281         * lib/setenv.c (clearenv): Likewise.
67282         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67283         needed.
67284         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67285         (malloc, memcpy): Remove decls.
67286         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67287         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67288         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67289         (memcpy): Remove macro.
67290         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
67291         (__P): Remove.  All uses removed.
67292         (PTR): Remove.  All uses changed to void *.
67293         (CHAR_BIT, NULL): Remove.
67294         (spaces, zeros, memset_space, memset_zero)
67295         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
67296         Remove.
67297         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
67298         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
67299         Define with prototype.
67300         Remove now-unnecessary prototype decl.
67301         (extra_args_spec): Assume ANSI C.  All uses changed.
67302         (extra_args_spec_iso): Remove.
67303         (my_strftime, emacs_strftimeu): Define via prototype.
67304         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
67305         unconditionally.
67306         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
67307         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
67308         (strtoul, strtol): Remove decls.
67309         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
67310         LONG_MAX): Remove.
67311         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67312         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
67313         (LOCALE_PARAM_PROTO): New macro.
67314         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
67315         (INTERNAL (strtol), strtol): Define with a prototype.
67316         (PARAMS): Remove.  All uses removed.
67317         * lib/tempname.c: Include <string.h> unconditionally.
67318         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
67319         * lib/xgethostname.c (main): Define with a prototype.
67320         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
67321         Include <stdlib.h> unconditionally.
67322         (calloc, malloc, realloc, free): Remove decls.
67323         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
67324         Include <stdlib.h> unconditionally.  Sort include file names.
67325         (strtod): Remove.
67326         (xstrtod): Define with a prototype.
67327         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
67328         (strtol, strtoul): Remove decls.
67329
67330 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67331
67332         More patches to assume C89 or better.
67333         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
67334         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67335         string.h, memchr, STDC_HEADERS.
67336
67337 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67338
67339         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67340         Include <stdlib.h>, <string.h> unconditionally.
67341         Remove now-unnecessary cast to char *.
67342         * lib/strnlen.c: Include <string.h> unconditionally.
67343         * lib/yesno.c (yesno): Define with a prototype.
67344
67345 2003-09-11  Bruno Haible  <bruno@clisp.org>
67346
67347         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67348
67349 2003-09-10  Jim Meyering  <jim@meyering.net>
67350
67351         * lib/error.c: Correct indentation of cpp directives.
67352
67353 2003-09-10  Bruno Haible  <bruno@clisp.org>
67354
67355         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67356         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67357         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67358         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67359         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67360         <stdlib.h> and <string.h> checks.
67361         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67362         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67363
67364 2003-09-10  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/strcspn.c: Include <string.h> unconditionally.
67367         * lib/strpbrk.c: Include <string.h> unconditionally.
67368         * lib/strstr.c: Include <string.h> unconditionally.
67369         * lib/unicodeio.c: Include <string.h> unconditionally.
67370         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67371         * lib/unsetenv.c: Likewise.
67372         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67373         * lib/yesno.c: Include <stdlib.h> unconditionally.
67374         (rpmatch): Add prototype.
67375
67376 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67377
67378         More patches to assume C89 or better.
67379         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67380         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67381         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67382         or for string.h.
67383         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67384         stdlib.h.
67385         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67386         C headers.
67387         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67388         string.h.
67389         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67390         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67391         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67392         or for string.h.
67393         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67394         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67395         C headers.
67396         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67397         memcpy.
67398         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67399         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67400         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67401         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67402         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67403         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67404         string.h, free.
67405         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67406         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67407         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67408         C headers, or for string.h.
67409         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67410         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67411         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67412         headers, memory.h, stdlib.h, string.h, strings.h.
67413         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67414         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67415         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67416         strchr.
67417         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67418         headers, memory.h, string.h.
67419         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67420         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67421         free.
67422         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67423         headers.
67424         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67425         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67426         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67427         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67428         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67429
67430 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67431
67432         More K&R removal.
67433
67434         * lib/acosl.c (main): Use a prototype.
67435         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67436         tanl.c: Likewise.
67437
67438         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67439
67440         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67441         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67442         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67443         with a prototype.
67444         * lib/getopt.c (const): Remove macro.
67445         Include <string.h> unconditionally.
67446         (my_index): Remove; all uses changed to strchr.
67447         (strlen): Remove decl.
67448         (exchange): Remove forward decl; no longer needed.
67449         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67450         Define with prototype.
67451         * lib/getopt1.c (const): Remove macro.
67452         (getopt_long, getopt_long_only, main): Define with prototype.
67453
67454         * lib/getugroups.c: Include <string.h> unconditionally.
67455
67456         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67457         (getusershell, setusershell, endusershell, readname, main):
67458         Define with prototypes.
67459
67460         * lib/group-member.c: Include group-member.h first.
67461         Include <stdlib.h> unconditionally.
67462
67463         * lib/hard-locale.c: Include hard-locale.h first.
67464         Include <stdlib.h>, <string.h> unconditionally.
67465
67466         * lib/hash.c (free, malloc): Remove decls.
67467         Include <stdlib.h> unconditionally.
67468
67469         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67470         (getenv): Do not declare.
67471
67472         * lib/idcache.c: Include <string.h> unconditionally.
67473
67474         * lib/long-options.c: Include long-options.h first, to test interface.
67475         Include <stdlib.h> unconditionally.
67476
67477         * lib/makepath.c: Include makepath.h first, to test interface.
67478         Include <stdlib.h> and <string.h> unconditionally.
67479
67480         * lib/linebuffer.c: Include <stdlib.h>.
67481         (free): Remove decl.
67482
67483         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67484         stddef.h. rpl_malloc returns void *, not char *.
67485         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67486         prototype.
67487
67488         * lib/md5.h: Include <limits.h> unconditionally.
67489         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67490         (__P): Remove; all uses removed.
67491         * lib/md5.c: Include "md5.h" first.
67492         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67493         md5_buffer, md5_process_bytes, md5_process_block):
67494         Define with prototypes.
67495         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67496         * lib/sha.c: Include "sha.h" first.
67497         Include <stdlib.h>, <string.h> unconditionally.
67498
67499         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67500         * lib/memcmp.c (__ptr_t): Likewise.
67501         * lib/memrchr.c (__ptr_t): Likewise.
67502         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67503         Include <string.h> unconditionally.
67504         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67505         * lib/memchr.c: Include <stdlib.h> unconditionally.
67506         * lib/memchr.c (LONG_MAX): Remove.
67507         * lib/memrchr.c (LONG_MAX): Likewise.
67508         * lib/memchr.c (__memchr): Define via a prototype.
67509         * lib/memrchr.c (__memrchr): Likewise.
67510         * lib/memcmp.c (__P): Remove, and remove all uses.
67511         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67512         Remove forward decls; no longer needed.
67513         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67514         Use types required by C89 in prototype.
67515
67516         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67517         * lib/savedir.c: Likewise.
67518         * lib/mkdir.c (free): Remove decl.
67519         * lib/rmdir.c (rmdir): Define with a prototype.
67520         * lib/savedir.c: Include savedir.h first, to test interface.
67521
67522         * lib/mktime.c (STDC_HEADERS): Remove.
67523         Include <stdlib.h>, <string.h> unconditionally.
67524
67525         * lib/modechange.c: Include <stdlib.h> unconditionally.
67526         (malloc): Remove decl.
67527
67528         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67529         (free): Remove decl.
67530
67531         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67532         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67533         (This type really should be intptr_t, but that's a C99ism.)
67534         (_obstack_memcpy): Remove: all uses changed to memcpy.
67535         Include <string.h> unconditionally.
67536         (struct obstack): Assume __STDC__ for types of members
67537         chunkfun, freefun, extra_arg.
67538         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67539         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67540         obstack_begin, obstack_specify_allocation,
67541         obstack_specify_allocation_with_arg, obstack_chunkfun,
67542         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67543         Remove unprototyped decls and the macros that use them.
67544         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67545         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67546         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67547         (defined __STDC__ && __STDC__)]:
67548         Remove nonprototyped code.
67549         Include <stdlib.h> unconditionally.
67550         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67551         _obstack_allocated_p, _obstack_free, obstack_free,
67552         _obstack_memory_used, print_and_abort):
67553         Define using prototypes.
67554         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67555         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67556         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67557         obstack_next_free, obstack_object_size, obstack_room) [0]:
67558         Remove unused, unprototyped code.
67559
67560         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67561
67562         * lib/physmem.c (physmem_total, physmem_available, main): Define
67563         with prototypes.
67564
67565         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67566         (main): Define with a prototype.
67567
67568         * lib/posixver.c (getenv): Remove decl.
67569
67570         * lib/putenv.c (malloc): Returns void *, not char *.
67571         Include <string.h> unconditionally.
67572         (strchr, memcpy, NULL): Do not define.
67573
67574         * lib/readtokens.c: Include readtokens.h first, to test interface.
67575         Include <stdlib.h>, <string.h> unconditionally.
67576         (init_tokenbuffer): Define with a prototype.
67577
67578         * lib/regex.c (PARAMS): Remove.  All uses removed.
67579         All uses of _RE_ARGS removed, too.
67580         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67581         unconditionally.
67582         (bzero): Assume memset exists.
67583         (memcmp, memcpy, NULL): Remove.
67584         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67585         char, or assignments to local vars of type signed char.
67586         (init_syntax_once, PREFIX(extract_number_and_incr),
67587         PREFIX(print_partial_compiled_pattern),
67588         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67589         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67590         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67591         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67592         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67593         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67594         wcs_compile_range, byte_compile_range, truncate_wchar,
67595         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67596         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67597         count_mbs_length, wcs_re_match_2_internal,
67598         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67599         PREFIX(alt_match_null_string_p),
67600         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67601         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67602         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67603         now-unnecessary declaration, if any.
67604         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67605         regcomp, regexec):
67606         Remove now-unnecessary casts among pointer types.
67607         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67608
67609         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67610         (free): Remove decl.
67611
67612         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67613
67614         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67615         (free): Remove decl.
67616
67617         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67618         * lib/xgetcwd.c: Likewise.
67619
67620         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67621         (free): Remove decl.
67622
67623         * lib/strchrnul.c (strchrnul): Define with a prototype.
67624         Fix bug: c_in was not converted to char before searching.
67625
67626         The following changes are not K&R related:
67627
67628         * lib/group-member.h: Include <sys/types.h>, so that this file is
67629         self-contained.
67630         * lib/makepath.h: Likewise.
67631
67632         * lib/getusershell.c (readname, default_index, line_size, readname):
67633         Use size_t, not int, for sizes.
67634         (readname): If the size overflows, report an error instead of
67635         looping forever.
67636
67637 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67638
67639         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67640         libc.
67641
67642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67643
67644         * README: New section: portability guidelines.
67645
67646 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67647
67648         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67649         C89 spec.
67650
67651 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67652
67653         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67654
67655 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67656
67657         Assume C89 or better; remove K&R cruft.
67658         A few of these changes were first proposed by Derek Robert Price
67659         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67660
67661         * lib/addext.c: Include <string.h> unconditionally.
67662         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67663         Don't declare getenv or malloc.
67664
67665         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67666         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67667         (NULL): Remove.
67668         (find_stack_direction, alloca): Use prototypes.
67669
67670         * lib/atexit.c (atexit): Define using a prototype.
67671
67672         * lib/basename.c, dirname.c, stripslash.c:
67673         Include <string.h> unconditionally.
67674
67675         * lib/bcopy.c: Include <stddef.h>.
67676         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67677
67678         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67679
67680         * lib/error.h (error, error_at_line, error_print_progname)
67681         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67682         * lib/error.c: Include error.h first, to check interface.
67683         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67684         (VA_START): Remove; all uses changeed to va_start.
67685         (exit, strerror): Remove decls.
67686         (error_print_progname): Prototype uncondionally.
67687         Don't include <errno.h>; no longer needed.
67688         (private_strerror): Remove.
67689         (error_tail): Always define.
67690         (error, error_at_line): Assume C89 or better; always use prototypes.
67691         * lib/fatal.c: Include "fatal.h" first, to test interface.
67692         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67693         (VA_START): Remove; all uses changed to va_start.
67694         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67695         this case.
67696         (exit): Remove decl.
67697         (fatal): Prototype unconditionally.  Assume va_start works.
67698         Abort at end, to pacify gcc.
67699
67700         * lib/euidaccess.c (main): Define with a prototype.
67701
67702         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67703
67704         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67705
67706         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67707         prototypes.
67708         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67709         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67710         (getenv): Remove decl.
67711         (fnmatch): Define using a prototype.
67712         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67713         (FCT): Define using a prototype.
67714
67715         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67716
67717         * lib/gethostname.c: Include <stddef.h>.
67718         (gethostname): Define with prototype.  Length is size_t, not int.
67719
67720 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67721
67722         Assume C89 or better; remove K&R cruft.
67723         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67724         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67725         string.h, getenv, malloc.
67726         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67727         headers.
67728         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67729         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67730         do not check for strerror.
67731         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67732         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67733         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67734         do not check for doprnt or vprintf.
67735         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67736         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67737
67738 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67739
67740         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67741         getversion.c should have been removed then, but was accidentally
67742         preserved.
67743
67744         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67745         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67746
67747 2003-09-08  Karl Berry  <karl@gnu.org>
67748
67749         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67750                 config, forget about prep.
67751
67752         * config/depcomp, missing: update from automake.
67753
67754 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67755
67756         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67758
67759 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67760
67761         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67762         copy_tm_result.  Bug reported by Simon Josefsson in
67763         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67764
67765 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67766
67767         * m4/time_r.m4: New file.
67768         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67769         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67770         is. Check for timegm declaration.
67771         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67772         Do not check for gmtime_r.
67773         Replace mktime if __mktime_internal does not exist and if mktime
67774         hasn't been replaced already.
67775
67776 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67777
67778         * lib/time_r.c, lib/time_r.h: New files.
67779
67780         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67781         __localtime_r.
67782         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67783         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67784
67785         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67786         __gmtime_r.
67787         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67788         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67789         Include <time_r.h>.
67790
67791         * lib/timegm.c: Switch to glibc implementation, with the following
67792         changes:
67793         [defined HAVE_CONFIG_H]: Include <config.h>.
67794         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67795         (__mktime_internal) [!defined _LIBC]: New decl.
67796         (__gmtime_r) [!defined _LIBC]: New macro and function.
67797         (timegm): Use a prototype, since gnulib assumes C89.
67798         Do not bother declaring tmp to be const, as it's not really usefu.
67799         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67800         (timegm): Declare only if HAVE_DECL_TIMEGM.
67801
67802 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67803
67804         * MODULES.html.sh (func_all_modules): Add time_r.
67805         * modules/time_r: New file.
67806         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67807         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67808
67809 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67810
67811         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67812         Bug reported by Lute Kamstra in
67813         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67814
67815         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67816         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67817         course with correspondingly smaller numbers for tomorrow and
67818         yesterday.  From Tadayoshi Funaba.  Originally installed into
67819         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67820         coreutils merge?).
67821
67822 2003-08-31  Simon Josefsson  <jas@extundo.com>
67823
67824         * modules/timegm: New file.
67825         * MODULES.html.sh (func_all_modules): Add timegm.
67826
67827 2003-08-31  Simon Josefsson  <jas@extundo.com>
67828
67829         * m4/timegm.m4: New file.
67830
67831 2003-08-31  Simon Josefsson  <jas@extundo.com>
67832
67833         * lib/timegm.h: New file.
67834         * lib/timegm.c: New file.  Based on
67835         wget-1.8.2/src/http.c:mktime_from_utc.
67836
67837 2003-08-31  Karl Berry  <karl@gnu.org>
67838
67839         * lib/argp.h: update from libc.
67840
67841 2003-08-28  Bruno Haible  <bruno@clisp.org>
67842
67843         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67844         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67845         followed by '#define fnmatch fnmatch_posix' gives an error.
67846
67847 2003-08-28  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67850         warning on QNX, which defines O_BINARY to 000000.
67851
67852 2003-08-27  Jim Meyering  <jim@meyering.net>
67853
67854         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67855         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67856         would fail after 32.  Reported by Danny Levinson.  Details here:
67857         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67858
67859 2003-08-24  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67862         MSVC7 <stdio.h> is included later.
67863
67864 2003-08-22  Simon Josefsson  <jas@extundo.com>
67865
67866         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67867
67868 2003-08-20  Karl Berry  <karl@gnu.org>
67869
67870         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67871
67872 2003-08-20  Bruno Haible  <bruno@clisp.org>
67873
67874         * modules/progname: New file.
67875         * MODULES.html.sh (func_all_modules): Add progname.
67876
67877 2003-08-20  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/progname.h: New file, from GNU gettext.
67880         * lib/progname.c: New file, from GNU gettext.
67881         * lib/progreloc.c: New file, from GNU gettext.
67882
67883 2003-08-19  Jim Meyering  <jim@meyering.net>
67884
67885         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67886         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67887
67888 2003-08-19  Bruno Haible  <bruno@clisp.org>
67889
67890         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67891         more.
67892
67893 2003-08-19  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/xstrdup.c: Assume <string.h> exists.
67896
67897 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67898
67899         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67900         in makefile rules.
67901
67902 2003-08-18  Jim Meyering  <jim@meyering.net>
67903
67904         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67905         * m4/lib-ld.m4: Likewise.
67906
67907 2003-08-18  Jim Meyering  <jim@meyering.net>
67908
67909         * lib/setenv.h: Indent nested cpp directive.
67910         * lib/vasnprintf.c: Remove trailing blanks.
67911
67912 2003-08-17  Simon Josefsson  <jas@extundo.com>
67913
67914         * modules/xstrndup: New file.
67915         * MODULES.html.sh (func_all_modules): Add xstrndup.
67916
67917 2003-08-17  Simon Josefsson  <jas@extundo.com>
67918
67919         * modules/argp: Fix autoconf macro name. Add more dependencies.
67920
67921 2003-08-17  Simon Josefsson  <jas@extundo.com>
67922
67923         * m4/xstrndup.m4: New file.
67924
67925 2003-08-17  Simon Josefsson  <jas@extundo.com>
67926
67927         * m4/argp.m4: New file.
67928
67929 2003-08-17  Simon Josefsson  <jas@extundo.com>
67930             Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/xstrndup.h: New file.
67933         * lib/xstrndup.c: New file.
67934
67935 2003-08-17  Bruno Haible  <bruno@clisp.org>
67936
67937         * modules/strndup (Files, Include): Add lib/strndup.h.
67938
67939 2003-08-17  Bruno Haible  <bruno@clisp.org>
67940
67941         * modules/euidaccess (Files): Add lib/euidaccess.h.
67942
67943 2003-08-17  Bruno Haible  <bruno@clisp.org>
67944
67945         * lib/strndup.h: New file.
67946
67947 2003-08-17  Bruno Haible  <bruno@clisp.org>
67948
67949         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67950         like AC_GNU_SOURCE.
67951         * modules/extensions (configure.ac): Comment out the invocation of
67952         gl_USE_SYSTEM_EXTENSIONS.
67953
67954 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67955
67956         Merges from coreutils, etc.
67957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67958         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67959         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67960         fixing a typo.
67961         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67962         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67963
67964 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67965
67966         Document merge from coreutils.
67967         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67968         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67969         * modules/utime: Add m4/utimes-null.m4.
67970
67971 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67972
67973         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67974         space, undoing this 2003-08-12 change:
67975         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67976
67977 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67978
67979         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67980         strtoul.c from libc, undoing this 2003-08-12 change:
67981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67982
67983 2003-08-16  Jim Meyering  <jim@meyering.net>
67984
67985         Merges from coreutils.
67986         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67987         prefix.  Adjust cache variables similarly.  Create 500 rather than
67988         just 300 files, to exercise bug on Darwin6.5, too.
67989         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67990         $missing_dir.
67991         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67992         AM_SYS_POSIX_TERMIOS.
67993         Reported by mkc@mathdogs.com.
67994         Also change use of $am_cv_sys_posix_termios
67995         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67996         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67997         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67998         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67999         in /proc/mounts until it finds one with matching device number.  This
68000         is unnecessary when the FILE argument *is* a mount point.  No stat call
68001         is necessary in that case.  So, disable the statvfs-testing code on
68002         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68003         as RedHat bug# 84846.
68004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68005         to 1MB, so as not to render systems with no stack size limit (e.g.,
68006         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68007         Include <unistd.h>.  On some systems,
68008         it is required for the definition of _SC_PAGESIZE.
68009
68010 2003-08-16  Jim Meyering  <jim@meyering.net>
68011
68012         Merge from coreutils.
68013         * lib/xstrtoimax.c: #else #if -> #elif.
68014         * lib/xstrtoumax.c: Likewise.
68015
68016 2003-08-16  Jim Meyering  <jim@meyering.net>
68017
68018         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68019         * m4/utimes.m4: Removed.
68020         * m4/utimes-null.m4: Renamed from utimes.m4.
68021
68022         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68023         to 1MB, so as not to render systems with no stack size limit (e.g.,
68024         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68025         Include <unistd.h>.  On some systems,
68026         it is required for the definition of _SC_PAGESIZE.
68027
68028 2003-08-16  Jim Meyering  <jim@meyering.net>
68029         and Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         Merges from coreutils, etc.
68032
68033         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68034         using the latest version from cvs.  This avoids problems with #line
68035         directives using a vendor (Sun) compiler.
68036         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68037         Don't set GETGROUPS_LIB here; now it's
68038         done via getgroups.m4's wrapper function.
68039         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68040         rather than just in sh-util/configure.in, so that the
68041         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68042         same.
68043         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68044         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68045         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68046         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68047         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68048         Remove code that is now done by the newly-required macros.
68049         Append $(EXEEXT) to DF_PROG.
68050         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68051         Do not invoke or require the following here,
68052         since prereq.m4 or some gnulib .m4 now does this for us:
68053         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68054         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68055         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68056         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68057         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68058         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68059         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68060         AC_FUNC_OBSTACK.
68061         Do not replace the following functions, as this is now the job
68062         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68063         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68064         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68065         atexit getpass, strdup, getpagesize.
68066         Replace 'raise'.
68067         Do not check for the following functions, as this is now the job
68068         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68069         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68070         setregid.
68071         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68072         Check for sys/sysctl.h.
68073         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68074         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68075         of checking for ssize_t ourselves.
68076
68077         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68078         Require every macro that gnulib/modules/* suggests for us.
68079         (jm_PREREQ_ADDEXT): New macro.
68080         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68081         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68082
68083         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68084         (gl_PHYSMEM): Use it.
68085         Also check for `table' function.
68086         Check for new headers and functions.
68087         Add check for sys/sysmp.h.
68088         With suggestions from Kaveh Ghazi.
68089         Ignore headers that are present but cannot be compiled.  This
68090         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68091         C 5.4.
68092
68093 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68094
68095         Document merge from coreutils.
68096         * modules/userspec: Depend on posixver.
68097         * modules/strftime: Depend on tzset.
68098
68099 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68100
68101         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68102         rather than tab, after '#' in shell-script copyright notices.
68103         Suggested by Bruno Haible.
68104
68105 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68106
68107         * config/srclist-update: Use three spaces, rather than tab, after '#'
68108         in shell-script copyright notices.  Suggested by Bruno Haible.
68109         Remove unnecessary parenthesization in regular expression.
68110
68111 2003-08-15  Jim Meyering  <jim@meyering.net>
68112
68113         Merge from coreutils.
68114         * lib/xgethostname.c: Include <stdlib.h>.
68115         (xghostname): Don't exit for anything other than memory-related
68116         failure; just return NULL.
68117         * lib/userspec.c: Include "posixver.h".
68118         (parse_user_spec): Accept `.' as a separator only
68119         in pre-POSIX-200112 mode.
68120         * lib/strtoimax.c: Use #elif rather than #else #if.
68121         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68122         Remove function, now that we can rely on a working tzset function.
68123         [!_LIBC]: Ensure that the required autoconf test has been run.
68124         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68125         Use underlying_strftime for %r.
68126         * lib/sha.c: Merge in some clean-up and optimization changes from
68127         glibc.
68128         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68129         Ensure that it is a multiple of 64.
68130         Rearrange loop exit tests so as to avoid performing an
68131         additional fread after encountering an error or EOF.
68132         * lib/realloc.c: Update copyright date.
68133
68134 2003-08-15  Jim Meyering  <jim@meyering.net>
68135         and Paul Eggert  <eggert@twinsun.com>
68136
68137         Merge from coreutils.
68138         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68139         member but strut utmpx does not.  Needed for AIX 4.3.3.
68140         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68141
68142 2003-08-15  Jim Meyering  <jim@meyering.net>
68143         and Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         Merges from coreutils, etc.
68146         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68147         Require gl_FUNC_TZSET_CLOBBER.
68148         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68149         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68150         members.
68151
68152 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68153
68154         Help the merge from coreutils.
68155         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68156         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68157         * m4/tzset.m4: Use it too.
68158
68159 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68160
68161         * modules/tzset: New file.
68162
68163 2003-08-14  Jim Meyering  <jim@meyering.net>
68164
68165         Merges from coreutils.
68166         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68167         variable names, rather than @FNMATCH_H@.
68168         * modules/alloca: Likewise for $(ALLOCA_H).
68169
68170         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68171         the three copies of the literal target, `fnmatch.h'.
68172         * modules/alloca (alloca.h): Likewise.
68173
68174 2003-08-14  Jim Meyering  <jim@meyering.net>
68175
68176         Merge from coreutils.
68177         * m4/tzset.m4: New file.
68178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68179         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68180         otherwise, AIX 5.1 systems would end up using the latter.
68181         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68182         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68183         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68184         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68185
68186 2003-08-14  Jim Meyering  <jim@meyering.net>
68187
68188         Merge from coreutils.
68189         * lib/obstack.h: Whitespace changes.
68190         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68191         and xcalloc return values.
68192         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68193         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68194         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68195         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68196         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68197         error from mntctl.
68198         Use mntctl's return value to drive the entry-processing loop, since
68199         we can't rely on the value of the vmt_length member in the last
68200         entry.  On some systems doing so could result in exhausting
68201         virtual memory.  Based in part on a patch from Mike Jetzer.
68202
68203 2003-08-14  Jim Meyering  <jim@meyering.net>
68204         and Paul Eggert  <eggert@twinsun.com>
68205
68206         Merges from coreutils, plus other fixes.
68207         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68208         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68209         for credits and details.  Thanks to Kaveh Ghazi for helping
68210         to keep these files in sync.
68211         (ARRAY_SIZE): Define it.
68212         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68213         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68214         (memcasecmp): Don't assume size_t fits in unsigned int.
68215         Remove casts and duplicate code.
68216         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68217         (memcpy): Remove definition.
68218         Merge in some clean-up and optimization changes from glibc.
68219         [BLOCKSIZE]: Move definition to top of file.
68220         Ensure that it is a multiple of 64.
68221         Rearrange loop exit tests so as to avoid performing an
68222         additional fread after encountering an error or EOF.
68223         * lib/md5.h (md5_uintptr): Define.
68224         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68225         return to the initial working directory.  Preserve errno
68226         for caller.
68227         * lib/idcache.c: Include "xalloc.h".
68228         (xmalloc, xrealloc): Remove decls.
68229         (getuser): Remove casts no longer required in C89.
68230         * lib/human.c: Include stdio.h, for sprintf.
68231         * lib/group-member.c: Include "xalloc.h".
68232         (xmalloc, xrealloc): Remove decls.
68233         (get_group_info): Remove casts no longer required in C89.
68234         * lib/getusershell.c (readname): Remove casts no longer required in
68235         C89.
68236         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68237         * lib/getline.c: Whitespace fix, from coreutils.
68238
68239 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68240
68241         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68242         Check for isascii.
68243
68244         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68245         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68246         Undo previous (whitespace-only) change.
68247
68248 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68249
68250         * lib/exclude.c: Include <ctype.h>
68251         (IN_CTYPE_DOMAIN): New macro.
68252         (is_space): New fn.
68253         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68254         and empty lines.
68255
68256         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68257         Undo previous (whitespace-only) change.
68258
68259 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68260
68261         * config/srclist-update: Change update back to the old behavior,
68262         leaving whitespace alone.  Use one 'sed' command rather than a
68263         pipeline.
68264         (fixlicense): Now a variable, not a function.
68265         (remove_trailing_blanks): Remove.
68266         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68267         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68268         Undo previous (whitespace-only) change.
68269
68270 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68271
68272         Merge from coreutils.
68273         * modules/euidaccess: Add lib_SOURCES, include for new
68274         file euidaccess.h
68275
68276 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68277
68278         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68279         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68280         Normalize leading white space and remove trailing white space.
68281
68282         Merge from coreutils
68283         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68284
68285         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68286         0.12.1.  These files are now being upgraded automatically by
68287         ../config/srclist-update.
68288
68289 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68290
68291         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68292         Normalize leading white space and remove trailing white space.
68293         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
68294         notice, as per ../config/srclist-update.
68295
68296         Merge from coreutils.
68297         * lib/euidaccess.h: New file.
68298         * lib/euidaccess.c: Include it.
68299         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
68300         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
68301         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
68302
68303 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68304
68305         * config/srclist-update: Add copyright notice.
68306         (remove_id_lines, remove_trailing_blanks): New constants.
68307         (fixfile): Use them to normalize spacing a bit in copied files.
68308         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68309         Normalize leading white space and remove trailing white space.
68310
68311         * config/texinfo.tex: Sync with texinfo.
68312
68313         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
68314         strtoul.c from libc, to merge coreutils whitespace changes.
68315
68316         * config/srclist.txt: Get the following m4 files from gettext:
68317         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
68318         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
68319         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
68320         wint_t.m4.
68321
68322 2003-08-12  Karl Berry  <karl@gnu.org>
68323
68324         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
68325         been made.
68326
68327 2003-08-11  Paul Eggert  <eggert@twinsun.com>
68328
68329         * modules/gnu-source, m4/gnu-source.m4:
68330         Remove; we're assuming Autoconf 2.54 or later now.
68331         Suggested by Bruno Haible.
68332         * MODULES.html.sh (func_all_modules): Remove gnu-source.
68333
68334 2003-08-11  Bruno Haible  <bruno@clisp.org>
68335
68336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68337
68338 2003-08-11  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68341         (vasnprintf): Use it instead of wcslen.
68342
68343 2003-08-11  Bruno Haible  <bruno@clisp.org>
68344
68345         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68346         value to ensure that _Bool promotes to int. Use #define for _Bool when
68347         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68348
68349 2003-08-10  Karl Berry  <karl@gnu.org>
68350
68351         * lib/regex.h: update from libc (whitespace fix).
68352
68353 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68354
68355         Merge some files from coreutils.  These changes were
68356         originally made by Jim Meyering.
68357         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68358         many older Unixes require this.
68359         * lib/alloca.c (alloca): Remove cast to argument of free;
68360         no longer needed in C89.
68361         * lib/alloca_.h, regex.h: Fix white space to match
68362         what GNU indent does.
68363
68364 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68365
68366         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68367         apparently Emacs's Unicode mode got confused before my 2003-08-05
68368         checkin.
68369
68370 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68371
68372         * m4/extensions.m4: New file.
68373         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68374         Require gl_USE_SYSTEM_EXTENSIONS.
68375         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68376         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68377
68378 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68379
68380         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68381         * modules/extensions, modules/gnu-source: New files.
68382         * modules/timespec, modules/unlocked-io: Depend on extensions.
68383
68384 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68385
68386         * modules/restrict: New file.
68387         * MODULES.html.sh (func_all_modules): Add restrict.
68388         * modules/regex: Depend on restrict.
68389
68390 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68391
68392         * m4/restrict.m4: New file.
68393         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68394
68395 2003-08-07  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68398         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68399
68400 2003-08-07  Bruno Haible  <bruno@clisp.org>
68401
68402         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68403         makes the module 'getndelim2' compatible with the module 'getline'.
68404
68405 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68406
68407         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68408         byte with "\201" to avoid glitches when editing that source file
68409         with multi-gnome-terminal.
68410
68411 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68412
68413         * lib/bumpalloc.h: Remove.
68414
68415 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68416
68417         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68418         * modules/bumpalloc: Remove.
68419
68420 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68421
68422         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68423         GNU coding style.
68424
68425         Merge from coreutils.
68426         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68427         1. From glibc.
68428         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68429         from Karl Berry, implemented by Jim Meyering.
68430         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68431         from Dmitry V. Levin.
68432         Remove anachronistic cast of xrealloc.
68433         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68434         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68435         type. Otherwise, it wouldn't compile with at least /bin/cc on
68436         ymp-cray-unicos9.0.2.X.
68437         Combine two mostly-identical uses of alloca into one.
68438         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68439
68440 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68441
68442         [From Emacs.]
68443
68444         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68445         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68446         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68447         obsolete NLIST_NAME_UNION.
68448         [__GNU__]: Undef BSD and FSCALE.
68449         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68450
68451 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68452
68453         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68454         an enum type, so that it's guaranteed to promote to int.  See:
68455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68456
68457 2003-08-03  Karl Berry  <karl@gnu.org>
68458
68459         * config/depcomp: update from automake.
68460
68461 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68462
68463         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68464         (strerror): Don't assume that a printable int fits in 14 bytes.
68465
68466 2003-07-31  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/getpass-gnu: New file.
68469         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68470
68471 2003-07-31  Bruno Haible  <bruno@clisp.org>
68472
68473         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68474
68475 2003-07-24  Karl Berry  <karl@gnu.org>
68476
68477         * config/missing: update from automake.
68478
68479 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68480             Bruno Haible  <bruno@clisp.org>
68481
68482         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68483         * lib/getline.c (getline, getdelim): Likewise.
68484         Remove _GNU_SOURCE define; now it's defined in config.h through
68485         m4/getline.m4.
68486
68487 2003-07-23  Karl Berry  <karl@gnu.org>
68488
68489         * config/config.sub: update from prep.
68490
68491 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68492
68493         * modules/xalloc (Depends-on): Add exitfail.
68494         * modules/xmemcoll: Likewise.
68495
68496 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68497
68498         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68499         over-parenthesization in macros.
68500
68501         Sync with coreutils.
68502
68503         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68504         required by C99.
68505
68506         Use `exit_failure' for xalloc and xmemcoll instead of their own
68507         private exit-failure variables.
68508         * lib/xalloc.h (xalloc_exit_failure): Remove.
68509         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68510         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68511         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68512         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68513         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68514
68515 2003-07-20  Jim Meyering  <jim@meyering.net>
68516
68517         * modules/closeout (Depends-on): Add exitfail.
68518         Suggestion from Bruno Haible.
68519
68520 2003-07-19  Karl Berry  <karl@gnu.org>
68521
68522         * config/config.sub: update from prep.
68523
68524 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68525
68526         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68527         Remove.
68528         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68529         to test that it can stand by itself.  Include "exitfail.h".
68530         Clients should set exit_failure instead.
68531         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68532
68533 2003-07-18  Bruno Haible  <bruno@clisp.org>
68534
68535         * modules/getndelim2: New file.
68536         * modules/getline: Share files with module getndelim2.
68537         * modules/getnline: Depend on getndelim2 instead of sharing files with
68538         it. Add getnline.c to lib_SOURCES.
68539         * MODULES.html.sh (func_all_modules): Add getndelim2.
68540
68541 2003-07-18  Bruno Haible  <bruno@clisp.org>
68542
68543         * m4/getndelim2.m4: New file.
68544         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68545         invoke gl_PREREQ_GETNDELIM2.
68546         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68547         gl_PREREQ_GETNDELIM2.
68548         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68549         gl_GETNDELIM2.
68550
68551 2003-07-18  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/getndelim2.h: New file.
68554         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68555         getndelim2.h.
68556         (getndelim2): Make non-static. Change return type to ssize_t.
68557         * lib/getline.h: Change argument names.
68558         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68559         * lib/getnline.c: Include getndelim2.h.
68560
68561 2003-07-18  Andreas Schwab  <schwab@suse.de>
68562
68563         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68564
68565 2003-07-17  Karl Berry  <karl@gnu.org>
68566
68567         * config/config.sub: update from prep.
68568
68569 2003-07-17  Bruno Haible  <bruno@clisp.org>
68570
68571         * modules/getnline: New file.
68572         * modules/getline: Add lib/getndelim2.c to source file list.
68573         * MODULES.html.sh (func_all_modules): Add getnline.
68574
68575 2003-07-17  Bruno Haible  <bruno@clisp.org>
68576
68577         * m4/getnline.m4: New file.
68578
68579 2003-07-17  Bruno Haible  <bruno@clisp.org>
68580
68581         * m4/Makefile.am.in: Remove file.
68582         * m4/Makefile.am: Remove file.
68583         * m4/Makefile.in: Remove file.
68584
68585 2003-07-17  Bruno Haible  <bruno@clisp.org>
68586
68587         * lib/getnline.h: New file.
68588         * lib/getnline.c: New file.
68589         * lib/getndelim2.c: New file, extracted from getline.c.
68590         (getndelim2): Renamed from getdelim2, with added nmax argument.
68591         * lib/getline.c: Include getndelim2.c.
68592         (getdelim2): Moved out to getndelim2.c.
68593         (getline, getdelim): Update.
68594
68595 2003-07-17  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/Makefile.am: Remove file.
68598         * lib/Makefile.in: Remove file.
68599
68600 2003-07-17  Bruno Haible  <bruno@clisp.org>
68601
68602         * configure.in: Remove file.
68603         * Makefile.in: Remove file.
68604
68605 2003-07-17  Bruno Haible  <bruno@clisp.org>
68606
68607         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68608
68609 2003-07-16  Karl Berry  <karl@gnu.org>
68610
68611         * config/srclist-update: was running fixlicense twice, which caused
68612                 texinfo.tex to be nullified for some reason.  Simplify,
68613                 $gplsrc is no longer needed as far as I can see?
68614
68615 2003-07-16  Jim Meyering  <jim@meyering.net>
68616
68617         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68618
68619 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68620
68621         * config/srclist.txt: Get the following files from gettext-runtime/intl
68622         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68623         ref-del.sin.  From Bruno Haible.
68624         * config/srclist-update (fixfile): Change grep pattern again, since the
68625         previous fix didn't work (there was another trailing $).  Use
68626         '[$]' to escape the $s.
68627
68628 2003-07-15  Karl Berry  <karl@gnu.org>
68629
68630         * lib/vasnprintf.c: update from gettext.
68631
68632 2003-07-15  Karl Berry  <karl@gnu.org>
68633
68634         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68635         gets expanded when surrounded by '$'.
68636
68637 2003-07-15  Jim Meyering  <jim@meyering.net>
68638
68639         * modules/save-cwd: Don't depend on error.  From Derek Price.
68640
68641 2003-07-15  Jim Meyering  <jim@meyering.net>
68642
68643         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68644
68645 2003-07-14  Simon Josefsson  <jas@extundo.com>
68646
68647         * modules/mempcpy: New file.
68648         * MODULES.html.sh (func_all_modules): Add mempcpy.
68649
68650 2003-07-14  Simon Josefsson  <jas@extundo.com>
68651
68652         * m4/mempcpy.m4: New file.
68653
68654 2003-07-14  Simon Josefsson  <jas@extundo.com>
68655
68656         * lib/mempcpy.h: New file.
68657         * lib/mempcpy.c: New file.
68658
68659 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68660
68661         * modules/getdate, modules/posixtm: Depend on mktime.
68662
68663 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68664
68665         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68666         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68667         unicodeio.c, unicodeio.h, unlocked-io.h:
68668         Switch from LGPL to GPL.
68669
68670 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68671
68672         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68673         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68674         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68675         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68676         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68677         updated automatically by ../config/srclist-update.  This changes
68678         their license from LPGL to GPL.
68679
68680 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68681
68682         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68683         assumed to refer to the root of the most recent stable gettext version.
68684         * config/srclistvars.sh: Add defaults for eggert.
68685         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68686         Match "This program" as well as "The program".  This is needed
68687         for gettext.
68688
68689 2003-07-14  Jim Meyering  <jim@meyering.net>
68690
68691         Don't emit diagnostics.  Let callers do that.
68692         * lib/save-cwd.c: Don't include "error.h".
68693         (save_cwd): Don't call error.  Ensure that errno is valid
68694         when returning nonzero.
68695
68696         * lib/save-cwd.h (restore_cwd): Update prototype.
68697         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68698         Simplify.  Don't call error upon failure.  Let callers do that.
68699         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68700         when auditing is enabled.  But don't bother updating the #if.
68701
68702 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68703
68704         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68705         it breaks C++ compilation.
68706         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68707
68708 2003-07-10  Simon Josefsson  <jas@extundo.com>
68709
68710         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68711
68712 2003-07-10  Jim Meyering  <jim@meyering.net>
68713
68714         * m4/clock_time.m4: Remove trailing blank.
68715         * m4/intmax_t.m4: Likewise.
68716
68717 2003-07-10  Jim Meyering  <jim@meyering.net>
68718
68719         * lib/vasnprintf.c: Remove trailing blanks.
68720         Make cpp indentation consistent.
68721
68722 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68723
68724         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68725         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68726         Switch from LGPL to GPL.
68727
68728 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68729
68730         * config/srclist.txt: Sort sublists.  Add
68731         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68732         that differ from gnulib for one reason or another; we'd like this list
68733         to be smaller but for now let's document what we have.
68734
68735 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68736
68737         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68738         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68739         and sweeter "eval x=$x".
68740         * config/srclist.txt: Get lib/argp* from glibc.
68741
68742 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68743
68744         * lib/mktime.c: Fix some boundary cases and remove need for floating
68745         point.
68746
68747         Issue a compile-time diagnostic if time_t is floating point, or if
68748         two's complement arithmetic is not in effect, or if arithmetic
68749         right shift does not propagate the sign.  These assumptions were
68750         all in the original code but they weren't checked.
68751
68752         (TIME_T_MIDPOINT, verify): New macros.
68753         (__isleap): Remove; it has integer overflow problems.
68754         (leapyear): New function, without those problems.
68755         (ydhms_tm_diff): Remove; splitting into two parts.
68756         (ydhms_diff): New function, containing the arithmetic part of
68757         the old ydhms_tm_diff function.  Issue a compile-time
68758         diagnostic if we are not using C99 integer division.
68759         Avoid casts when possible.
68760         (guess_time_tm): New function, containing the checking part of
68761         the old ydhms_tm_diff function.  Return the new value, rather than
68762         the difference between it and the old.  Accept a new argument T
68763         so that *T specifies the old value.  Check for overflow in the result.
68764
68765         (__mktime_internal): Use a time_t offset, not a long int offset.
68766         This undoes the 2003-06-04 change, which is no longer needed now
68767         that we have better overflow checking.
68768         (localtime_offset): Likewise.
68769
68770         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68771         and long are 64-bit but int is only 32-bit.
68772         (ydhms_diff): Use long int to store year1 and yday1.
68773         Issue a compile-time diagnostic if long int is not wide enough.
68774
68775         (__mktime_internal): Use long int to store adjusted year and yday.
68776         Use plain C rather than preprocessor commands, if that doesn't
68777         affect efficiency.
68778         Check for overflow (and try to repair) after each probe
68779         rather than checking only at the very end.  This avoids some bugs
68780         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68781         does not equal GMT offset at maximum time).
68782         Use integer to check for overflow rather than floating point; this
68783         is more portable to non-IEEE hosts, and is a tad faster.
68784         When we detect that we are oscillating between two values,
68785         don't check whether tm_isdst has the requested value, since
68786         we already know the answer.  When tm_isdst has the wrong value,
68787         use a different heuristic to find the right one, based on the
68788         extreme values actually observed in practice in tz2003a,
68789         rather than the (overly optimistic) "previous 3 calendar quarters".
68790
68791         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68792         "T const" to accommodate glibc style.
68793         (check_result): Use less-confusing report format.  "long" -> "long int.
68794         (main): Likewise.
68795         Don't loop if the iteration overflows time_t.
68796         Allow a negative step in the iteration.
68797
68798 2003-07-06  Karl Berry  <karl@gnu.org>
68799
68800         * config/depcomp: update from automake.
68801         * config/config.sub: update from prep.
68802
68803 2003-07-03  Karl Berry  <karl@gnu.org>
68804
68805         * config/config.guess: update from prep.
68806
68807 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68808
68809         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68810         xreadlink.c now includes it unconditionally.
68811
68812 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68813
68814         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68815         having it depend on HAVE_SYS_TYPES_H.
68816
68817 2003-07-01  Bruno Haible  <bruno@clisp.org>
68818
68819         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68820         <sys/types.h> should be sufficient.
68821         Reported by Paul Eggert.
68822
68823 2003-06-26  Karl Berry  <karl@gnu.org>
68824
68825         * config/depcomp: update from automake.
68826
68827 2003-06-26  Bruno Haible  <bruno@clisp.org>
68828
68829         * modules/human: Depend on module stdbool.
68830
68831 2003-06-25  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/readlink: New file.
68834         * modules/xreadlink: Depend on it.
68835         * MODULES.html.sh (func_all_modules): Add readlink.
68836
68837 2003-06-25  Bruno Haible  <bruno@clisp.org>
68838
68839         * m4/readlink.m4: New file.
68840
68841 2003-06-25  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/readlink.c: New file.
68844
68845 2003-06-22  Karl Berry  <karl@gnu.org>
68846
68847         * config/srclist.txt: update mkinstalldirs from automake.
68848         * config/mkinstalldirs: update.
68849
68850 2003-06-22  Bruno Haible  <bruno@clisp.org>
68851
68852         Portability to mingw32.
68853         * m4/ssize_t.m4: New file, from GNU gettext.
68854         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68855         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68856
68857 2003-06-22  Bruno Haible  <bruno@clisp.org>
68858
68859         * modules/safe-read: Add m4/ssize_t.m4.
68860         * modules/xreadlink: Add m4/ssize_t.m4.
68861
68862 2003-06-20  Bruno Haible  <bruno@clisp.org>
68863
68864         Assume C89, so PARAMS isn't needed.
68865         * lib/unicodeio.h (PARAMS): Remove.
68866         * lib/unicodeio.c: Don't use PARAMS.
68867
68868 2003-06-18  Karl Berry  <karl@gnu.org>
68869
68870         * config/config.{guess,sub}: update from prep.
68871
68872 2003-06-18  Jim Meyering  <jim@meyering.net>
68873
68874         Merge changes from coreutils.
68875         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68876         Remove explicit declarations of xmalloc and realloc.
68877         Include xalloc.h.
68878         (read_utmp): Remove anachronistic cast of xmalloc.
68879
68880 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68881
68882         Assume C89, so PARAMS isn't needed.
68883         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68884         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68885         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68886         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68887         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68888         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68889         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68890         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68891         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68892         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68893         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68894         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68895         no longer needed. Anyway, config.h should always be included before any
68896         other file.
68897
68898 2003-06-11  Simon Josefsson  <jas@extundo.com>
68899
68900         * modules/sysexits: New file.
68901         * MODULES.html.sh (func_all_modules): Add sysexits.
68902
68903 2003-06-11  Simon Josefsson  <jas@extundo.com>
68904
68905         * lib/sysexit_.h: New file.
68906
68907 2003-06-11  Derek Price  <derek@ximbiot.com>
68908
68909         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68910         necessary.
68911
68912 2003-06-11  Bruno Haible  <bruno@clisp.org>
68913
68914         * m4/sysexits.m4: New file.
68915
68916 2003-06-10  Simon Josefsson  <jas@extundo.com>
68917
68918         * lib/argp.h: New file, from glibc.
68919         * lib/argp-ba.c: New file, from glibc.
68920         * lib/argp-eexst.c: New file, from glibc.
68921         * lib/argp-fmtstream.c: New file, from glibc.
68922         * lib/argp-fmtstream.h: New file, from glibc.
68923         * lib/argp-fs-xinl.c: New file, from glibc.
68924         * lib/argp-help.c: New file, from glibc.
68925         * lib/argp-namefrob.h: New file, from glibc.
68926         * lib/argp-parse.c: New file, from glibc.
68927         * lib/argp-pv.c: New file, from glibc.
68928         * lib/argp-pvh.c: New file, from glibc.
68929         * lib/argp-xinl.c: New file, from glibc.
68930
68931 2003-06-10  Simon Josefsson  <jas@extundo.com>
68932
68933         * modules/strchrnul: New file.
68934
68935 2003-06-10  Simon Josefsson  <jas@extundo.com>
68936
68937         * modules/argp: New file.
68938
68939 2003-06-10  Simon Josefsson  <jas@extundo.com>
68940
68941         * m4/strchrnul.m4: New file.
68942
68943 2003-06-10  Simon Josefsson  <jas@extundo.com>
68944
68945         * lib/strchrnul.h: New file.
68946         * lib/strchrnul.c: New file.
68947
68948 2003-06-10  Bruno Haible  <bruno@clisp.org>
68949
68950         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68951
68952 2003-06-07  Karl Berry  <karl@gnu.org>
68953
68954         * config/config.{guess,sub}: update from prep.
68955
68956 2003-06-07  Jim Meyering  <jim@meyering.net>
68957
68958         * modules/strtod: Use $(...) notation, not @...@ for
68959         AC_REPLACE'd variables.
68960         * modules/localcharset: Likewise.
68961
68962 2003-06-07  Jim Meyering  <jim@meyering.net>
68963
68964         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68965         in place of my name in the copyright comment.
68966         Remove definition and uses of __P.
68967
68968         From coreutils.
68969         * lib/stat.c: Don't declare xmalloc explicitly.
68970         Instead, include "xalloc.h".
68971         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68972         xrealloc, and xcalloc return values.
68973         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68974         Improve comment.
68975         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68976
68977 2003-06-07  Bruno Haible  <bruno@clisp.org>
68978
68979         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68980         avoid AC_CONFIG_LINKS.
68981         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68982         fnmatch.h, to avoid AC_CONFIG_LINKS.
68983         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68984
68985 2003-06-07  Bruno Haible  <bruno@clisp.org>
68986
68987         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68988         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68989         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68990         directory.
68991         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68992         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68993         directory.
68994
68995 2003-06-06  Jim Meyering  <jim@meyering.net>
68996
68997         Merge from coreutils.
68998         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68999         Consolidate declarations and initializations of *_base* locals.
69000
69001         Merge from coreutils.
69002         This avoids a core dump on systems without GNU putenv,
69003         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69004         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69005         (unsetenv): New static function, from GNU libc.
69006         (rpl_putenv): Use it.
69007
69008         * lib/modechange.c: Remove trailing blanks.
69009
69010         Merge from coreutils.
69011         * lib/fsusage.c: Remove declaration of statfs.
69012         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69013
69014         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69015
69016 2003-06-06  Jim Meyering  <jim@meyering.net>
69017
69018         * lib/stdbool_.h: Renamed from stdbool.h.in.
69019
69020 2003-06-06  Jim Meyering  <jim@meyering.net>
69021             Bruno Haible  <bruno@clisp.org>
69022
69023         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69024         Adjust Makefile.am snippet not to redirect directly to target.
69025         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69026
69027 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69028
69029         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69030         mismatch, look in future quarters as well as past.  This fixes a
69031         bug when processing fall-backwards gaps immediately after a long
69032         period of daylight-saving time.
69033
69034         * lib/mktime.c: Assume freestanding C89 or better.
69035         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69036         (__P): Remove; not used.
69037         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69038         (mktime, not_equal_tm, print_tm, check_result,
69039         main): Use prototypes.  Use const * where appropriate.
69040         (main): Fix typo in testing code that uncovered by above changes.
69041         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69042
69043 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69044
69045         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69046         locale.h, localeconv.  This merges changes from coreutils.
69047
69048         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69049         It can be removed after the next Autoconf is released.
69050         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69051         needed.
69052
69053 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69054
69055         * lib/mktime.c: Fix Debian bug 177940
69056         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69057         (localtime_offset): Now long int, not time_t, because we want it
69058         to be guaranteed to be signed.  All uses changed.
69059         (__mktime_internal): If overflow would occur when adding offset,
69060         don't add it.
69061
69062         Merge 'human' changes from coreutils.  Rewrite to support
69063         locale-specific notations like thousands separators.
69064         * lib/human.c: Simplify authorship notice.
69065         Include human.h immediately after config.h.
69066         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69067         <limits.h>: Do not include, since human.h does.
69068         (SIZE_MAX, UINTMAX_MAX): New macros.
69069         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69070         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69071         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69072         (power_letter): Renamed from suffixes.
69073         (generate_suffix_backwards): Remove.
69074         (adjust_value): Now takes int style (because of human.h changes)
69075         and long double value (for greater precision on some platforms).
69076         (group_number): New function.
69077         (human_readable): Use it.  Use integer options, not enum.
69078         Put the options before the sizes in the arg list.
69079         Support all the new options.
69080         The old human_readable function has been removed;
69081         use inttostr.h instead.
69082         (human_readable, default_block_size, humblock):
69083         Use uintmax_t, not int, for block sizes.
69084         (human_readable_inexact, block_size_types): Remove.
69085         (block_size_opts): New constant.
69086         (human_options): Renamed from human_block_size, with new signature
69087         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69088         * lib/human.h: Add copyright and authorship notice.
69089         Include <limits.h> and <stdbool.h> unconditionally.
69090         (PARAMS): Remove.  All uses removed.
69091         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69092         (enum human_inexact_style): Remove tag; now a nameless enum.
69093         (human_floor, human_ceiling, human_round_to_even): Now have
69094         values 2, 0, 1 rather than -1, 1, 0.
69095         (human_group_digits, human_suppress_point_zero, human_autoscale,
69096         human_base_1024, human_SI, human_B): New constants.
69097         (human_readable_inexact, human_block_size): Remove.
69098         (human_readable): Size args are now uintmax_t, not int.
69099         (human_options): New decl.
69100
69101         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69102         unnecessary now that we assume C89 or better.  This change
69103         imported from coreutils.
69104
69105         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69106         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69107         in the 2003-05-30 sync from glibc.
69108
69109         .h files should stand alone, but we shouldn't include <sys/types.h>
69110         if we can get away with just <stddef.h>.
69111
69112         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69113         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69114         rather than <sys/types.h>, as we merely need size_t.
69115         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69116         to get size_t.
69117         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69118         Include <stdio.h>, to get FILE.
69119         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69120         memcasecmp.h has included <stddef.h> and all we need is size_t.
69121         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69122         our interface, instead of including <sys/types.h>
69123
69124 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69125
69126         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69127         now, as glibc mktime is buggy on non-glibc systems.
69128
69129 2003-06-03  Karl Berry  <karl@gnu.org>
69130
69131         * config/config.sub: update from prep.
69132
69133 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69134
69135         [from coreutils]
69136         Fix some minor time-related bugs with POSIX time arguments.
69137         Some valid time stamps were being rejected (notably -1, and
69138         time stamps before 1900 on 64-bit hosts).  And some invalid
69139         time stamps were being accepted, e.g. September 31.
69140
69141         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69142         that we can return (time_t) -1 successfully.
69143         * lib/posixtm.c: Likewise.
69144         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69145         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69146         (t): Remove static var.
69147         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69148         of static var.  All uses changed.
69149         (year): Do not reject years before 1900; they can occur with
69150         64-bit time_t.
69151         (posix_time_parse): Do not check for out-of-range components;
69152         that is now the caller's responsibility, since our checks were
69153         only approximations.
69154         (posixtime): Use mktime to check for out-of-range components,
69155         since it knows them exactly.
69156         If mktime returns (time_t) -1, check whether an error actually occurred
69157         by invoking localtime on -1.
69158         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69159         posixtime failures better.
69160         Improve the test data (in comments only).
69161
69162 2003-06-02  Karl Berry  <karl@gnu.org>
69163
69164         * config/mkinstalldirs (version): new variable.
69165         (--version): new option.
69166         (usage): improve message.
69167
69168 2003-05-30  Karl Berry  <karl@gnu.org>
69169
69170         * lib/mktime.c: update from libc.
69171
69172 2003-05-30  Bruno Haible  <bruno@clisp.org>
69173
69174         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69175         * config/config.rpath: Upgrade to gettext-0.12.1.
69176
69177 2003-05-30  Bruno Haible  <bruno@clisp.org>
69178
69179         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69180         * m4/nls.m4: New file, from gettext-0.12.1.
69181         * m4/po.m4: New file, from gettext-0.12.1.
69182         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69183
69184 2003-05-30  Bruno Haible  <bruno@clisp.org>
69185
69186         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69187         * lib/localcharset.h: Likewise.
69188         * lib/localcharset.c: Likewise.
69189
69190 2003-05-29  Karl Berry  <karl@gnu.org>
69191
69192         * config/config.rpath: update from gettext.
69193
69194 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69195
69196         Assume the headers required for C89 freestanding compilers.
69197         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69198         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69199         * m4/human.m4 (gl_HUMAN): Likewise.
69200         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69201         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69202         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69203         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69204         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69205         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69206
69207 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69208
69209         Assume the headers required for C89 freestanding compilers.
69210         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69211         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69212         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69213         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69214         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69215         define, since <limits.h> is guaranteed to do that.
69216         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69217         * lib/exclude.c: Include <stdbool.h> unconditionally.
69218         * lib/tempname.c: Include <stddef.h> unconditionally.
69219         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69220         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69221         <stddef.h> does that.
69222         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69223         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69224         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69225         needed.
69226         * lib/xstrtol.c: Likewise.
69227         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69228         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69229
69230         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69231         warnings on some platforms.
69232
69233         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69234         arbitrarily.
69235
69236 2003-05-26  Jim Meyering  <jim@meyering.net>
69237
69238         Merge in a change from coreutils:
69239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69240         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69241         that condition, rather than `-1' which is slightly misleading.
69242         Change the name of the cache variable to have the gl_ prefix.
69243         Prompted by a patch from Richard Dawe for DJGPP.
69244
69245 2003-05-24  Karl Berry  <karl@gnu.org>
69246
69247         * config/config.guess: update from prep.
69248
69249 2003-05-22  Karl Berry  <karl@gnu.org>
69250
69251         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69252
69253 2003-05-20  Karl Berry  <karl@gnu.org>
69254
69255         * config/config.guess: update from prep.
69256
69257 2003-05-18  Karl Berry  <karl@gnu.org>
69258
69259         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69260         might actually be set by the user.
69261
69262         * config/depcomp, install-sh, mdate-sh: update from automake.
69263
69264 2003-05-17  Bruno Haible  <bruno@clisp.org>
69265
69266         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69267         invalid expansion for AC_EGREP_CPP.
69268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69269         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69270         Suggested by Akim Demaille <akim@epita.fr> in
69271         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69272
69273 2003-05-12  Jim Meyering  <jim@meyering.net>
69274
69275         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69276         the space-padded-by-default conversion specifiers, %e, %k, %l.
69277
69278 2003-05-12  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69281         the string is longer than 4 KB.
69282
69283 2003-05-11  Karl Berry  <karl@gnu.org>
69284
69285         * config/config.{guess,sub}: update from prep.
69286
69287 2003-05-09  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/error: Add m4/strerror_r.m4 to file list.
69290
69291 2003-05-03  Bruno Haible  <bruno@clisp.org>
69292
69293         Upgrade to Unicode-4.0.
69294         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
69295         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
69296         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
69297         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
69298         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
69299         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
69300         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
69301         Change width of U+E0100..U+E01EF from 1 to 0.
69302
69303 2003-04-25  Jim Meyering  <jim@meyering.net>
69304
69305         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
69306         of type size_t, not int.
69307
69308 2003-04-25  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/copy-file.c: Include <stddef.h>, for size_t.
69311
69312 2003-04-21  Paul Eggert  <eggert@twinsun.com>
69313
69314         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
69315         code which expansion is under static control.  Patch imported from
69316         Akim Demaille's patch to Bison; see
69317         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
69318
69319 2003-04-14  Bruno Haible  <bruno@clisp.org>
69320
69321         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
69322
69323 2003-04-11  Jim Meyering  <jim@meyering.net>
69324
69325         Merge changes from Coreutils.
69326
69327         2003-03-22  Jim Meyering  <jim@meyering.net>
69328
69329         * lib/strftime.c (widen): Cast alloca return value to proper type.
69330
69331         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
69332
69333         From GNU libc.
69334         * lib/strftime.c (my_strftime): Handle very large width
69335         specifications for numeric values correctly.  Improve checks for
69336         overflow.
69337
69338         2003-01-19  Jim Meyering  <jim@meyering.net>
69339
69340         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69341         definitions.
69342         (nl_get_alt_digit) [! defined my_strftime]: Define.
69343         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69344         _nl_get_alt_digit and _nl_get_walt_digit.
69345
69346         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69347         libc. These changes have no effect outside of _LIBC.
69348
69349 2003-04-10  Bruno Haible  <bruno@clisp.org>
69350
69351         * modules/findprog: New file.
69352         * MODULES.html.sh (func_all_modules): Add it.
69353
69354 2003-04-10  Bruno Haible  <bruno@clisp.org>
69355
69356         * m4/findprog.m4: New file.
69357         * m4/eaccess.m4: New file.
69358
69359 2003-04-10  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/findprog.h: New file, from GNU gettext.
69362         * lib/findprog.c: New file, from GNU gettext.
69363
69364 2003-04-05  Jim Meyering  <jim@meyering.net>
69365
69366         Merge changes from Coreutils.
69367
69368         * lib/exclude.h (PARAMS): Remove definition and uses.
69369         * lib/exclude.c: Remove uses of `PARAMS'.
69370
69371         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69372         Add test-cases for DOS filenames. Declare program_name.
69373         (main): Set up program_name.  Patch by Rich Dawe.
69374
69375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69376         error from mntctl.
69377         Use mntctl's return value to drive the entry-processing loop, since
69378         we can't rely on the value of the vmt_length member in the last
69379         entry.  On some systems doing so could result in exhausting
69380         virtual memory.  Based in part on a patch from Mike Jetzer.
69381
69382 2003-04-04  Bruno Haible  <bruno@clisp.org>
69383
69384         * modules/linebreak: New file.
69385         * MODULES.html.sh (func_all_modules): Add it.
69386
69387 2003-04-04  Bruno Haible  <bruno@clisp.org>
69388
69389         * m4/linebreak.m4: New file.
69390
69391 2003-04-04  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/linebreak.h: New file, from GNU gettext.
69394         * lib/linebreak.c: New file, from GNU gettext with slight
69395         modifications.
69396         * lib/lbrkprop.h: New file, from GNU gettext.
69397
69398 2003-04-03  Bruno Haible  <bruno@clisp.org>
69399
69400         * modules/utf8-ucs4: New file.
69401         * modules/utf16-ucs4: New file.
69402         * modules/ucs4-utf8: New file.
69403         * modules/ucs4-utf16: New file.
69404         * MODULES.html.sh (func_all_modules): Add them.
69405
69406 2003-04-03  Bruno Haible  <bruno@clisp.org>
69407
69408         * m4/utf-ucs4.m4: New file.
69409         * m4/ucs4-utf.m4: New file.
69410
69411 2003-04-03  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/utf8-ucs4.h: New file, from GNU gettext.
69414         * lib/utf16-ucs4.h: New file, from GNU gettext.
69415         * lib/ucs4-utf8.h: New file, from GNU gettext.
69416         * lib/ucs4-utf16.h: New file, from GNU gettext.
69417
69418 2003-04-02  Bruno Haible  <bruno@clisp.org>
69419
69420         * modules/binary-io: New file.
69421         * MODULES.html.sh (func_all_modules): Add it.
69422
69423 2003-04-02  Bruno Haible  <bruno@clisp.org>
69424
69425         * lib/binary-io.h: New file, from GNU gettext.
69426
69427 2003-04-01  Bruno Haible  <bruno@clisp.org>
69428
69429         * modules/pathname: New file.
69430         * MODULES.html.sh (func_all_modules): Add it.
69431
69432 2003-04-01  Bruno Haible  <bruno@clisp.org>
69433
69434         * lib/pathname.h: New file, from GNU gettext.
69435         * lib/concatpath.c: New file, from GNU gettext.
69436
69437 2003-03-30  Bruno Haible  <bruno@clisp.org>
69438
69439         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69440
69441 2003-03-30  Bruno Haible  <bruno@clisp.org>
69442
69443         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69444         function chown() doesn't exist.
69445
69446 2003-03-28  Bruno Haible  <bruno@clisp.org>
69447
69448         * modules/copy-file: New file.
69449         * MODULES.html.sh (func_all_modules): Add it.
69450
69451 2003-03-28  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/copy-file.m4: New file.
69454
69455 2003-03-28  Bruno Haible  <bruno@clisp.org>
69456
69457         * lib/copy-file.h: New file, from GNU gettext.
69458         * lib/copy-file.c: New file, from GNU gettext.
69459
69460 2003-03-18  Jim Meyering  <jim@meyering.net>
69461
69462         * lib/quote.c (quote_n): Fix typo in comment.
69463
69464 2003-03-18  Bruno Haible  <bruno@clisp.org>
69465
69466         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69467         checking.
69468         * m4/onceonly_2_57.m4: Likewise.
69469
69470 2003-03-17  Bruno Haible  <bruno@clisp.org>
69471
69472         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69473         (m4_quote): Remove macro.
69474         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69475
69476 2003-03-14  Jim Meyering  <jim@meyering.net>
69477
69478         Merge changes from Coreutils.
69479         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69480         to be const, in order to avoid warnings.
69481         (obstack_room): Likewise.
69482         (obstack_empty_p): Likewise.
69483
69484 2003-03-14  Bruno Haible  <bruno@clisp.org>
69485
69486         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69487         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69488
69489 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69490
69491         Merge changes from Bison.
69492         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69493         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69494         when compiling Bison 1.875's `bitset bset = obstack_alloc
69495         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69496         * lib/hash.c: Include <stdbool.h> unconditionally.
69497
69498 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69499
69500         * m4/onceonly.m4 (m4_quote): New macro.
69501         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69502         Quote AC_FOREACH variable-expansions properly.
69503
69504 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69505
69506         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69507
69508 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69509
69510         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69511         Reported by Bruce Becker; see:
69512         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69513
69514 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69515             Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69518         Reported by John Hughes, see
69519         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69520
69521 2003-02-20  Bruno Haible  <bruno@clisp.org>
69522
69523         * MODULES.html.sh (func_all_modules): Add poll.
69524
69525 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69526
69527         * modules/poll: New file.
69528
69529 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69530
69531         * lib/poll_.h: New file.
69532         * lib/poll.c: New file.
69533
69534 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69535
69536         * m4/poll.m4: New file.
69537
69538 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69539
69540         * modules/mathl: New file.
69541
69542 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69543
69544         * lib/mathl.h: New file.
69545         * lib/acosl.c: New file.
69546         * lib/asinl.c: New file.
69547         * lib/atanl.c: New file.
69548         * lib/ceill.c: New file.
69549         * lib/cosl.c: New file.
69550         * lib/expl.c: New file.
69551         * lib/floorl.c: New file.
69552         * lib/frexpl.c: New file.
69553         * lib/ldexpl.c: New file.
69554         * lib/logl.c: New file.
69555         * lib/sincosl.c: New file.
69556         * lib/sinl.c: New file.
69557         * lib/sqrtl.c: New file.
69558         * lib/tanl.c: New file.
69559         * lib/trigl.c: New file.
69560         * lib/trigl.h: New file.
69561
69562 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69563
69564         * m4/mathl.m4: New file.
69565
69566 2003-02-18  Bruno Haible  <bruno@clisp.org>
69567
69568         * MODULES.html.sh (func_all_modules): Add mathl.
69569
69570 2003-02-17  Bruno Haible  <bruno@clisp.org>
69571
69572         * modules/mkdtemp: New module.
69573         * MODULES.html.sh (func_all_modules): Add it.
69574
69575 2003-02-17  Bruno Haible  <bruno@clisp.org>
69576
69577         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69578
69579 2003-02-17  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/mkdtemp.h: New file, from GNU gettext.
69582         * lib/mkdtemp.c: New file, from GNU gettext.
69583
69584 2003-02-02  Jim Meyering  <jim@meyering.net>
69585
69586         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69587         e.g. glibc-2.2.93.
69588
69589 2003-01-31  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69592         'rpl_rename'.
69593         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69594         'rpl_strnlen'.
69595         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69596         'rpl_strtod'.
69597         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69598         'rpl_utime'.
69599
69600 2003-01-31  Bruno Haible  <bruno@clisp.org>
69601
69602         * lib/rename.c: #undef rename before defining rpl_rename.
69603         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69604
69605 2003-01-30  Bruno Haible  <bruno@clisp.org>
69606
69607         * modules/vasnprintf, modules/vasprintf: New modules.
69608         * MODULES.html.sh (func_all_modules): Add them.
69609
69610 2003-01-30  Bruno Haible  <bruno@clisp.org>
69611
69612         * m4/signed.m4: New file, from GNU gettext.
69613         * m4/longdouble.m4: New file, from GNU gettext.
69614         * m4/wchar_t.m4: New file, from GNU gettext.
69615         * m4/wint_t.m4: New file, from GNU gettext.
69616         * m4/vasnprintf.m4: New file.
69617         * m4/vasprintf.m4: New file.
69618
69619 2003-01-30  Bruno Haible  <bruno@clisp.org>
69620
69621         * lib/printf-args.h: New file, from GNU gettext.
69622         * lib/printf-args.c: New file, from GNU gettext.
69623         * lib/printf-parse.h: New file, from GNU gettext.
69624         * lib/printf-parse.c: New file, from GNU gettext.
69625         * lib/vasnprintf.h: New file, from GNU gettext.
69626         * lib/vasnprintf.c: New file, from GNU gettext.
69627         * lib/asnprintf.c: New file, from GNU gettext.
69628         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69629         * lib/vasprintf.c: New file, from GNU gettext.
69630         * lib/asprintf.c: New file, from GNU gettext.
69631
69632 2003-01-29  Bruno Haible  <bruno@clisp.org>
69633
69634         * modules/stpncpy: New module.
69635         * MODULES.html.sh (func_all_modules): Add it.
69636
69637 2003-01-29  Bruno Haible  <bruno@clisp.org>
69638
69639         * m4/stpncpy.m4: New file.
69640
69641 2003-01-29  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69644         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69645
69646 2003-01-28  Bruno Haible  <bruno@clisp.org>
69647
69648         * modules/c-ctype: New module.
69649         * MODULES.html.sh (func_all_modules): Add it.
69650
69651 2003-01-28  Bruno Haible  <bruno@clisp.org>
69652
69653         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69654         Paul Eggert.
69655         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69656         Paul Eggert.
69657
69658 2003-01-27  Bruno Haible  <bruno@clisp.org>
69659
69660         * modules/xsetenv: New module.
69661         * MODULES.html.sh (func_all_modules): Add it.
69662
69663 2003-01-27  Bruno Haible  <bruno@clisp.org>
69664
69665         * lib/xsetenv.h: New file, from GNU gettext.
69666         * lib/xsetenv.c: New file, from GNU gettext.
69667
69668 2003-01-23  Jim Meyering  <jim@meyering.net>
69669
69670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69671         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69672
69673 2003-01-23  Bruno Haible  <bruno@clisp.org>
69674
69675         * modules/minmax: New module.
69676         * MODULES.html.sh (func_all_modules): Add it.
69677
69678 2003-01-23  Bruno Haible  <bruno@clisp.org>
69679
69680         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69681         Eggert.
69682
69683 2003-01-22  Bruno Haible  <bruno@clisp.org>
69684
69685         * modules/exit: New module.
69686         * MODULES.html.sh (func_all_modules): Add it.
69687
69688 2003-01-22  Bruno Haible  <bruno@clisp.org>
69689
69690         * lib/exit.h: New file, from GNU gettext.
69691
69692 2003-01-19  Bruno Haible  <bruno@clisp.org>
69693
69694         * gnulib-tool: Recognize option --extract-maintainer.
69695         (func_get_maintainer): New function.
69696         * modules/*: Add Maintainer entry.
69697
69698 2003-01-16  Jim Meyering  <jim@meyering.net>
69699
69700         * m4/regex.m4: The `regex' struct is both input and output.
69701         Initialize it before each use.  Patch by Tim Waugh.
69702
69703 2003-01-16  Bruno Haible  <bruno@clisp.org>
69704
69705         * MODULES.html.sh: Add a table of contents. Add the module name as
69706         leftmost column. Add hyperlinks.
69707
69708 2003-01-15  Bruno Haible  <bruno@clisp.org>
69709
69710         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69711
69712 2003-01-15  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69715         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69716         suffix.
69717
69718 2003-01-15  Bruno Haible  <bruno@clisp.org>
69719
69720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69721
69722 2003-01-15  Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69725         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69726
69727 2003-01-14  Jim Meyering  <jim@meyering.net>
69728
69729         * lib/same.c (same_name): Tweak a comment.
69730
69731 2003-01-14  Bruno Haible  <bruno@clisp.org>
69732
69733         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69734         when a string comparison is sufficient.
69735
69736 2003-01-14  Bruno Haible  <bruno@clisp.org>
69737
69738         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69739         'unsigned int'.
69740
69741 2003-01-14  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/hash-pjw.c: Add comment about low quality of this function.
69744
69745 2003-01-13  Bruno Haible  <bruno@clisp.org>
69746
69747         * modules/stpcpy: Distribute lib/stpcpy.h.
69748         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69749
69750 2003-01-13  Bruno Haible  <bruno@clisp.org>
69751
69752         * modules/*: Add a description.
69753         * modules/strpbrk: Fix Makefile.am snippet.
69754         * modules/strtoimax: Fix dependencies.
69755         * modules/strtoumax: Likewise.
69756
69757 2003-01-13  Bruno Haible  <bruno@clisp.org>
69758
69759         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69760         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69761         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69762
69763 2003-01-13  Bruno Haible  <bruno@clisp.org>
69764
69765         * gnulib-tool (func_create_testdir): Store config/* files in the main
69766         directory.
69767         * config.rpath: Move to ...
69768         * config/config.rpath: ... here.
69769         * modules/gettext: Contains config/config.rpath, not config.rpath.
69770         * modules/iconv: Likewise.
69771
69772 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69773
69774         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69775         to avoid collisions with libcurses and libreadline.
69776
69777         * m4/getstr.m4: Remove.
69778         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69779
69780 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69781
69782         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69783         to avoid collisions with libcurses and libreadline.
69784
69785         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69786         * lib/getstr.h, getstr.c: Remove.
69787         * lib/getline.c: Include "getline.h", to check interface.
69788         Move body of old getstr.c here: this defines MIN_CHUNK and
69789         declares getdelim2, which is renamed from getstr.
69790         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69791
69792         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69793         All uses changed.
69794         * lib/linebuffer.h: Likewise.
69795         (readline): Remove backward-compatibility macro.
69796
69797 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69798
69799         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69800         to avoid collisions with libcurses and libreadline.
69801         * getstr: Remove.
69802         * MODULES.html.sh: Remove getstr.
69803         * modules/getline: Depend on unlocked-io, not getstr.
69804
69805 2003-01-12  Jim Meyering  <jim@meyering.net>
69806
69807         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69808
69809 2003-01-10  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/alloca: Change Makefile.am requirements. Simplify Include
69812         requirements. Add lib/alloca_.h to file list.
69813
69814 2003-01-10  Bruno Haible  <bruno@clisp.org>
69815
69816         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69817
69818 2003-01-10  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/alloca_.h: New file.
69821         * lib/getdate.y: Unconditionally include alloca.h.
69822         * lib/makepath.c: Likewise.
69823         * lib/setenv.c: Likewise.
69824         * lib/userspec.c: Likewise.
69825
69826 2003-01-09  Karl Berry  <karl@gnu.org>
69827
69828         * MODULES.html.sh: include `dirname $0` in PATH, to find
69829         gnulib-tool.
69830
69831 2003-01-09  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69834         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69835
69836 2003-01-09  Bruno Haible  <bruno@clisp.org>
69837
69838         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69839
69840 2003-01-09  Bruno Haible  <bruno@clisp.org>
69841
69842         * lib/stdbool.h.in: New file.
69843
69844 2003-01-09  Bruno Haible  <bruno@clisp.org>
69845
69846         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69847         * MODULES.html.sh: Likewise.
69848
69849 2003-01-08  Jim Meyering  <jim@meyering.net>
69850
69851         * lib/full-write.c: Undefine and define-away `const' after inclusion
69852         of errno.h, not before.  Suggestion from Bruno Haible.
69853
69854 2003-01-08  Bruno Haible  <bruno@clisp.org>
69855
69856         * modules/full-read: Depend on full-write.
69857
69858 2003-01-08  Bruno Haible  <bruno@clisp.org>
69859
69860         * lib/safe-read.c: Include specification header first, to ensure its
69861         selfcontainedness.
69862         * lib/full-write.c: Likewise.
69863
69864 2003-01-07  Jim Meyering  <jim@meyering.net>
69865
69866         * lib/full-write.c: Rework so that it may serve to define full_read,
69867         too.
69868         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69869
69870 2003-01-07  Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69873         <inttypes.h>.
69874         * lib/xstrtol.h: Likewise.
69875         * lib/xstrtoimax.c: Likewise.
69876         * lib/xstrtoumax.c: Likewise.
69877         * lib/human.h: Likewise.
69878
69879         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69880         on systems that have <inttypes.h> but not <stdint.h>.
69881
69882 2003-01-07  Bruno Haible  <bruno@clisp.org>
69883
69884         * MODULES.html.sh: Add copyright notice.
69885         (missed_files): Omit CVS directory entries.
69886         (func_module): Make it work with sed-3.02.
69887         * MODULES.txt: Remove file.
69888
69889 2003-01-06  Jim Meyering  <jim@meyering.net>
69890
69891         * lib/version-etc.c: Update year in translatable copyright string.
69892
69893 2003-01-03  Karl Berry  <karl@gnu.org>
69894
69895         * config/config.{guess,sub}: update from prep.
69896
69897 2003-01-02  Karl Berry  <karl@gnu.org>
69898
69899         * doc/COPYING.DOC: belatedly updated to 1.2.
69900
69901 2003-01-01  Karl Berry  <karl@gnu.org>
69902
69903         * gnulib-tool (func_verify_module): report module name $module in
69904         error message, not $1.
69905         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69906         be created, only if it doesn't exist.
69907         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69908
69909 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69910
69911         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69912
69913 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69914
69915         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69916         memcmp if strcoll doesn't work.
69917
69918 2002-12-31  Bruno Haible  <bruno@clisp.org>
69919
69920         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69921         nonempty.
69922
69923 2002-12-31  Bruno Haible  <bruno@clisp.org>
69924
69925         * lib/memcoll.c (STRCOLL): New macro.
69926         (memcoll): Use it.
69927
69928 2002-12-31  Bruno Haible  <bruno@clisp.org>
69929
69930         * lib/localcharset.h: New file.
69931         * lib/localcharset.c: Include it.
69932         * lib/unicodeio.c: Likewise.
69933
69934 2002-12-31  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69937         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69938
69939 2002-12-31  Bruno Haible  <bruno@clisp.org>
69940
69941         * lib/getline.h: Include <stddef.h>, for size_t.
69942
69943         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69944         * lib/unicodeio.c: Don't include <stddef.h>.
69945
69946 2002-12-31  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69949         HAVE_TM_ZONE.
69950
69951 2002-12-24  Karl Berry  <karl@gnu.org>
69952
69953         * config/config.guess: update from prep.
69954
69955 2002-12-24  Bruno Haible  <bruno@clisp.org>
69956
69957         General infrasructure.
69958         * m4/README: Rewritten.
69959         * m4/onceonly.m4: New file.
69960         * m4/onceonly_2_57.m4: New file.
69961
69962         Module atexit.
69963         * m4/atexit.m4: New file.
69964
69965         Module strtod.
69966         * m4/strtod.m4: New file.
69967
69968         Module strtol.
69969         * m4/strtol.m4: New file.
69970
69971         Module strtoul.
69972         * m4/strtoul.m4: New file.
69973
69974         Module memchr.
69975         * m4/memchr.m4: New file.
69976
69977         Module memcmp.
69978         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69979         (jm_FUNC_MEMCMP): Invoke it.
69980
69981         Module memcpy.
69982         * m4/memcpy.m4: New file.
69983
69984         Module memmove.
69985         * m4/memmove.m4: New file.
69986
69987         Module memset.
69988         * m4/memset.m4: New file.
69989
69990         Module strcspn.
69991         * m4/strcspn.m4: New file.
69992
69993         Module strpbrk.
69994         * m4/strpbrk.m4: New file.
69995
69996         Module strstr.
69997         * m4/strstr.m4: New file.
69998
69999         Module strerror.
70000         * m4/strerror.m4: New file.
70001
70002         Module mktime.
70003         * m4/mktime.m4: Renamed from jm-mktime.m4.
70004         (gl_PREREQ_MKTIME): New macro.
70005         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70006
70007         Module malloc.
70008         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70009         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70010         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70011
70012         Module realloc.
70013         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70014         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70015         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70016
70017         Module strftime.
70018         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70019         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70020         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70021         gl_TM_GMTOFF.
70022         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70023
70024         Module xalloc.
70025         * m4/xalloc.m4: New file.
70026
70027         Module alloca.
70028         * m4/alloca.m4: New file.
70029
70030         Module putenv.
70031         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70032         (jm_FUNC_PUTENV): Invoke it.
70033
70034         Module setenv.
70035         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70036         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70037         when invoked twice.
70038         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70039         gt_FUNC_SETENV.
70040
70041         Module memrchr.
70042         * m4/memrchr.m4: New file.
70043
70044         Module stpcpy.
70045         * m4/stpcpy.m4: New file.
70046
70047         Module strcase.
70048         * m4/strcase.m4: New file.
70049
70050         Module strdup.
70051         * m4/strdup.m4: New file.
70052
70053         Module strnlen.
70054         * m4/strnlen.m4: New file.
70055
70056         Module strndup.
70057         * m4/strndup.m4: New file.
70058
70059         Module xstrtod.
70060         * m4/xstrtod.m4: New file.
70061
70062         Module xstrtol.
70063         * m4/xstrtol.m4: New file.
70064
70065         Module getdate.
70066         * m4/getdate.m4: New file.
70067
70068         Module unlocked-io.
70069         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70070         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70071         * m4/jm-glibc-io.m4n: Remove file.
70072
70073         Module long-options.
70074         * m4/long-options.m4: New file.
70075
70076         Module md5.
70077         * m4/md5.m4: New file.
70078
70079         Module sha.
70080         * m4/sha.m4: New file.
70081
70082         Module getstr.
70083         * m4/getstr.m4: New file.
70084
70085         Module getline.
70086         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70087         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70088         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70089         simply getline. Infoke gl_PREREQ_GETLINE.
70090
70091         Module obstack.
70092         * m4/obstack.m4: New file.
70093
70094         Module hash.
70095         * m4/hash.m4: New file.
70096
70097         Module readtokens.
70098         * m4/readtokens.m4: New file.
70099
70100         Module strverscmp.
70101         * m4/strverscmp.m4: New file.
70102
70103         Module stdbool.
70104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70105         OSF/1.
70106
70107         Module strtoll.
70108         * m4/strtoll.m4: New file.
70109
70110         Module strtoull.
70111         * m4/strtoull.m4: New file.
70112
70113         Module strtoimax.
70114         * m4/strtoimax.m4: New file.
70115
70116         Module strtoumax.
70117         * m4/strtoumax.m4: New file.
70118
70119         Module xstrtoimax.
70120         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70121         jm_AC_PREREQ_XSTRTOIMAX.
70122         Moved the strtol prerequisites to strtol.m4.
70123         Moved the strtoll prerequisites to strtoll.m4.
70124         Moved the strtoimax prerequisites to strtoimax.m4.
70125
70126         Module xstrtoumax.
70127         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70128         jm_AC_PREREQ_XSTRTOUMAX.
70129         Moved the strtoul prerequisites to strtoul.m4.
70130         Moved the strtoull prerequisites to strtoull.m4.
70131         Moved the strtoumax prerequisites to strtoumax.m4.
70132
70133         Module chown.
70134         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70135         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70136
70137         Module dup2.
70138         * m4/dup2.m4: New file.
70139
70140         Module ftruncate.
70141         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70142         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70143
70144         Module getgroups.
70145         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70146         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70147
70148         Module gettimeofday.
70149         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70150         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70151         gl_PREREQ_GETTIMEOFDAY.
70152
70153         Module mkdir.
70154         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70155         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70156
70157         Module mkstemp.
70158         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70159         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70160         jm_AC_TYPE_UINTMAX_T.
70161         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70162
70163         Module stat.
70164         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70165         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70166
70167         Module lstat.
70168         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70169         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70170
70171         Module timespec.
70172         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70173         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70174         * m4/st_mtim.m4: Indentation.
70175
70176         Module nanosleep.
70177         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70178         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70179         gl_PREREQ_NANOSLEEP.
70180
70181         Module regex.
70182         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70183         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70184         (gl_REGEX): New macro.
70185
70186         Module rename.
70187         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70188         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70189
70190         Module rmdir.
70191         * m4/rmdir.m4: New file.
70192
70193         Module utime.
70194         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70195         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70196         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70197
70198         Module dirname.
70199         * m4/dirname.m4: New file.
70200
70201         Module getopt.
70202         * m4/getopt.m4: New file.
70203
70204         Module unistd-safer.
70205         * m4/unistd-safer.m4: New file.
70206
70207         Module fnmatch.
70208         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70209         declaration.
70210         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70211         (gl_FUNC_FNMATCH_POSIX): New macro.
70212         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70213         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70214         simply fnmatch.
70215
70216         Module exclude.
70217         * m4/exclude.m4: New file.
70218
70219         Module human.
70220         * m4/human.m4: New file.
70221
70222         Module acl.
70223         * m4/acl.m4: Nop.
70224
70225         Module backupfile.
70226         * m4/backupfile.m4: New file.
70227         * m4/d-ino.m4: Indentation.
70228
70229         Module fsusage.
70230         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70231         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70232         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70233
70234         Module dirfd.
70235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70236         requirements.
70237
70238         Module euidaccess.
70239         * m4/euidaccess.m4: New file.
70240
70241         Module file-type.
70242         * m4/file-type.m4: New file.
70243
70244         Module fileblocks.
70245         * m4/fileblocks.m4: New file.
70246
70247         Module filemode.
70248         * m4/filemode.m4: New file.
70249
70250         Module isdir.
70251         * m4/isdir.m4: New file.
70252
70253         Module lchown.
70254         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70255         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70256
70257         Module makepath.
70258         * m4/makepath.m4: New file.
70259
70260         Module modechange.
70261         * m4/modechange.m4: New file.
70262
70263         Module mountlist.
70264         * m4/mountlist.m4: New file.
70265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70266         Indentation.
70267
70268         Module path-concat.
70269         * m4/path-concat.m4: New file.
70270
70271         Module pathmax.
70272         * m4/pathmax.m4: New file.
70273
70274         Module same.
70275         * m4/same.m4: New file.
70276
70277         Module save-cwd.
70278         * m4/save-cwd.m4: New file.
70279
70280         Module savedir.
70281         * m4/savedir.m4: New file.
70282
70283         Module xgetcwd.
70284         * m4/xgetcwd.m4: New file.
70285         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70286
70287         Module xreadlink.
70288         * m4/xreadlink.m4: New file.
70289
70290         Module safe-read.
70291         * m4/safe-read.m4: New file.
70292
70293         Module safe-write.
70294         * m4/safe-write.m4: New file.
70295
70296         Module closeout.
70297         * m4/closeout.m4: New file.
70298
70299         Module stdio-safer.
70300         * m4/stdio-safer.m4: New file.
70301
70302         Module getpass.
70303         * m4/getpass.m4: New file.
70304
70305         Module getugroups.
70306         * m4/getugroups.m4: New file.
70307
70308         Module group-member.
70309         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
70310         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
70311
70312         Module idcache.
70313         * m4/idcache.m4: New file.
70314
70315         Module userspec.
70316         * m4/userspec.m4: New file.
70317
70318         Module gettime.
70319         * m4/clock_time.m4: New file.
70320         * m4/gettime.m4: New file.
70321
70322         Module settime.
70323         * m4/settime.m4: New file.
70324
70325         Module posixtm.
70326         * m4/posixtm.m4: New file.
70327
70328         Module gethostname.
70329         * m4/gethostname.m4: New file.
70330
70331         Module canon-host.
70332         * m4/canon-host.m4: New file.
70333
70334         Module gettext.
70335         * m4/codeset.m4: New file, from gettext-0.11.5.
70336         * m4/gettext.m4: New file, from gettext-0.11.5.
70337         * m4/glibc21.m4: New file, from gettext-0.11.5.
70338         * m4/iconv.m4: New file, from gettext-0.11.5.
70339         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70340         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70341         * m4/inttypes.m4: New file, from gettext-0.11.5.
70342         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70343         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70344         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70345         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70346         * m4/lib-link.m4: New file, from gettext-0.11.5.
70347         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70348         * m4/progtest.m4: New file, from gettext-0.11.5.
70349         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70350         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70351         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70352
70353         Module localcharset.
70354         * m4/localcharset.m4: New file.
70355
70356         Module hard-locale.
70357         * m4/hard-locale.m4: New file.
70358
70359         Module mbswidth.
70360         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70361         onceonly macros.
70362         * m4/mbrtowc.m4: Add comment.
70363
70364         Module memcasecmp.
70365         * m4/memcasecmp.m4: New file.
70366
70367         Module memcoll.
70368         * m4/memcoll.m4: New file.
70369
70370         Module unicodeio.
70371         * m4/unicodeio.m4: New file.
70372
70373         Module rpmatch.
70374         * m4/rpmatch.m4: New file.
70375
70376         Module yesno.
70377         * m4/yesno.m4: New file.
70378
70379         Module exitfail.
70380         * m4/exitfail.m4: New file.
70381
70382         Module c-stack.
70383         * m4/c-stack.m4 (gl_C_STACK): New macro.
70384         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70385
70386         Module error.
70387         * m4/error.m4 (gl_ERROR): New macro.
70388         (jm_PREREQ_ERROR): Use onceonly macros.
70389
70390         Module fatal.
70391         * m4/fatal.m4: New file.
70392
70393         Module getloadavg.
70394         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70395         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70396
70397         Module getpagesize.
70398         * m4/getpagesize.m4: New file.
70399
70400         Module getusershell.
70401         * m4/getusershell.m4: New file.
70402
70403         Module physmem.
70404         * m4/physmem.m4: New file.
70405
70406         Module posixver.
70407         * m4/posixver.m4: New file.
70408
70409         Module quotearg.
70410         * m4/quotearg.m4: New file.
70411
70412         Module quote.
70413         * m4/quote.m4: New file.
70414
70415         Module readutmp.
70416         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70417
70418         Module sig2str.
70419         * m4/sig2str.m4: New file.
70420
70421         Other.
70422         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70423         ulonglong.m4.
70424         * m4/intmax_t.m4: New file.
70425         * m4/d-type.m4: Indentation.
70426         * m4/jm-macros.m4: Update.
70427         * m4/prereq.m4 (jm_PREREQ): Update.
70428         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70429         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70430         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70431         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70432         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70433         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70434         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70435         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70436         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70437         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70438         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70439         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70440         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70441         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70442         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70443         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70444         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70445         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70446         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70447
70448 2002-12-24  Bruno Haible  <bruno@clisp.org>
70449
70450         * MODULES.txt: Update according to m4/ changes.
70451
70452         Module gettext.
70453         * config.rpath: New file, from gettext-0.11.5.
70454
70455         * modules/*: New module descriptions.
70456         * gnulib-tool: New file.
70457         * MODULES.html.sh: New file.
70458
70459 2002-12-21  Karl Berry  <karl@gnu.org>
70460
70461         * doc/fdl.texi: update to version 1.2.
70462
70463 2002-12-19  Karl Berry  <karl@gnu.org>
70464
70465         * config/config.guess: update from prep.
70466
70467 2002-12-18  Bruno Haible  <bruno@clisp.org>
70468
70469         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70470         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70471
70472 2002-12-17  Bruno Haible  <bruno@clisp.org>
70473
70474         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70475         stdlib.h, string.h.
70476
70477 2002-12-17  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/canon-host.c (strdup): Remove unused declaration.
70480
70481         * lib/fsusage.c: Include full_read.h.
70482         (get_fs_usage): Use full_read instead of safe_read.
70483
70484         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70485
70486 2002-12-12  Karl Berry  <karl@gnu.org>
70487
70488         * config/config.guess: update from prep.
70489
70490 2002-12-11  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/setenv.m4: New file, from gettext-0.11.5.
70493
70494 2002-12-11  Bruno Haible  <bruno@clisp.org>
70495
70496         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70497         not unsetenv().
70498         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70499         modifications:
70500
70501         2002-12-11  Bruno Haible  <bruno@clisp.org>
70502
70503                 * setenv.c (alloca): Fall back to malloc.
70504                 (freea): New macro.
70505                 (setenv): Use freea() to free memory allocated with alloca().
70506
70507         2002-11-13  Bruno Haible  <bruno@clisp.org>
70508
70509                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70510                 function declarations.
70511                 * unsetenv.c (unsetenv): Likewise.
70512
70513         2002-03-04  Bruno Haible  <bruno@clisp.org>
70514
70515                 Portability to AIX 4.3.3.
70516                 * unsetenv.c: New file, extracted from setenv.c.
70517                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70518
70519         2001-12-20  Bruno Haible  <bruno@clisp.org>
70520
70521                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70522                 use malloc instead. For SunOS 4.
70523
70524         2001-12-11  Bruno Haible  <bruno@clisp.org>
70525
70526                 * setenv.c: Declare alloca.
70527                 (compar_fn_t): New typedef.
70528                 (KNOWN_VALUE, STORE_VALUE): Use it.
70529
70530         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70531         setenv.h.
70532
70533 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70534
70535         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70536         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70537         Choose values that are less likely to collide with system fnmatch
70538         options.
70539         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70540         defined (e.g., a pure POSIX system).
70541         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70542         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70543
70544 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70545
70546         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70547         a pain in practice to deal with generated m4 files.  This change
70548         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70549
70550         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70551         and jm-glibc-io.m4, as they are no longer a special case.
70552         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70553         kludge and the auto-generation stuff.  Check only whether the
70554         functions are declared, not whether they exist, since older hosts
70555         that don't declare the functions can't use the optimization anyway.
70556
70557 2002-12-06  Jim Meyering  <jim@meyering.net>
70558
70559         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70560
70561         Merge in changes from libc's misc/error.c, in preparation
70562         for the merge of gnulib's changes back into libc.
70563
70564         * lib/error.c (_): Define only if not already defined.
70565         Move definition to follow all #include directives.
70566         Include unlocked-io.h only if !_LIBC.
70567         [_LIBC]: Include <libio/libioP.h>.
70568         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70569         (fflush): Tweak definition to use INTUSE.
70570         (putc): Define.
70571
70572 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70573
70574         * lib/alloca.c [defined emacs]: Include "lisp.h".
70575         (xalloc_die) [defined emacs]: New macro.
70576         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70577         [! defined emacs]: Include <xalloc.h>.
70578         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70579         (pointer): Typedef to POINTER_TYPE *.
70580         (malloc): Remove decl; we now always use xmalloc.
70581         (alloca): Use old-style definition, since Emacs needs this.
70582         Check for arithmetic overflow when computing combined size.
70583
70584 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70585
70586         Do not generate unlocked-io.h automatically, since it's easier to
70587         maintain it by hand.
70588
70589         * lib/unlocked-io.h: New file, from GNU diffutils,
70590         but with proper copyright notice and attribution.
70591         * lib/gen-uio: Remove.
70592         * lib/Makefile.am: Add copyright notice.
70593         (libfetish_a_SOURCES): Add unlocked-io.h.
70594         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70595         (DISTCLEANFILES, io_functions): Remove macros.
70596         (EXTRA_DIST): Remove gen_uio.
70597         (unlocked-io.h): Remove rule.
70598
70599 2002-12-04  Jim Meyering  <jim@meyering.net>
70600
70601         Reflect the fact that stat.c and lstat.c are no longer generated.
70602         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70603         (DISTCLEANFILES): Likewise.
70604         (EXTRA_DIST): Likewise.
70605         (all_local): Don't depend on stat.c or lstat.c.
70606         (stat.c, lstat.c): Remove rules.
70607         (EXTRA_DIST): Remove xstat.in.
70608
70609         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70610         * lib/stat.c: New file.  Contents mostly from xstat.in.
70611         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70612         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70613
70614         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70615         too.
70616         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70617
70618 2002-12-03  Jim Meyering  <jim@meyering.net>
70619
70620         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70621         but not semantics, to minimize the differences between these two files.
70622         (safe_read): Change comment to mention SAFE_READ_ERROR.
70623
70624         * lib/safe-read.c (IS_EINTR): Define.
70625         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70626
70627 2002-12-02  Jim Meyering  <jim@meyering.net>
70628
70629         * lib/safe-read.c (EINTR): Define.
70630         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70631         (INT_MAX): Provide fallback.
70632         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70633
70634         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70635
70636 2002-12-02  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70639         Define, taken from safe-read.c.
70640         (INT_MAX): Provide fallback.
70641         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70642         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70643
70644         * lib/safe-read.c (EINTR): Remove definition.
70645         (safe_read): Don't use EINTR if it is absent.
70646
70647 2002-12-01  Jim Meyering  <jim@meyering.net>
70648
70649         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70650         zero.
70651         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70652
70653 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70654
70655         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70656         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70657         with `if (! (value < limit)) abort ();', for readability.
70658
70659 2002-11-26  Karl Berry  <karl@gnu.org>
70660
70661         * lib/strdup.c: copy from libc again, with jim's ok.
70662         * lib/.cppi-disable: re-add strdup.c
70663
70664 2002-11-25  Karl Berry  <karl@gnu.org>
70665
70666         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70667         instead of "strtol.c".
70668
70669 2002-11-25  Karl Berry  <karl@gnu.org>
70670
70671         * config/install-sh: update from automake for variable quoting, $0 in
70672         error msgs, etc.
70673
70674         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70675         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70676         entry.
70677
70678 2002-11-25  Jim Meyering  <jim@meyering.net>
70679
70680         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70681
70682 2002-11-24  Karl Berry  <karl@gnu.org>
70683
70684         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70685         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70686
70687 2002-11-24  Jim Meyering  <jim@meyering.net>
70688
70689         Update from coreutils:
70690
70691         * lib/mktime.c: Merge in changes from libc.
70692
70693         Avoid a link-time failure on some Linux systems.
70694         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70695         (otherwise).
70696         (__mon_yday): Declare with the STATIC attribute.
70697         (__mktime_internal): Likewise.
70698         Based on a report from Greg Schafer.
70699
70700 2002-11-23  Jim Meyering  <jim@meyering.net>
70701
70702         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70703         Use `unsigned', not `int', as type of index.
70704
70705         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70706
70707         * lib/fsusage.c: Remove unneeded parentheses around operands of
70708         `defined'.
70709
70710 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70711
70712         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70713         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70714         so that we can be included first.
70715         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70716         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70717         No need to include stddef.h or sys/types.h any more.
70718         Surround local include files with "", not "<>".
70719         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70720         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70721         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70722         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70723         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70724         (ISPRINT): Remove; no longer needed now that we assume C89.
70725
70726         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70727         Preserve errno.
70728
70729         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70730         quotearg_char): Use SIZE_MAX rather than
70731         (size_t) -1 when we are talking about "infinity".
70732
70733         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70734
70735 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70736
70737         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70738         hint that one should use `if (! x) abort ();' rather than `assert
70739         (x);', and anyway it's one less thing to worry about configuring.
70740         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70741         hash_rehash, hash_insert): Use abort rather than assert.
70742
70743 2002-11-22  Bruno Haible  <bruno@clisp.org>
70744
70745         * lib/safe-read.h: Assume C89. Add comments.
70746         (safe_read): Change return type to size_t.
70747         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70748         byte counts > SSIZE_MAX correctly.
70749         * lib/safe-write.h: New file.
70750         * lib/safe-write.c: New file.
70751         * lib/full-read.h: New file.
70752         * lib/full-read.c: New file.
70753         * lib/full-write.h: Assume C89. Add comments.
70754         * lib/full-write.c: Include safe-write.h.
70755         (full_write): Rewritten to use safe_write.
70756         Suggested by Jim Meyering and Paul Eggert.
70757
70758 2002-11-21  Jim Meyering  <jim@meyering.net>
70759
70760         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70761
70762         Merge in changes from the coreutils.
70763
70764         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70765         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70766         <stdint.h>.
70767         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70768         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70769         int.  Work more efficiently if X is the same width as uintmax_t.
70770         Do not compare X to -1, to avoid bogus compiler warning.
70771         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70772         Don't assume that f_frsize and f_bsize are the same type.
70773
70774         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70775         warning on FreeBSD.
70776
70777         * lib/makepath.c (make_path): Restore umask *before* creating the final
70778         component.
70779         (make_path): Minor reformatting.
70780
70781         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70782         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70783         HAVE_MALLOC/HAVE_REALLOC.
70784
70785         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70786         dummy ones.  At least on GNU/Linux systems, `auto' means something
70787         else.
70788         From Michael Stone.
70789
70790 2002-11-21  Bruno Haible  <bruno@clisp.org>
70791
70792         Remove case insensitive option matching.
70793         * lib/argmatch.h (argcasematch): Remove declaration.
70794         (ARGCASEMATCH): Remove macro.
70795         (__xargmatch_internal): Remove case_sensitive argument.
70796         (XARGMATCH): Update.
70797         (XARGCASEMATCH): Remove macro.
70798         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70799         case_sensitive argument.
70800         (argcasematch): Remove function.
70801         (__xargmatch_internal): Remove case_sensitive argument.
70802         (main): Use XARGMATCH instead of XARGCASEMATCH.
70803
70804         * lib/xmalloc.c: Change compile-time error message. Add comment about
70805         required autoconf version.
70806
70807 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70808
70809         Merge argmatch cleanups from Bison.  Assume C89.
70810
70811         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70812         Include stdlib.h, for EXIT_FAILURE.
70813         Always include <string.h>, since we assume C89.
70814         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70815         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70816         Include <stddef.h> instead, since it's all we need for size_t.
70817         (PARAMS): Remove.  All uses removed.
70818         (ARRAY_CARDINALITY): Do not bother to #undef.
70819         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70820         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70821         Remove unnecessary parentheses.
70822         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70823         Insert necessary parentheses.
70824         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70825         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70826
70827 2002-11-19  Bruno Haible  <bruno@clisp.org>
70828
70829         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70830         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70831
70832         * lib/mbswidth.h (PARAMS): Remove macro.
70833         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70834         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70835
70836         * lib/gcd.h (PARAMS): Remove macro.
70837         (gcd): Use ANSI C function declarations.
70838         * lib/gcd.c (gcd): Likewise.
70839
70840 2002-11-15  Bruno Haible  <bruno@clisp.org>
70841
70842         * lib/strcspn.c: Include <stddef.h>.
70843         (strcspn): Use ANSI C function declaration. Change return type to
70844         size_t. Use NULL.
70845         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70846         (strpbrk): Use NULL.
70847         * lib/strpbrk.h (PARAMS): Remove macro.
70848         (strpbrk): Use ANSI C function declaration.
70849         * lib/strstr.c: Don't include <sys/types.h>.
70850         * lib/strstr.h (PARAMS): Remove macro.
70851         (strstr): Use ANSI C function declarations.
70852
70853 2002-11-14  Karl Berry  <karl@gnu.org>
70854
70855         * config/mkinstalldirs: `do' on separate line, instead of
70856         `for var; do'.
70857
70858 2002-11-06  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70861         * lib/gcd.c (gcd): Likewise.
70862
70863 2002-11-05  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/gcd.h: New file, from gettext-0.11.5.
70866         * lib/gcd.c: New file, from gettext-0.11.5.
70867
70868 2002-11-05  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70871         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70872         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70873         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70874
70875         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70876         <libintl.h>.
70877         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70878         <libintl.h>.
70879
70880         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70881         * lib/human.c: Include gettext.h instead of <libintl.h>.
70882         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70883         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70884         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70885         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70886         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70887         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70888         (textdomain): Remove definition.
70889         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70890
70891         * lib/long-options.c: Remove include of <libintl.h> and definition of
70892         _.
70893         * lib/same.c: Remove include of <libintl.h> and definition of _.
70894
70895 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70896
70897         * lib/config.charset: A few additions for Solaris.
70898
70899 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70900
70901         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70902         * lib/localcharset.c (locale_charset): Declare as extern "C".
70903
70904 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70905
70906         * lib/config.charset: msdos in uk_UA uses CP1125.
70907
70908 2002-11-04  Bruno Haible  <bruno@clisp.org>
70909
70910         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70911         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70912         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70913         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70914         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70915
70916 2002-11-04  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/localcharset.c (locale_charset): Don't return an empty string.
70919
70920 2002-11-04  Bruno Haible  <bruno@clisp.org>
70921
70922         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70923         aliases.
70924
70925 2002-11-04  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/config.charset: Update for newest glibc. Add canonical names
70928         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70929
70930 2002-11-04  Bruno Haible  <bruno@clisp.org>
70931
70932         * lib/config.charset: Add support for NetBSD.
70933
70934 2002-11-04  Bruno Haible  <bruno@clisp.org>
70935
70936         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70937
70938 2002-11-01  Bruno Haible  <bruno@clisp.org>
70939
70940         * configure.in: Add AC_CONFIG_AUX_DIR call.
70941         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70942         test/Makefile.
70943         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70944
70945 2002-09-28  Karl Berry  <karl@gnu.org>
70946
70947         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70948         installed automake until the next release, since changes have been
70949         made.
70950
70951 2002-09-25  Karl Berry  <karl@gnu.org>
70952
70953         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70954         * lib/getopt*: copy from libc/posix.
70955         * lib/gettext.h: copy from gettext.
70956         * lib/.cppi-disable: add strdup.c, gettext.h.
70957
70958 2002-09-25  Karl Berry  <karl@gnu.org>
70959
70960         * config/srclist.txt: enable gettext.h check.
70961         * config/config.{guess,sub}: update from prep.
70962         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70963                 from automake 1.6.3.
70964         See srclist*.
70965
70966 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70967
70968         * regex.c (PATFETCH): Remove the translating fetch.
70969         (PATFETCH_RAW): Rename to PATFETCH.
70970         (set_image_of_range): New fun.
70971         (SET_RANGE_TABLE_WORK_AREA): Use it.
70972         (regex_compile): Don't translate the pattern chars so eagerly.
70973         Only do it when inserting an `exactn' bytecode or when handling
70974         a char-range.
70975         (mutually_exclusive_p): Avoid empty statement.
70976
70977 2002-07-06  Jim Meyering  <meyering@lucent.com>
70978
70979         * m4/README: Don't mention Makefile.am.in.
70980         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70981
70982 2002-07-01  Jim Meyering  <meyering@lucent.com>
70983
70984         * lib/c-stack.c: Include sys/time.h.
70985         From Volker Borchert.
70986
70987 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70988
70989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70990
70991 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70992
70993         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70994         New macro.  Use it uniformly instead of
70995         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70996         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70997         reported by Vin Shelton.
70998
70999 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71000
71001         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71002         Do not assume SA_SIGINFO behavior.
71003         Bug reported by Jim Meyering on NetBSD 1.5.2.
71004
71005 2002-06-22  Jim Meyering  <meyering@lucent.com>
71006
71007         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71009
71010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71011         now that configure.ac uses AC_GNU_SOURCE.
71012         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71013         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71014
71015         Update to latest tools.  Suggestions from Paul Eggert.
71016         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71017         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71018         * m4/fnmatch.m4: Likewise.
71019         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71020         to AC_HEADER_STDBOOL
71021
71022 2002-06-22  Jim Meyering  <meyering@lucent.com>
71023
71024         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71025         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71026
71027 2002-06-22  Jim Meyering  <meyering@lucent.com>
71028
71029         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71030
71031         * lib/exitfail.c, exitfail.h: Likewise.
71032         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71033
71034         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71035         of fnmatch.h.
71036         (EXTRA_DIST): Add fnmatch_loop.c.
71037         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71038
71039         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71040         * lib/fnmatch.c: Update from diffutils-2.8.2.
71041         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71042         * lib/fnmatch.h: Remove file.
71043
71044 2002-06-21  Jim Meyering  <meyering@lucent.com>
71045
71046         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71047         * m4/mbrtowc.m4: Likewise.
71048
71049         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71050         * m4/mbswidth.m4: Reflect name change:
71051         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71053
71054         * m4/lib-link.m4: Update from gettext-0.11.2.
71055         * m4/gettext.m4: Likewise.
71056
71057         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71058         From Alfred M. Szmidt.
71059
71060 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71061
71062         * lib/file-type.h: Report an error if neither S_ISREG nor
71063         S_IFREG is defined, instead of using a test specific to glibc
71064         2.2.  This should be safe, since POSIX requires S_ISREG and
71065         Unix Version 7 had S_IFREG.  We don't need to check for
71066         <sys/types.h> since we don't use any symbols that it defines.
71067
71068 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71069
71070         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71071         $@-t, so that each temporary file name is unique and valid in the first
71072         8 characters, for operation under DOS.
71073
71074 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71075
71076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71077
71078 2002-06-15  Jim Meyering  <meyering@lucent.com>
71079
71080         Work even with DJGPP 2.03, which lacks support for symlinks.
71081         From Richard Dawe.
71082         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71083         is defined.
71084         * lib/lchown.c (S_ISLNK): Likewise.
71085
71086 2002-06-15  Jim Meyering  <meyering@lucent.com>
71087
71088         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71089         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71090         have been included before this file.
71091
71092 2002-06-14  Jim Meyering  <meyering@lucent.com>
71093
71094         * lib/file-type.h: Use the version from diffutils-2.8.2.
71095         * lib/file-type.c: Likewise.
71096
71097 2002-06-07  Jim Meyering  <meyering@lucent.com>
71098
71099         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71100         They're needed at least for NetBSD 1.5.2.
71101         ($statxfs_includes): Include those same headers.
71102         ($statxfs_includes): Include sys/vfs.h if available.
71103         ($statxfs_includes): Likewise for sys/statvfs.h.
71104         Check for the following members in both structs statfs and statvfs:
71105         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71106
71107 2002-06-01  Jim Meyering  <meyering@lucent.com>
71108
71109         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71110         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71111
71112 2002-05-28  Jim Meyering  <meyering@lucent.com>
71113
71114         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71115         Reported by Volker Borchert.
71116
71117 2002-05-27  Jim Meyering  <meyering@lucent.com>
71118
71119         Fix a problem seen only on nonconforming systems whereby ls.c's
71120         use of localtime, and then of gettimeofday would cause trouble:
71121         the localtime call used to initialize rpl_gettimeofday's save
71122         mechanism would clobber ls's current local time information so
71123         that in any long listing the first file would always be listed
71124         with date 1970-01-01.  Analysis by Volker Borchert.
71125
71126         * lib/gettimeofday.c (localtime): Undefine.
71127         (rpl_localtime): New function.
71128
71129 2002-05-27  Jim Meyering  <meyering@lucent.com>
71130
71131         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71132         localtime.
71133
71134         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71135         use the replacement function; it wouldn't resolve at link time.
71136         Reported by Volker Borchert.
71137
71138 2002-05-22  Jim Meyering  <meyering@lucent.com>
71139
71140         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71141         file-type.h.
71142         * lib/file-type.h: New file.
71143         * lib/file-type.c (file_type): New file/function.  Extracted from
71144         diffutils.
71145
71146 2002-04-30  Jim Meyering  <meyering@lucent.com>
71147
71148         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71149
71150 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71151
71152         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71153
71154 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71155
71156         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71157         Do not check for alloca.h (no longer used) or stdbool.h (was never
71158         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71159
71160 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71161
71162         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71163
71164 2002-04-29  Jim Meyering  <meyering@lucent.com>
71165
71166         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71167         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71168         Use AC_FUNC_STRNLEN here instead.
71169
71170         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71171         With autoconf-2.53a, it's part of AC_PROG_CC.
71172
71173 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71174
71175         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71176         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71177
71178 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71179
71180         * lib/sig2str.h, lib/sig2str.c: New files.
71181         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71182
71183 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71184
71185         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71186         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71187         of 127, since 64 is the largest conceivable number for ancient
71188         nonstandard hosts.
71189         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71190
71191 2002-04-28  Jim Meyering  <meyering@lucent.com>
71192
71193         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71194
71195 2002-04-24  Jim Meyering  <meyering@lucent.com>
71196
71197         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71198         (jm_PREREQ): Use it.
71199
71200         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71201         mach/mach.h fcntl.h.
71202         Check for this function: setlocale.
71203
71204 2002-04-24  Jim Meyering  <meyering@lucent.com>
71205
71206         * lib/gettext.h: New file, from Gettext.
71207         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71208         (libfetish_a_SOURCES): Add gettext.h.
71209
71210 2002-04-16  Jim Meyering  <meyering@lucent.com>
71211
71212         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71213         ut_pid, ut_id, ut_exit.
71214
71215 2002-04-16  Jim Meyering  <meyering@lucent.com>
71216
71217         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71218         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71219         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71220
71221 2002-04-12  Jim Meyering  <meyering@lucent.com>
71222
71223         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71224         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71225         existence of the getmntinfo function.  Needed for Darwin 5.3.
71226
71227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71228         This is necessary at least on Darwin 5.3.
71229
71230         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71231         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71232         strnlen.o in the library, and that makes some versions of ranlib
71233         object.
71234
71235 2002-04-12  Jim Meyering  <meyering@lucent.com>
71236
71237         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71238
71239 2002-04-09  Jim Meyering  <meyering@lucent.com>
71240
71241         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71242         to be more precise.  Rather than saying we're checking whether the
71243         function `works', say what we're testing.
71244         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71245         Reported by Bruno Haible.
71246
71247 2002-03-10  Jim Meyering  <meyering@lucent.com>
71248
71249         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71250         Suggestion from Santiago Vila.
71251
71252 2002-03-08  Jim Meyering  <meyering@lucent.com>
71253
71254         * lib/rename.c: Mention that this wrapper is needed also on
71255         mips-dec-ultrix4.4 systems.
71256
71257 2002-03-02  Jim Meyering  <meyering@lucent.com>
71258
71259         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71260         not HAVE_CLOCK_SETTIME.
71261
71262 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71263
71264         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71265         Check for clock_settime.
71266
71267 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71268
71269         * lib/nanosleep.h: Rename to....
71270         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71271
71272         * lib/gettime.c: New file.
71273         * lib/settime.c: New file.
71274         * lib/stime.c: Remove.
71275
71276         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71277         timespec.h.  Remove nanosleep.h.
71278
71279 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71280
71281         * m4/acl.m4: New file.
71282         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71283         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71284
71285 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71286
71287         * lib/acl.c, lib/acl.h: New files.
71288         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71289
71290 2002-02-24  Jim Meyering  <meyering@lucent.com>
71291
71292         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
71293         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
71294         cause trouble.  Reported by Nelson Beebe.
71295
71296 2002-02-23  Paul Eggert  <eggert@twinsun.com>
71297
71298         * lib/path-concat.c (xpath_concat): Reorder code to pacify
71299         compilers that don't know that xalloc_die never returns.
71300
71301 2002-02-20  Jim Meyering  <meyering@lucent.com>
71302
71303         * lib/getdate.c: Regenerate using bison-1.33.
71304
71305 2002-02-17  Jim Meyering  <meyering@lucent.com>
71306
71307         * config/config.guess (main): Don't use `head -1'; it's no longer
71308         portable. Use `sed 1q' instead.
71309
71310 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
71311
71312         * m4/codeset.m4: Upgrade to gettext-0.11.
71313         * m4/gettext.m4: Upgrade to gettext-0.11.
71314         * m4/glibc21.m4: Upgrade to gettext-0.11.
71315         * m4/iconv.m4: Upgrade to gettext-0.11.
71316         * m4/isc-posix.m4: Upgrade to gettext-0.11.
71317         * m4/lcmessage.m4: Upgrade to gettext-0.11.
71318         * m4/lib-ld.m4: New file, from gettext-0.11.
71319         * m4/lib-link.m4: New file, from gettext-0.11.
71320         * m4/lib-prefix.m4: New file, from gettext-0.11.
71321         * m4/progtest.m4: Upgrade to gettext-0.11.
71322
71323 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71324
71325         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
71326         (jm_PREREQ): Use it.
71327
71328 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71329
71330         * lib/posixver.c, lib/posixver.h: New files.
71331         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71332
71333 2002-02-02  Paul Eggert  <eggert@twinsun.com>
71334             Bruno Haible  <bruno@clisp.org>
71335
71336         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71337         (fwrite_success_callback): New declaration.
71338         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71339         print_unicode_char. Call failure callback instead of error.
71340         (fwrite_success_callback): New function.
71341         (exit_failure_callback): New function.
71342         (fallback_failure_callback): New function.
71343         (print_unicode_char): Call unicode_to_mb.
71344
71345 2002-01-26  Jim Meyering  <meyering@lucent.com>
71346
71347         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71348         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71349
71350 2002-01-26  Jim Meyering  <meyering@lucent.com>
71351
71352         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71353
71354 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71355
71356         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71357
71358 2002-01-22  Jim Meyering  <meyering@lucent.com>
71359
71360         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71361         Otherwise, some versions of automake would omit the rule that makes
71362         Makefile from Makefile.in.
71363
71364 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71365
71366         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71367         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71368         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71369         (memcoll): Set errno to zero if there is no error.
71370
71371         * lib/quotearg.c (quotearg_buffer_restyled):
71372         Fix bug with quoting buffers containing NUL when backslashing escapes.
71373         This bug was exposed by the other changes in this patch.
71374         (quotearg_n_options): New arg ARGSIZE.
71375         All callers changed.
71376         (quoting_options_from_style): New function.
71377         (quotearg_n_style): Use it.
71378         (quotearg_n_style_mem): New function.
71379
71380         * lib/quotearg.h (quotearg_n_style_mem): New function.
71381
71382 2002-01-19  Jim Meyering  <meyering@lucent.com>
71383
71384         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71385         Remove useless quotes: DF_PROG="df".
71386         * m4/strnlen.m4: New file.
71387
71388 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71389
71390         * lib/backupfile.c (ISDIGIT): Comment fix.
71391         * lib/getdate.y (ISDIGIT): Likewise.
71392         * lib/posixtm.c (ISDIGIT, year): Likewise.
71393         * lib/strverscmp.c (ISDIGIT): Likewise.
71394         * lib/userspec.c (ISDIGIT): Likewise.
71395
71396 2002-01-16  Jim Meyering  <meyering@lucent.com>
71397
71398         * lib/getdate.y: Add three semicolons, each just before a closing
71399         brace. Bison (as of version 1.31) no longer papers over that mistake.
71400
71401 2002-01-05  Jim Meyering  <meyering@lucent.com>
71402
71403         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71404
71405 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71406
71407         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71408         not silently exit merely because the output buffer happens to
71409         have nothing pending.
71410
71411 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71412
71413         See the big note in ../ChangeLog.
71414         * lib/human.c (suffixes): Prefer K to k for 1024.
71415         (generate_suffix_backwards): New function.
71416         (human_readable_inexact): Use it.
71417         * lib/xstrtol.c (__xstrtol): If there is no number but there
71418         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71419         Accept 'K' as well as 'k'.
71420
71421 2001-12-15  Jim Meyering  <meyering@lucent.com>
71422
71423         * lib/regex.h (__restrict_arr): Update from libc.
71424
71425         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71426         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71427         (STREQ): Define.
71428
71429 2001-12-14  Jim Meyering  <meyering@lucent.com>
71430
71431         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71432         Suggestion from Bruno Haible.
71433
71434 2001-12-10  Jim Meyering  <meyering@lucent.com>
71435
71436         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71437         xrealloc, Instead, include "xalloc.h".
71438         (initbuffer): Don't cast xmalloc return value to char*.
71439         (readline): Reword comment.
71440         Don't cast xrealloc return value to char*
71441         Return NULL, not 0.
71442
71443 2001-12-09  Jim Meyering  <meyering@lucent.com>
71444
71445         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71446         about `signed and unsigned type in conditional expression'.
71447         * lib/posixtm.c (posix_time_parse): Likewise.
71448
71449         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71450
71451         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71452         to avoid a pedantic warning.
71453
71454         * lib/getstr.c: Don't include assert.h.
71455         (getstr): Remove warning-evoking assertions.
71456         Return -1 if offset parameter is out of bounds.
71457         Change the type of a local from int to size_t.
71458
71459         * lib/strftime.c (my_strftime_localtime_r): Include this function
71460         definition in the `#if ! HAVE_TM_GMTOFF' block.
71461
71462         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71463         Include xalloc.h instead.
71464
71465 2001-12-02  Jim Meyering  <meyering@lucent.com>
71466
71467         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71468         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71469         included.
71470
71471         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71472         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71473
71474 2001-11-30  Akim Demaille  <akim@epita.fr>
71475
71476         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71477         before being defined.
71478
71479 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71480
71481         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71482         First arg is int, not unsigned.
71483         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71484         (SIZE_MAX, UINT_MAX): New macros.
71485         (quotearg_n_options): Abort if N is negative.
71486         Avoid overflow check on hosts where size_t is 64 bits and int
71487         is 32 bits, as overflow is impossible there.
71488         Fix off-by-one typo that caused unnecessary reallocation.
71489
71490 2001-11-27  Jim Meyering  <meyering@lucent.com>
71491
71492         * lib/tempname.c: Merge with version from libc.
71493         * lib/regex.c: Likewise.
71494
71495         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71496         systems for which STDC_HEADERS is 0, it was not included, resulting in
71497         a warning about an integer-to-pointer conversion problem with getenv.
71498         Reported by Volker Borchert.
71499
71500 2001-11-26  Jim Meyering  <meyering@lucent.com>
71501
71502         * lib/gtod.h: Remove file.
71503         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71504         * lib/gettimeofday.c: Don't include gtod.h.
71505         (GTOD_init): Remove function.
71506         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71507         Suggestion from Volker Borchert.
71508
71509 2001-11-23  Jim Meyering  <meyering@lucent.com>
71510
71511         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71512         it.
71513         * lib/hash.c (struct hash_table): Define it here instead.
71514
71515 2001-11-22  Jim Meyering  <meyering@lucent.com>
71516
71517         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71518
71519 2001-11-20  Jim Meyering  <meyering@lucent.com>
71520
71521         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71522         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71523
71524 2001-11-19  Jim Meyering  <meyering@lucent.com>
71525
71526         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71527         directory.  Use "conftestXXXXXX" as the template.
71528         Suggestion from Paul Eggert.
71529
71530         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71531         immediately, so the test doesn't mistakenly hit the max-open-files
71532         limit.
71533
71534 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71535
71536         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71537         (TEMPORARIES): New macro.
71538         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71539         removes an artificial limitation (e.g. HP-UX 10.20, where
71540         TMP_MAX is 17576).
71541
71542 2001-11-18  Jim Meyering  <meyering@lucent.com>
71543
71544         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71545
71546 2001-11-18  Jim Meyering  <meyering@lucent.com>
71547
71548         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71549         on SunOS 4.
71550
71551         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71552         files will be created before anything else.
71553
71554 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71555
71556         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71557         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71558
71559 2001-11-17  Jim Meyering  <meyering@lucent.com>
71560
71561         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71562         Prompted by a report from Bob Proulx.
71563
71564         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71565         Instead, require UTILS_FUNC_MKSTEMP.
71566
71567 2001-11-17  Jim Meyering  <meyering@lucent.com>
71568
71569         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71570         Now, that's done as part of AC_FUNC_STRTOD.
71571
71572 2001-11-17  Jim Meyering  <meyering@lucent.com>
71573
71574         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71575         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71576         rather than group writable.  Patch by Juan F. Codagnone.
71577
71578         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71579         xrealloc, Instead, include "xalloc.h".
71580
71581         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71582         Remove explicit declarations of xmalloc, xrealloc,
71583         and xstrdup.  Instead, include "xalloc.h".
71584
71585         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71586         unlocked-io.h.
71587         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71588         Likewise.
71589         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71590
71591         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71592         Reported by Padraig Brady.
71593
71594         * lib/mkstemp.c: #undef mkstemp.
71595         Include config.h.
71596         (rpl_mkstemp): Rename from mkstemp.
71597         Protoize.
71598
71599 2001-11-16  Jim Meyering  <meyering@lucent.com>
71600
71601         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71602         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71603         determine the amount of total physical memory, use pstat_getstatic.
71604         HPUX-11 doesn't define _SC_PHYS_PAGES.
71605         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71606         If sysconf couldn't be used to determine the amount of available
71607         physical memory, use both pstat_getstatic and pstat_getdynamic.
71608         Based on a patch from Bob Proulx.
71609
71610 2001-11-10  Jim Meyering  <meyering@lucent.com>
71611
71612         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71613         (jm_PREREQ): Use it.
71614
71615 2001-11-09  Jim Meyering  <meyering@lucent.com>
71616
71617         * m4/jm-macros.m4: Require autoconf-2.52f.
71618         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71619         Use these AC_-prefixed names, not the AM_-prefixed ones.
71620
71621         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71622
71623 2001-11-05  Jim Meyering  <meyering@lucent.com>
71624
71625         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71626
71627 2001-11-04  Jim Meyering  <meyering@lucent.com>
71628
71629         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71630         $DEFS.
71631
71632 2001-11-03  Jim Meyering  <meyering@lucent.com>
71633
71634         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71635         of AC_DEFUN.
71636
71637         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71638         know the name of the variable in the macro definition.
71639
71640 2001-11-03  Jim Meyering  <meyering@lucent.com>
71641
71642         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71643         in argmatch_to_argument call.
71644
71645         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71646         argument.
71647
71648         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71649         e.g., a fault due to an attempt to free a NULL pointer.
71650
71651 2001-11-01  Jim Meyering  <meyering@lucent.com>
71652
71653         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71654         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71655
71656 2001-11-01  Jim Meyering  <meyering@lucent.com>
71657
71658         * lib/dirfd.c, lib/dirfd.h: New files.
71659         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71660
71661         * lib/hash.c (hash_print) [TESTING]: Clean up.
71662
71663 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71664
71665         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71666         to avoid a warning if -Wall.
71667
71668 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71669
71670         * README: New file
71671         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71672         (per RMS's instructions, this is now the canonical source)
71673         * lgpl/, gpl/: New directories.
71674
71675 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71676
71677         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71678
71679 2001-10-21  Jim Meyering  <meyering@lucent.com>
71680
71681         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71682         this code would end up calling gettext even in packages built
71683         with --disable-nls.
71684         * lib/getopt.c (_): Likewise.
71685         * lib/regex.c (_): Likewise.
71686
71687 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71688
71689         * m4/error.m4 (jm_PREREQ_ERROR):
71690         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71691         AC_FUNC_STRERROR_R does that.
71692         Check for strerror declaration.
71693
71694         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71695         are supposed to have them these days.
71696         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71697         Merge changes from latest Autoconf CVS.
71698         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71699         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71700         POSIX decided to standardize on the int flavor of strerror_r.
71701
71702 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71703
71704         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71705         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71706         Use strerror_r that is only a macro, even if it is not a function.
71707         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71708         (private_strerror): Use prototypes, not old-style function definition.
71709         (print_errno_message): New function.
71710         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71711         char*-flavored one.
71712         (error_tail, error, error_at_line): Use it.
71713
71714 2001-10-11  Jim Meyering  <meyering@lucent.com>
71715
71716         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71717         and quote_n (1, ... to avoid clobbering a buffer.
71718
71719 2001-10-05  Jim Meyering  <meyering@lucent.com>
71720
71721         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71722         hash-pjw.h.
71723         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71724         * lib/hash-pjw.h: New file.
71725
71726 2001-09-30  Jim Meyering  <meyering@lucent.com>
71727
71728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71729         `struct fsstat' has the `f_fstypename' member.
71730         Use that to define FS_TYPE, which is now used to make
71731         the getfsstat link test tighter.
71732
71733 2001-09-30  Jim Meyering  <meyering@lucent.com>
71734
71735         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71736         Include <sys/ucred.h>, for Apple Darwin.
71737         Include sys/mount.h and sys/fs_types.h only if available.
71738         (FS_TYPE): Define.
71739         (read_filesystem_list): Use FS_TYPE.
71740
71741 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71742
71743         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71744         a boolean context.
71745
71746 2001-09-29  Jim Meyering  <meyering@lucent.com>
71747
71748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71749         [one-argument getmntent function]): Include stdio.h before mntent.h.
71750         SunOS 4.1.x needs it for the declaration of `FILE'.
71751         Patch by Volker Borchert.
71752
71753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71754         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71755         sys/fs_types.h, and make the link-test for getfsstat guard #include
71756         directives with appropriate #if HAVE_*_H tests so that we can
71757         detect getfsstat on Apple Darwin1.3.7 systems.
71758         Reported by Nelson Beebe.
71759         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71760
71761 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71762
71763         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71764         #defines strtoimax.  Also treat the other strto* functions
71765         like strtoimax.
71766
71767         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71768         Check for strtoul and strtoumax,
71769         as those declarations are made even in the signed case.
71770         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71771         Likewise, for strtol and strtoimax.
71772
71773 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71774
71775         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71776         #defines strtoimax.  Also treat the other strto* functions
71777         like strtoimax.
71778
71779         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71780         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71781         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71782
71783 2001-09-26  Jim Meyering  <meyering@lucent.com>
71784
71785         Most macros in unlocked-io.h had the wrong number of arguments.
71786         * lib/gen-uio: New script.
71787         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71788         * lib/unlocked-io.hin: Remove file.
71789         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71790         rather than trying to embed it here.
71791         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71792         Reported by Padraig Brady.
71793
71794 2001-09-25  Volker Borchert  <bt@teknon.de>
71795
71796         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71797         `result'.
71798
71799 2001-09-24  Jim Meyering  <meyering@lucent.com>
71800
71801         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71802
71803 2001-09-23  Jim Meyering  <meyering@lucent.com>
71804
71805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71806         instead of the mere test for existence of mntent.h.  The latter
71807         would get a false-positive on AIX 3.4 systems.
71808         In the outer getmntent if-block, don't die if neither of the getmntent
71809         tests succeeds.  Instead, just fall through and continue with the
71810         remaining tests.
71811
71812 2001-09-23  Jim Meyering  <meyering@lucent.com>
71813
71814         * lib/mountlist.c: Remove useless parentheses in #if directives.
71815         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71816         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71817
71818 2001-09-22  Jim Meyering  <meyering@lucent.com>
71819
71820         * m4/gettext.m4: New file.  From gettext.
71821         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71822         * m4/progtest.m4: Likewise
71823         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71824         * m4/glibc21.m4: Likewise.
71825
71826         * m4/libintl.m4: Remove.  No longer used.
71827
71828 2001-09-22  Jim Meyering  <meyering@lucent.com>
71829
71830         * lib/localcharset.c: Update from latest gettext.
71831         * lib/config.charset: Likewise.
71832
71833 2001-09-20  Jim Meyering  <meyering@lucent.com>
71834
71835         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71836         strtoimax.
71837         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71838         strtoumax.
71839
71840 2001-09-20  Jim Meyering  <meyering@lucent.com>
71841
71842         * lib/xstrtol.c (strtoimax): Guard declaration with
71843         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71844         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71845         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71846         (strtoumax): Likewise, for completeness (it wasn't necessary).
71847
71848 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71849
71850         * lib/strtoimax.c (HAVE_LONG_LONG):
71851         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71852         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71853         to work around bug in IBM C compiler.
71854
71855 2001-09-17  Jim Meyering  <meyering@lucent.com>
71856
71857         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71858         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71859         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71860         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71861         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71862         whenever the right hand side need not be expanded by the shell.
71863
71864 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71865
71866         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71867         library.  It's not correct, as some older glibcs are buggy.
71868         fnmatch wasn't fixed until glibc 2.2.
71869
71870         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71871         special shell magic here.
71872
71873 2001-09-16  Jim Meyering  <meyering@lucent.com>
71874
71875         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71876         * m4/jm-macros.m4: Require it.
71877
71878 2001-09-16  Jim Meyering  <meyering@lucent.com>
71879
71880         * lib/mkdir.c: New file.
71881
71882 2001-09-15  Jim Meyering  <meyering@lucent.com>
71883
71884         * m4/jm-macros.m4: Check for help2man.
71885
71886 2001-09-11  Jim Meyering  <meyering@lucent.com>
71887
71888         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71889         The body, by Paul Eggert, was moved here from configure.in.
71890         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71891
71892 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71893
71894         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71895         (jm_PREREQ): Use it.
71896
71897 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71898
71899         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71900         Use ssize_t, not int, to store result of readlink.
71901         Check for ssize_t overflow as well as size_t overflow,
71902         as POSIX says the result of readlink is implementation-defined
71903         when ssize_t overflows.
71904         Remove unnecessary cast to char*.
71905         Use free+malloc instead of realloc, as the storage doesn't need
71906         to be preserved and it's clearer and can be more efficient that way.
71907         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71908         * lib/xreadlink.h (xreadlink): Update prototype.
71909
71910 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71911
71912         * lib/xgetcwd.c: Revert some of the previous change; intead,
71913         fix the HAVE_GETCWD_NULL code to behave more like the
71914         !HAVE_GETCWD_NULL code used to.
71915
71916         Include "xalloc.h".
71917         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71918         invoke xalloc_die.
71919
71920 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71921
71922         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71923         sys/param.h, as pathmax.h includes them.
71924
71925 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71926
71927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71928         (jm_PREREQ_XGETCWD): New macro.
71929
71930         * m4/getcwd.m4: New file.
71931
71932 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71933
71934         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71935         like the HAVE_GETCWD_NULL code.
71936         Include pathmax.h if not HAVE_GETCWD.
71937         Do not include xalloc.h.
71938         (INITIAL_BUFFER_SIZE): New symbol.
71939         Do not use xmalloc / xrealloc, since the caller is responsible for
71940         handling errors.  Preserve errno around `free' during failure.
71941         Do not overrun buffer when using getwd.
71942
71943 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71944
71945         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71946         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71947         getcwd (NULL, 0).
71948
71949 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71952         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71953         spotted by Jim Meyering.
71954
71955 2001-09-03  Jim Meyering  <meyering@lucent.com>
71956
71957         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71958         failure.
71959
71960 2001-09-02  Jim Meyering  <meyering@lucent.com>
71961
71962         * lib/error.c: Update from GNU libc.
71963
71964 2001-09-01  Jim Meyering  <meyering@lucent.com>
71965
71966         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71967         Used by df.
71968
71969 2001-09-01  Jim Meyering  <meyering@lucent.com>
71970
71971         * lib/xreadlink.c: New file.
71972         * lib/xreadlink.h: New file.
71973         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71974         xreadlink.h.
71975
71976         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71977         doesn't conflict with sparc Solaris 7's definition in
71978         /usr/include/sys/int_types.h.
71979
71980         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71981         files.
71982         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71983         and strncasecmp as r-values.  Unixware didn't have declarations.
71984
71985 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71986
71987         * lib/xstrtol.h: Add copyright notice.
71988         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71989         LONGINT_INVALID_SUFFIX_CHAR.
71990
71991 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71992
71993         * lib/xstrtol.c (strtoimax): New decl.
71994
71995 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71996
71997         * lib/xgetcwd.c: Don't include pathmax.h.
71998         Include stdlib.h and unistd.h if available.
71999         Include xalloc.h.
72000         (xmalloc, xstrdup, free): Remove decls.
72001         (xgetcwd): Don't assume sizes fit in unsigned.
72002         Check for overflow when computing sizes.
72003         Simplify reallocation code.
72004
72005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72008         a directory's st_size can have an arbitrary value, so the old
72009         usage could waste an arbitrary amount of memory.  All uses
72010         changed.
72011         * lib/savedir.h: Update prototype.
72012
72013 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72014
72015         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72016
72017         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72018         old strtoimax.c.
72019
72020         Also, make the following further changes to make this file's
72021         configuration more similar to that of strtol.c:
72022         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72023         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72024         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72025         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72026         changed to signed values.
72027
72028         And make the following changes as well:
72029         Fix copyright notice, as 1999 was missing.
72030         (verify): New macro.
72031         (strtoimax): Check sizes at compile-time, not run-time.
72032         Prefer strtol to strtoll if both work.
72033         (main): Remove; it was not that useful and was a pain to maintain.
72034
72035         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72036
72037 2001-08-31  Jim Meyering  <meyering@lucent.com>
72038
72039         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72040         Use an initial, malloc'd, buffer of length 128 rather than
72041         a statically allocated one of length 1024.
72042
72043 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72044
72045         Simplify code, partly by assuming autoconf 2.52 semantics.
72046
72047         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72048
72049         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72050         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72051         All uses removed.
72052         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72053         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72054         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72055         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72056         jm_AC_HEADER_INTTYPES_H.
72057         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72058
72059         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72060
72061         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72062         Quote first arg of AC_DEFUN.
72063         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72064         since they are needed to parse the include file even if we need
72065         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72066         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72067         but with opposite signedness.
72068
72069 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72070
72071         Merge 'exclude' changes from tar 1.13.22.
72072         This fixes one or two unlikely storage allocation overflow bugs,
72073         but doesn't change user-visible behavior otherwise.
72074
72075 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72076
72077         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72078         (jm_PREREQ_EXCLUDE): New macro.
72079
72080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72081
72082         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72083         tm to be declared.
72084
72085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72086
72087         * lib/hash.c: Remove '2001' from copyright notice.
72088
72089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72090
72091         * lib/full-write.h: New file.
72092         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72093         * lib/full-write.c: Correct credits, as cccp.c no longer
72094         exists and anyway it was so heavily changed from the old cccp
72095         code as to be unrecognizable.  Include full-write.h.
72096         (full_write) Return size_t, with short writes meaning failure.
72097         All callers changed.  This fixes a bug with large buffers
72098         on 64-bit hosts.
72099         * lib/utime.c: Include full-write.h.
72100
72101 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72102
72103         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72104         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72105         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72106         Include if available.
72107         (<xalloc.h>): Include
72108         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72109         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72110         collide with FNM macros.
72111         (struct patopts): New struct.
72112         (struct exclude): Use it, as exclude patterns now come with options.
72113         (new_exclude): Support above changes.
72114         (new_exclude, add_exclude_file):
72115         Initial size must now be a power of two to simplify overflow checking.
72116         (free_exclude, fnmatch_no_wildcards): New function.
72117         (excluded_filename): No longer requires options arg, as the options
72118         are determined by add_exclude.  Now returns bool, not int.
72119         (excluded_filename, add_exclude):
72120         Add support for the fancy new exclusion options.
72121         (add_exclude, add_exclude_file): Now takes int options arg.
72122         Check for arithmetic overflow when computing sizes.
72123         (add_exclude_file): xrealloc might modify errno, so don't
72124         realloc until after errno might be used.
72125
72126         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72127         New macros.
72128         (free_exclude): New decl.
72129         (add_exclude, add_exclude_file): Now takes int options arg.
72130         (excluded_filename): No longer requires options arg, as the options
72131         are determined by add_exclude.  Now returns bool, not int.
72132
72133 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72134
72135         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72136
72137 2001-08-27  Jim Meyering  <meyering@lucent.com>
72138
72139         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72140
72141         * lib/version-etc.c (N_): Remove definition.
72142         Revert most of last change.
72143         Instead, simply don't mark the `Copyright...' string for translation.
72144         Based on advice from Paul Eggert.
72145
72146         * lib/strtoxmax.c: Tweak comment.
72147
72148 2001-08-26  Jim Meyering  <meyering@lucent.com>
72149
72150         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72151
72152         * m4/xstrtoimax.m4: New file.
72153         * m4/xstrtoumax.m4: Add comments explaining why we
72154         AC_REPLACE_FUNCS(strtol).
72155
72156 2001-08-26  Jim Meyering  <meyering@lucent.com>
72157
72158         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72159         of copyright with `%s' so translators don't get an untranslated
72160         message in 2002.
72161         (COPYRIGHT_YEAR): Define.
72162         (version_etc): Use fprintf rather than fputs.
72163         Suggestion from Ulrich Drepper.
72164
72165         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72166
72167         * lib/strtoll.c: New file, from GNU libc.
72168         * lib/xstrtoimax.c: New file.
72169
72170         * lib/xstrtol.h: Add xstrtoimax.
72171         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72172         * lib/strtoimax.c: New file.  Likewise, but first define
72173         STRTOUXMAX_SIGNED.
72174
72175         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72176         ...
72177         * lib/strtoxmax.c: ... then renamed to this.
72178
72179 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72180
72181         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72182         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72183         (jm_AC_TYPE_INTMAX_T): New macro.
72184         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72185
72186         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72187
72188         * m4/longlong.m4: Renamed from ulonglong.m4.
72189         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72190         * m4/uintmax_t.m4: Removed.
72191
72192 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72193
72194         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72195         Port to Solaris 8, where 'sed' requires a space after the 'r'
72196         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72197         Redirect output to $tmp just once.
72198
72199 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72200
72201         * lib/addext.c (<errno.h>): Include.
72202         (errno): Declare if not defined.
72203         (addext): Work correctly when pathconf returns -1 and leaves
72204         errno alone because there is no limit.  Also, work even if
72205         pathconf returns a value greater than SIZE_MAX.
72206
72207 2001-08-12  Jim Meyering  <meyering@lucent.com>
72208
72209         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72210         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72211         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72212         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72213         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72214         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72215         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72216         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72217         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72218         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72219         utime.m4, utimes.m4, xstrtoumax.m4:
72220         Quote the first argument in each use of AC_DEFUN.
72221
72222 2001-08-12  Jim Meyering  <meyering@lucent.com>
72223
72224         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72225         Simply `return getcwd (NULL, 0);'.
72226         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72227         Use 1300 as initial value for length, not PATH_MAX.
72228
72229         * lib/pathmax.h: Clean up cpp syntax.
72230
72231 2001-08-12  Jim Meyering  <meyering@lucent.com>
72232
72233         * lib/gettimeofday.c: New file.
72234         * lib/gtod.h: New file.
72235         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72236
72237 2001-08-05  Jim Meyering  <meyering@lucent.com>
72238
72239         * m4/jm-macros.m4: Require autoconf-2.52.
72240
72241 2001-08-04  Jim Meyering  <meyering@lucent.com>
72242
72243         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72244         stmt, to get in sync with glibc.
72245
72246 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72247
72248         The following changes are from gettext 0.10.39 as maintained by
72249         Bruno Haible.
72250
72251         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72252         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72253         with inverted sense.  All uses changed.
72254
72255         * lib/mbswidth.c: Don't include <limits.h>.
72256         Include <stdlib.h> and <string.h> unconditionally.
72257         (iswcntrl, mbsinit, ISCNTRL): New macros.
72258         (mbsnwidth): Use K&R style function declarations.
72259         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72260         can optimize it when MB_CUR_MAX == 1.
72261         The width of control characters is zero, not 1.
72262
72263 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72264
72265         The following changes are from gettext 0.10.39 as maintained by
72266         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72267
72268         * m4/codeset.m4: Upgrade to serial AM1.
72269         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72270         all uses changed.  Quote first arg of AC_DEFUN.
72271         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72272
72273         * m4/iconv.m4: Upgrade to serial AM2.
72274         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72275         Add --with-libconv-prefix.
72276         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72277         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72278         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72279         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72280         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72281
72282         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72283         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72284         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72285         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72286         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72287         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72288         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72289         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72290         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72291
72292         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
72293         string.h any more.
72294
72295         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
72296         not the default value.
72297
72298         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
72299         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
72300         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
72301         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
72302         Also check for iswcntrl, used for wcwidth fallback.
72303         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
72304         to Autoconf 2.13.
72305
72306 2001-08-03  Jim Meyering  <meyering@lucent.com>
72307
72308         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
72309         as it was in the original.  Reported by Paul Eggert.
72310
72311 2001-07-16  Jim Meyering  <meyering@lucent.com>
72312
72313         * m4/gettimeofday.m4: New file.
72314         Prompted by a report from Bernhard Baehr.
72315
72316 2001-07-15  Jim Meyering  <meyering@lucent.com>
72317
72318         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
72319         stuff. Now it's in ../Makefile.cfg.
72320
72321 2001-07-15  Jim Meyering  <meyering@lucent.com>
72322
72323         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
72324         (BUILT_SOURCES): Add unlocked-io.h.
72325         (io_functions): Define.
72326         (unlocked-io.h): New rule.
72327         (DISTCLEANFILES): Add unlocked-io.h.
72328         (all-local): Depend on unlocked-io.h, to ensure it is created.
72329
72330         * lib/unlocked-io.hin: New file
72331
72332         * lib/regex.c: Update from glibc.
72333
72334 2001-07-05  Jim Meyering  <meyering@lucent.com>
72335
72336         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72337         recommendation.
72338         (libfetish_a_SOURCES): Put all .h files here instead.
72339         Remove a thus-exposed (better checks in automake) duplicate and
72340         two unnecessary .h files.
72341
72342 2001-07-04  Jim Meyering  <meyering@lucent.com>
72343
72344         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72345         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72346         distcheck failure.
72347
72348 2001-07-02  Jim Meyering  <meyering@lucent.com>
72349
72350         The following changes were prompted by suggestions from Bruno Haible.
72351
72352         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72353         is now generated.
72354         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72355         definition of EXTRA_DIST.
72356         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72357         ensure that the generated file is created/updated whenever the list
72358         of $(unlocked_functions) is changed.
72359         (jm-glibc-io.m4): New rule.
72360         (unlocked-io.h): New rule -- currently unused.
72361
72362 2001-06-24  Jim Meyering  <meyering@lucent.com>
72363
72364         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72365         unmatched right bracket, rather than kludging it with an extra,
72366         falsely-matching quote in a comment.  Patch by Akim Demaille.
72367
72368 2001-06-11  Jim Meyering  <meyering@lucent.com>
72369
72370         * lib/regex.c: Update from GNU libc.
72371
72372 2001-05-27  Jim Meyering  <meyering@lucent.com>
72373
72374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72375         Check for ut_type in struct utmp.
72376
72377 2001-05-27  Jim Meyering  <meyering@lucent.com>
72378
72379         * lib/readutmp.h (UT_TYPE): Define.
72380
72381 2001-05-24  Jim Meyering  <meyering@lucent.com>
72382
72383         * lib/argmatch.c: Include "quote.h".
72384         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72385         quote function.  Reported by Göran Uddeborg.
72386
72387 2001-05-22  Jim Meyering  <meyering@lucent.com>
72388
72389         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72390         now that we use the package-supplied version unconditionally.
72391         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72392
72393 2001-05-21  Jim Meyering  <meyering@lucent.com>
72394
72395         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72396         shell syntax errors.
72397
72398 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72399
72400         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72401
72402 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72403
72404         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72405         Don't bother to check library strftime, since
72406         we'll be using our own my_strftime function anyway.
72407         Define my_strftime instead of strftime.
72408
72409 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72410
72411         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72412         which is not yet declared.
72413
72414 2001-05-15  Jim Meyering  <meyering@lucent.com>
72415
72416         * m4/regex.m4: Use proper quoting so brackets appear in the test
72417         program.
72418         Reported by, and with help from, Bruno Haible.
72419
72420 2001-05-13  Jim Meyering  <meyering@lucent.com>
72421
72422         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72423         undefined.
72424
72425 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72426
72427         dirname code cleanup.  base_name now behaves more compatibly
72428         with POSIX basename when given file names that have trailing
72429         slashes, and similarly for dir_name.  Add new primitives
72430         base_len and dir_len.  Put the directory-name-related decls
72431         into dirname.h.
72432
72433         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72434         * lib/backupfile.c (base_name): Likewise.
72435         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72436         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72437         * lib/makepath.c (strip_trailing_slashes): Likewise.
72438         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72439         ISSLASH): Likewise.
72440         * lib/rename.c (strip_trailing_slashes): Likewise.
72441         * lib/same.c (base_name): Likewise.
72442         * lib/stripslash.c (ISSLASH): Likewise.
72443
72444         * lib/addext.c: Include <dirname.h> after size_t is defined.
72445         * lib/backupfile.c: Likewise.
72446
72447         * lib/addext.c (addext): Use base_len to trim redundant
72448         trailing slashes instead of doing it ourselves.
72449         But do not trim the last slash if it is not redundant.
72450
72451         * lib/backupfile.c (find_backup_file_name,
72452         max_backup_version): Use base_len instead of rolling it ourselves.
72453         Handle the case of "" and (on DOS) "C:" correctly.
72454
72455         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72456         needed. Include <string.h>, <dirname.h>.
72457         (base_name): Allow file names ending in slashes, other than names
72458         that are all slashes.  In this case, return the basename followed
72459         by the slashes.  This is more general, and can be used in places
72460         where the original base_name purposely had an assertion failure.
72461         (base_len): New function.
72462
72463         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72464         Do not include <assert.h>; no longer needed.
72465         Include xalloc.h.
72466         (memrchr): Remove decl.
72467         (dir_name_r): Remove.
72468         (dir_len): Renamed from dirlen.  All callers changed.
72469         Rewrite in terms of base_name, for simplicity and consistency.
72470         (dir_name): Never return NULL.  All callers changed.
72471         Do not include <stdlib.h> in test program; no longer needed.
72472         return 0; is fine for test program.
72473
72474         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72475         New macros.
72476         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72477
72478         * lib/path-concat.c (path_concat): Use base_len to compute
72479         base length, not strlen; this means we cannot rely on memcpy
72480         to null-terminate.
72481
72482         * lib/same.c (STREQ): Remove.
72483         (same_name): Handle the case where the basename ends in trailing '/'.
72484
72485         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72486         a slash was stripped.  Do not strip the last slash after a
72487         file system prefix.
72488
72489 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72490
72491         * lib/Makefile.am (libfetish_a_SOURCES):
72492         Add strftime.c, since we now compile it on all hosts.
72493
72494         * lib/strftime.c (my_strftime):
72495         Define to nstrftime if emacs, but only if my_strftime is not defined.
72496         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72497         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72498         Add one more extra argument: a nanoseconds value.
72499         All uses changed.
72500         (ns): New macro.
72501         (my_strftime function): Add %N format.
72502         (emacs_strftimeu): Renamed from emacs_strftime,
72503         with extra ut argument.
72504
72505 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72506
72507         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72508
72509 2001-04-21  Jim Meyering  <meyering@lucent.com>
72510
72511         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72512         doesn't interfere.
72513
72514 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72515
72516         * m4/ftruncate.m4: Check for chsize.
72517         Link with ftruncate.o unconditionally if ftruncate is missing.
72518         This was required when cross-compiling to i586-mingw32msvc.
72519
72520 2001-04-08  Jim Meyering  <meyering@lucent.com>
72521
72522         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72523         recomputed; that's necessary when the offset spans a DST transition.
72524         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72525
72526 2001-04-02  Jim Meyering  <meyering@lucent.com>
72527
72528         * lib/regex.h, regex.c: Update from GNU libc.
72529
72530 2001-03-24  Jim Meyering  <meyering@lucent.com>
72531
72532         * m4/jm-macros.m4: Require autoconf-2.49d.
72533
72534 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72535
72536         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72537
72538 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72539
72540         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72541
72542 2001-03-17  Jim Meyering  <meyering@lucent.com>
72543
72544         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72545         now that the version in autoconf is equivalent.
72546         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72547
72548         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72549         Suggestion from Akim Demaille.
72550
72551         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72552         (jm_PREREQ_TEMPNAME): New function.
72553
72554 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72555
72556         * lib/tempname.c (uint64_t): Define to uintmax_t if
72557         not defined, and if UINT64_MAX is not defined.
72558         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72559         Reported by John David Anglin.
72560
72561 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72562
72563         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72564         resolve alias if codeset is empty.
72565         * lib/config.charset (BeOS): Use wildcard syntax.
72566
72567 2001-03-13  Jim Meyering  <meyering@lucent.com>
72568
72569         * lib/path-concat.c (path_concat)
72570         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72571         concatenating e.g., `C:' and `foo'.
72572         From Bruno Haible.
72573
72574 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72575
72576         * lib/localcharset.c (locale_charset): Don't use
72577         setlocale(LC_CTYPE,NULL). Don't return NULL.
72578         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72579
72580 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72581
72582         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72583         support for DOS/DJGPP.
72584
72585 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72586
72587         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72588         lacks mkstemp.  Compile our own tempname.c if we compile our own
72589         mkstemp.c, as mkstemp relies on tempname.
72590
72591 2001-03-01  Jim Meyering  <meyering@lucent.com>
72592
72593         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72594         AH_VERBATIM really does output its argument verbatim.
72595
72596 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72597
72598         * lib/Makefile.am (libfetish_a_SOURCES):
72599         Add dup-safer.c, fopen-safer.c.
72600         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72601
72602         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72603         * lib/unistd-safer.h: New files.
72604
72605 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72606
72607         The mkstemp replacement is taken from glibc 2.2.2, with some
72608         portability fixes for use outside glibc, as follows:
72609
72610         * lib/tempname.c (struct_stat64): New macro.
72611         (direxists, __gen_tempname): Use it.
72612         This avoids a portability problem with Solaris 8.
72613
72614         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72615         (<stddef.h>, <stdint.h>, <string.h>):
72616         Include only if STDC_HEADERS || _LIBC.
72617         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72618         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72619         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72620         (__set_errno): Define this macro if <errno.h> doesn't.
72621         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72622         Define these macros if <stdio.h> doesn't.
72623         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72624         Define these macros if <sys/stat.h>
72625         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72626         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72627         __xstat64): Define if not _LIBC.
72628         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72629         (__gen_tempname): Invoke gettimeofday only if
72630         HAVE_GETTIMEOFDAY || _LIBC;
72631         otherwise, fall back on plain "time".
72632         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72633
72634         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72635
72636         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72637
72638 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72639
72640         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72641
72642 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72643
72644         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72645         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72646         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72648
72649 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72650
72651         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72652         Remove workaround macros for hosts that have mbrtowc but not
72653         mbstate_t, as we now insist on proper declarations for both
72654         before using mbrtowc.
72655
72656 2001-02-17  Jim Meyering  <meyering@lucent.com>
72657
72658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72659         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72660         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72661         UnixWare 7.1.1.
72662
72663         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72664         rather than AC_CACHE_VAL.
72665
72666 2001-02-17  Jim Meyering  <meyering@lucent.com>
72667
72668         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72669         around included file name.
72670
72671         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72672
72673         * lib/strftime.c: Update from GNU libc (the only changes were to
72674         comments).
72675
72676 2001-02-17  Jim Meyering  <meyering@lucent.com>
72677
72678         * lib/regex.c: Update from libc.
72679
72680 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72681
72682         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72683         clash.
72684
72685 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72686
72687         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72688         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72689         Reported by Mark Hounschell via Paul Eggert.
72690
72691 2001-02-07  Jim Meyering  <meyering@lucent.com>
72692
72693         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72694
72695 2001-02-05  Jim Meyering  <meyering@lucent.com>
72696
72697         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72698         it includes the patch required for `large file' support with at least
72699         HP-UX's 10.20 /bin/cc.
72700
72701 2001-02-03  Jim Meyering  <meyering@lucent.com>
72702
72703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72704         AS_IF, now that it works once again (mysteriously).
72705         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72706
72707 2001-01-30  Jim Meyering  <meyering@lucent.com>
72708
72709         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72710         * m4/chown.m4: Rename conftestchown to conftest.chown.
72711         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72712         s/conftestdir2/conftest.d2/.
72713         * m4/utimes.m4: s/conftestdata/conftest.data/
72714         Inspired by Pavel Roskin's change in autoconf.
72715
72716 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72717
72718         * lib/config.charset: Update for FreeBSD 4.2.
72719
72720 2001-01-27  Jim Meyering  <meyering@lucent.com>
72721
72722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72723         a use of AS_IF.
72724         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72725
72726 2001-01-26  Jim Meyering  <meyering@lucent.com>
72727
72728         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72729         quotearg.c includes it.
72730
72731 2001-01-26  Jim Meyering  <meyering@lucent.com>
72732
72733         * lib/quotearg.c: Include stddef.h.
72734         * lib/quote.c: Include stddef.h.
72735         Reported by Axel Kittenberger.
72736
72737         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72738         line in double quotes so that it evokes a better diagnostic.
72739         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72740         Reported by Axel Kittenberger.
72741
72742 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72743
72744         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72745         as if it was a `charset'.
72746
72747 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72748
72749         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72750         has const.
72751
72752 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72753
72754         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72755         to avoid a warning.  Add back 'const' to inptr.
72756
72757 2001-01-20  Jim Meyering  <meyering@lucent.com>
72758
72759         Be sure that headers are checked before used in code compiled
72760         for the type checks.
72761         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72762         In place of that, invoke jm_CHECK_ALL_TYPES.
72763         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72764         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72765         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72766         The check for ssize_t was mistakenly run before the test for unistd.h.
72767
72768         The configure-time check for stdbool.h was missing.
72769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72770         (jm_PREREQ_HASH): New function.
72771
72772 2001-01-17  Jim Meyering  <meyering@lucent.com>
72773
72774         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72775         for autoconf-2.49c.
72776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72777
72778 2001-01-16  Jim Meyering  <meyering@lucent.com>
72779
72780         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72781         From Bruno Haible.
72782
72783 2001-01-14  Jim Meyering  <meyering@lucent.com>
72784
72785         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72786         foo and bar.  Create conftestdir/ in the script, not in the C code.
72787         Remove directories in the script, not in the C code.
72788         Remove conftestdir{,2} before trying to create the directory.
72789         Make the entire configure script fail if the mkdir fails.
72790
72791 2001-01-14  Jim Meyering  <meyering@lucent.com>
72792
72793         * lib/rename.c: New file.  From Volker Borchert.
72794         Include stdlib.h, string.h or strings.h, and xalloc.h.
72795         Use strip_trailing_slashes rather than open-coding it.
72796
72797 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72798
72799         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72800
72801 2001-01-03  Jim Meyering  <meyering@lucent.com>
72802
72803         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72804         of local `inptr' to avoid warning with some system declarations of
72805         iconv.
72806
72807 2001-01-02  Volker Borchert  <bt@teknon.de>
72808
72809         * m4/rename.m4: New file.
72810         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72811
72812 2001-01-01  Jim Meyering  <meyering@lucent.com>
72813
72814         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72815         even on systems with utmpx.h.  It's necessary for the declaration of
72816         utmp's ut_user member.  Reported by Andreas Jaeger.
72817
72818         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72819         available. They are required for the declarations of getgrgid and
72820         getpwuid resp.
72821         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72822         Reported by Andreas Jaeger.
72823
72824 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72825
72826         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72827         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72828         so `make install' also works in VPATH builds.
72829
72830 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72831
72832         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72833         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72834         can be used in subdirectories.
72835
72836 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72837
72838         * lib/modechange.c: Do not assume that mode_t uses the
72839         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72840         the other-execute bit of FOO even if S_IXOTH != 1.
72841
72842         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72843         WOTH, XOTH, ALLM): New macros.
72844         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72845          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72846         Use them.
72847         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72848         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72849         (mode_compile):
72850         No need to use uintmax_t; unsigned long is long enough.
72851         Don't bother to get suffix since we don't use it.
72852
72853 2000-12-26  Jim Meyering  <meyering@lucent.com>
72854
72855         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72856         better with autoheader.
72857
72858 2000-12-24  Jim Meyering  <meyering@lucent.com>
72859
72860         * lib/hash.c (is_prime): Return explicit boolean values.
72861         (hash_get_first): Return NULL to appease Irix5.6's 89.
72862         Reported by Nelson Beebe.
72863
72864 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72865
72866         * lib/localcharset.c (locale_charset): Add support for Win32.
72867
72868 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72869
72870         * lib/physmem.h, lib/physmem.c: New files.
72871
72872         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72873         (noinst_HEADERS): Add physmem.h.
72874
72875         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72876         't' for compatibility with Solaris 8 sort.
72877
72878 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72879
72880         * lib/config.charset: Add support for BeOS.
72881
72882 2000-12-17  Jim Meyering  <meyering@lucent.com>
72883
72884         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72885         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72886
72887 2000-12-16  Jim Meyering  <meyering@lucent.com>
72888
72889         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72890         N and M) would have treated it like `chown N:N FILE'.
72891
72892         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72893
72894 2000-12-16  Jim Meyering  <meyering@lucent.com>
72895
72896         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72897         SHELLS_FILE to a file name that's useful on djgpp systems.
72898         Include stdlib.h.
72899         (ADDITIONAL_DEFAULT_SHELLS): Define.
72900         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72901         Based mostly on a patch from Prashant TR.
72902
72903 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72904
72905         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72906         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72907         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72908
72909 2000-12-08  Andreas Schwab  <schwab@suse.de>
72910
72911         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72912         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72913
72914 2000-12-07  Jim Meyering  <meyering@lucent.com>
72915
72916         * lib/stripslash.c (ISSLASH): Define.
72917         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72918         `/'.
72919         From Prashant TR.
72920
72921         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72922         (dir_name_r): Declare this function as static.
72923         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72924         manifest itself on a name containing a mix of slashes and
72925         backslashes.
72926         Make this function work with names starting with a DOS-style
72927         drive letter and colon prefix.
72928         (dir_name): Append `.' if necessary.
72929         Based mostly on patches from Prashant TR and Eli Zaretskii.
72930
72931         * lib/dirname.h (dir_name_r): Remove prototype.
72932
72933 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72934
72935         * m4/off_t-format.m4: Remove this file.
72936         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72937
72938 2000-12-06  Jim Meyering  <meyering@lucent.com>
72939
72940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72941         replacement strtoull, we may well need the replacement strtoul, too.
72942         Check for declarations of strtoul and strtoull.
72943         Check for strtol.  Mainly as a cue to cause automake to include
72944         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72945         Check for limits.h -- strtol.c needs it.
72946
72947 2000-12-05  Jim Meyering  <meyering@lucent.com>
72948
72949         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72950
72951 2000-12-04  Jim Meyering  <meyering@lucent.com>
72952
72953         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72954         Also include memory.h, stdlib.h, unistd.h if appropriate.
72955         Reported by Andreas Jaeger (conflicting declaration of malloc).
72956
72957 2000-12-02  Jim Meyering  <meyering@lucent.com>
72958
72959         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72960         * m4/jm-macros.m4 (jm_MACROS): require it.
72961
72962 2000-12-02  Jim Meyering  <meyering@lucent.com>
72963
72964         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72965
72966 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72967
72968         * lib/memrchr.c: Include <config.h> before any system include file.
72969
72970 2000-11-30  Jim Meyering  <meyering@lucent.com>
72971
72972         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72973
72974 2000-11-30  Jim Meyering  <meyering@lucent.com>
72975
72976         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72977
72978 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72979
72980         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72981
72982 2000-11-26  Jim Meyering  <meyering@lucent.com>
72983
72984         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72985
72986 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72987
72988         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72989         size of (size_t) -1; it's not portable.
72990
72991 2000-11-17  Jim Meyering  <meyering@lucent.com>
72992
72993         * lib/strstr.c: Update from GNU libc.
72994
72995 2000-11-17  Akim Demaille  <akim@epita.fr>
72996
72997         * lib/obstack.h: Formatting changes.
72998         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72999         prevent type checking.
73000         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73001         cast the value to (void *): assigning a `foo *' to a `void *'
73002         variable is valid.
73003         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73004
73005 2000-11-16  Jim Meyering  <meyering@lucent.com>
73006
73007         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73008
73009 2000-11-11  Jim Meyering  <meyering@lucent.com>
73010
73011         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73012
73013 2000-11-10  Jim Meyering  <meyering@lucent.com>
73014
73015         * lib/obstack.h: Update from GNU libc.
73016         * lib/obstack.c: Likewise.
73017
73018 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73019
73020         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73021
73022 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73023
73024         * lib/getusershell.c (setusershell): Use rewind rather than
73025         fseek/fseeko, to avoid configuration hassles with fseeko.
73026         Don't bother opening SHELLS_FILE if shellstream is NULL;
73027         it's not necessary.
73028
73029 2000-11-05  Jim Meyering  <meyering@lucent.com>
73030
73031         * lib/makepath.h (make_dir): Declare.
73032         * lib/makepath.c (make_dir): Remove `static' attribute.
73033         Tweak a comment.
73034
73035 2000-11-04  Jim Meyering  <meyering@lucent.com>
73036
73037         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73038
73039 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73040
73041         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73042         last one in a bucket, advance to the next bucket.
73043
73044 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73045
73046         * lib/fnmatch.c: Do not comment out all the code if we are using
73047         the GNU C library, because in some cases we are replacing buggy
73048         code in the GNU C library itself.
73049
73050 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73051
73052         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73053         (regex_compile): Catch bogus \(\1\).
73054
73055 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73056
73057         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73058         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73059         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73060
73061 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73062
73063         * lib/error.h, getline.h, modechange.h:
73064         Remove "2000" from Copyright line, as the file hasn't been
73065         changed this year other than in the copyright notice.
73066
73067         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73068         was changed this year.
73069
73070 2000-10-29  Jim Meyering  <meyering@lucent.com>
73071
73072         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73073         renaming.
73074         * m4/ls-mntd-fs.m4: Likewise
73075
73076 2000-10-29  Jim Meyering  <meyering@lucent.com>
73077
73078         * lib/xstat.in: Fix grammar in comment.
73079
73080 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73081
73082         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73083         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73084         doesn't define __restrict_arr.
73085
73086 2000-10-28  Jim Meyering  <meyering@lucent.com>
73087
73088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73089         (jm_PREREQ_MEMCHR): New function.
73090
73091 2000-10-28  Jim Meyering  <meyering@lucent.com>
73092
73093         * lib/memchr.c: Update from libc.
73094         Adjust for portability:
73095         [HAVE_STDLIB_H]: Include stdlib.h.
73096         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73097         Undef __memchr, too.
73098         [!weak_alias]: Define __memchr to memchr.
73099
73100         * lib/regex.c: Update from libc.
73101         * lib/regex.h: Likewise.
73102         * lib/getopt1.c: Likewise.
73103         * lib/memcmp.c: Likewise.
73104
73105         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73106         Avoid using fseek, when possible -- it's broken by design.
73107         Patch by Ulrich Drepper.
73108
73109 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73110
73111         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73112         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73113         Giving in to popular pressure to shut up the compiler with casts.
73114
73115 2000-10-26  Jim Meyering  <meyering@lucent.com>
73116
73117         * lib/strftime.c: Update from libc.
73118
73119 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73120
73121         * regex.c: More `unsigned char' -> `re_char' changes.
73122         Also change several `int' into `re_wchar_t'.
73123         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73124         (PUSH_FAILURE_POINTER): Don't cast any more.
73125         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73126         We want GCC to complain, since this piece of code makes
73127         re_match non-reentrant, which *should* be fixed.
73128         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73129         (EXTEND_BUFFER): Use RETALLOC.
73130         (SET_LIST_BIT): Don't cast.
73131         (re_wchar_t): New type.
73132         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73133         that those two functions will always properly return.
73134         (IMMEDIATE_QUIT_CHECK): Cast to void.
73135         (analyse_first): Use recursion rather than an explicit stack.
73136         (re_compile_fastmap): Can't fail anymore.
73137         (re_search_2): Don't check re_compile_fastmap for failure.
73138         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73139         Now also sets the new value (passed in a new argument).
73140         (re_match_2_internal): Use it.
73141         Also, use a new var `reg' of type size_t when looping through regs
73142         rather than reuse the inappropriate `mcnt'.
73143
73144 2000-10-25  Jim Meyering  <meyering@lucent.com>
73145
73146         * lib/obstack.c: Update from libc.
73147
73148 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73149
73150         * regex.c (regex_compile): Change the way of handling a range from
73151         a char less than 256 to a char not less than 256.
73152
73153 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73154
73155         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73156         NT-Emacs only.
73157         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73158         so that re_search functions only quit when callers expect them to.
73159
73160 2000-10-23  Jim Meyering  <meyering@lucent.com>
73161
73162         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73163         wrong.  That set_locale call must not have any side effects.
73164         From Paul Eggert.
73165
73166 2000-10-22  Jim Meyering  <meyering@lucent.com>
73167
73168         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73169         [CYCLIC]: Remove now-unused definition.
73170
73171         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73172         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73173         Suggestion from Ulrich Drepper.
73174
73175 2000-10-21  Jim Meyering  <meyering@lucent.com>
73176
73177         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73178         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73179         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73180
73181 2000-10-21  Jim Meyering  <meyering@lucent.com>
73182
73183         * lib/dirname.c (memrchr): Declare if necessary.
73184         (dir_name): Remove the restriction that there be no
73185         trailing slashes.  Now, this code skips past them, effectively
73186         ignoring them.
73187         [TEST_DIRNAME] (main): New unit tests.
73188
73189         * lib/memrchr.c: New file from GNU libc.
73190         Undef __memrchr, too.
73191         [!weak_alias]: Define __memrchr to memrchr.
73192         Guard weak_alias use with `#ifdef weak_alias'.
73193
73194 2000-10-21  Jim Meyering  <meyering@lucent.com>
73195
73196         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73197         (dir_name): Use dir_name_r.
73198         * lib/dirname.h (dir_name_r): Declare it.
73199
73200 2000-10-17  Jim Meyering  <meyering@lucent.com>
73201
73202         * lib/quote.h (PARAMS): Define and use.
73203         Reported by Akim Demaille.
73204
73205         * lib/getopt.c: Update from libc.
73206
73207 2000-10-16  Jim Meyering  <meyering@lucent.com>
73208
73209         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73210         setlocale.
73211         From Jan Fedak.
73212
73213 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73214
73215         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73216
73217 2000-09-25  Jim Meyering  <meyering@lucent.com>
73218
73219         * lib/md5.h (rol): Define (from GnuPG).
73220
73221         * lib/sha.c: Give credit (GnuPG) where due.
73222         (M): Use rol rather than open-coding it.
73223         Add a FIXME comment.
73224
73225 2000-09-21  Jim Meyering  <meyering@lucent.com>
73226
73227         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73228         Reported by Michael Stone.
73229
73230 2000-09-20  Jim Meyering  <meyering@lucent.com>
73231
73232         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73233         (noinst_HEADERS): Add sha.h.
73234         Based on code from Scott G. Miller and from GnuPG.
73235
73236 2000-09-18  Jim Meyering  <meyering@lucent.com>
73237
73238         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73239         LIBS. Otherwise, everyone ends up linking with -lelf for some
73240         configurations.
73241         Reported by Mike Stone.
73242
73243 2000-09-15  Jim Meyering  <meyering@lucent.com>
73244
73245         * lib/regex.c: Update from libc.
73246
73247 2000-09-10  Jim Meyering  <meyering@lucent.com>
73248
73249         * lib/getopt.c (_getopt_internal): Update from glibc.
73250
73251 2000-09-09  Jim Meyering  <meyering@lucent.com>
73252
73253         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73254         think it should be used as a general replacement for isascii.
73255         * lib/fnmatch.c: Likewise.
73256         * lib/mbswidth.c: Likewise
73257         * lib/regex.c: Likewise.
73258
73259         Don't use atoi.
73260         * lib/userspec.c: Include sys/param.h and limits.h.
73261         Include xstrtol.h.
73262         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73263         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73264         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73265         UID, GID.  Check range.
73266
73267 2000-09-06  Jim Meyering  <meyering@lucent.com>
73268
73269         * lib/getopt.c (_getopt_internal): Update from glibc.
73270
73271 2000-08-30  Jim Meyering  <meyering@lucent.com>
73272
73273         * lib/strftime.c: Merge in changes from GNU libc.
73274
73275 2000-08-26  Jim Meyering  <meyering@lucent.com>
73276
73277         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73278         * m4/fpending.m4: New file.
73279
73280 2000-08-26  Jim Meyering  <meyering@lucent.com>
73281
73282         * lib/closeout.c: Include "__fpending.h".
73283         (close_stdout_status): Return right away if there's nothing to flush.
73284
73285         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73286         * lib/__fpending.c: New file.
73287         * lib/__fpending.h: New file.
73288
73289 2000-08-20  Jim Meyering  <meyering@lucent.com>
73290
73291         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
73292         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
73293         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
73294
73295 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
73296
73297         Improve fileutils installation on systems where running
73298         programs (like install) can't be unlinked.
73299         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
73300         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
73301
73302 2000-08-07  Paul Eggert  <eggert@twinsun.com>
73303
73304         Standardize on "memory exhausted" instead of "Memory exhausted"
73305         or "virtual memory exhausted".
73306         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
73307         "virtual memory exhausted".
73308         * lib/same.c (same_name): Invoke xalloc_die instead of printing
73309         our own message.
73310         * lib/userspec.c (parse_user_spec): Likewise.
73311         * lib/bumpalloc.h: comment fix
73312         * lib/same.c, userspec.c: Include xalloc.h.
73313
73314         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
73315         not char *const and pointing to a constant array.
73316         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
73317         (xrealloc): Comment fix.
73318
73319         * lib/userspec.c (parse_user_spec):
73320         Don't translate a message until just before returning,
73321         to avoid unnecessary translation.
73322
73323 2000-08-07  Jim Meyering  <meyering@lucent.com>
73324
73325         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
73326         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
73327         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
73328         getgroups.c, gethostname.c, getopt.h, group-member.c,
73329         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
73330         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
73331         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
73332         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
73333         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
73334         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73335         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73336         yesno.c: Back out Copyright date changes for each file with no change
73337         this year.  This eases coordination with other programs using the same
73338         source code modules.  From Paul Eggert.
73339
73340 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73341
73342         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73343         not char, for compatibility with glibc 2.1.3 strftime.c.
73344
73345 2000-08-03  Greg McGary  <greg@mcgary.org>
73346
73347         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73348         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73349         (EXTEND_BUFFER): Use them.
73350
73351 2000-08-01  Jim Meyering  <meyering@lucent.com>
73352
73353         * lib/dirname.c (ISSLASH): Define.
73354         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73355         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73356         both `\' and `/' may be use as path separators.
73357         Based on a patch from Prashant TR.
73358
73359 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73360
73361         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73362         slot vector a constant, since it might get modified.
73363
73364 2000-07-31  Jim Meyering  <meyering@lucent.com>
73365
73366         * lib/xmalloc.c: Use `virtual memory exhausted', not
73367         `Memory exhausted'.
73368         * lib/obstack.c (print_and_abort): Likewise.
73369
73370 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73371
73372         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73373         buffer, so that the caller can always quote one small
73374         component of a "memory exhausted" message in slot 0.
73375         From a suggestion by Jim Meyering.
73376
73377 2000-07-30  Jim Meyering  <meyering@lucent.com>
73378
73379         * lib/makepath.c (make_path): Quote the other instance, too.
73380
73381         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73382         (STATIC_BUF_SIZE): Define.
73383         (quotearg_n_options): Use only statically allocated storage when
73384         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73385         than STATIC_BUF_SIZE.
73386
73387 2000-07-29  Jim Meyering  <meyering@lucent.com>
73388
73389         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73390         * lib/dirname.c (dir_name): Likewise.
73391
73392         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73393         `/'.
73394
73395         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73396         (dir_name): Assert that there are no trailing slashes.
73397
73398 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73399
73400         * lib/mbswidth.h (mbswidth): Add a flags argument.
73401         (mbswidth): New declaration.
73402         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73403         * lib/mbswidth.c (mbswidth): Add a flags argument.
73404         (mbsnwidth): New function.
73405
73406 2000-07-24  Jim Meyering  <meyering@lucent.com>
73407
73408         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73409
73410 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73411
73412         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73413
73414 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73415
73416         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73417         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73418         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73419         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73420         invoke multibyte primitives.
73421
73422 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73423
73424         * lib/quotearg.c:
73425         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73426         so that mbstate_t is always defined.
73427
73428         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73429         be 1 in at least one GCC installation, and this configuration
73430         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73431         performance on hosts that have mbrtowc but have only unibyte
73432         locales, but I assume these hosts are rare.
73433
73434 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73435
73436         * lib/mbswidth.c (_XOPEN_SOURCE):
73437         Don't define; this causes problems on Solaris 7.
73438         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73439
73440 2000-07-23  Jim Meyering  <meyering@lucent.com>
73441
73442         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73443         too: getgrgid, getpwuid, getuid.
73444
73445 2000-07-23  Jim Meyering  <meyering@lucent.com>
73446
73447         * lib/basename.c (base_name): Add an assertion.
73448
73449 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73450
73451         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73452         shadow its mbsinit function.
73453
73454 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73455
73456         * lib/mbswidth.h: New file.
73457         * lib/mbswidth.c: New file.
73458         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73459         (noinst_HEADERS): Add mbswidth.h.
73460
73461 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73462
73463         * lib/config.charset: Add support for FreeBSD. Improve support for
73464         HP-UX and IRIX 6.
73465
73466 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73467
73468         * m4/mbswidth.m4: New file.
73469         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73470
73471 2000-07-15  Jim Meyering  <meyering@lucent.com>
73472
73473         * lib/makepath.c: Include quote.h.
73474         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73475         corresponding argument in a `quote (...)' call.
73476         Give better diagnostics.
73477
73478         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73479         (noinst_HEADERS): Add quote.h.
73480
73481         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73482         from tar's src/misc.c.
73483         * lib/quote.h: New file.  Prototypes for same.
73484
73485 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73486
73487         From a suggestion by Bruno Haible.
73488         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73489         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73490         to decide whether to define the BeOS workaround macro;
73491         this adjusts to the change to AC_MBSTATE_T.
73492
73493 2000-07-14  Jim Meyering  <meyering@lucent.com>
73494
73495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73496         jm_AC_TYPE_UINTMAX_T.
73497
73498 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73499
73500         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73501
73502         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73503         quotearg_buffer_restyled): Add support for
73504         clocale_quoting_style.  Undo previous change to
73505         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73506         and "{RIGHT QUOTATION MARK}" msgids.
73507
73508 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73509
73510         From a suggestion by Bruno Haible.
73511         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73512         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73513         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73514         and mbstate_t, to a single-part test that simply defines mbstate_t.
73515         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73516         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73517
73518 2000-07-10  Jim Meyering  <meyering@lucent.com>
73519
73520         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73521
73522         * m4/gnu-source.m4: Output to confdefs.h directly.
73523         Suggestion from Akim Demaille.
73524
73525 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73526
73527         The old behavior of quoting `like this' doesn't look good with
73528         newer, ISO-style fonts.  See:
73529         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73530
73531         Instead, quote "like this" by default.  Let the translator
73532         tailor the locale-specific quoting behavior by providing
73533         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73534
73535         * lib/quotearg.c (N_): New macro.
73536         (gettext_default): New function.
73537         (quotearg_buffer_restyled): Use
73538         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73539         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73540
73541 2000-07-09  Jim Meyering  <meyering@lucent.com>
73542
73543         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73544         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73545
73546         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73548
73549 2000-07-09  Jim Meyering  <meyering@lucent.com>
73550
73551         * lib/Most files: Update copyright dates to include 2000.
73552
73553 2000-07-08  Jim Meyering  <meyering@lucent.com>
73554
73555         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73556         if not defined.
73557         (xgethostname): Remove now-unnecessary #ifdef.
73558         Move declaration of `err' into loop where it's used.
73559
73560 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73561         and Bruno Haible  <haible@clisp.cons.org>
73562
73563         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73564         only if the test for an object-type mbstate_t fails.  This
73565         prevents us from mistakenly reporting that mbstate_t is a
73566         system object type after we "#define mbstate_t int" to work
73567         around its lack.
73568
73569 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73570         and Bruno Haible  <haible@clisp.cons.org>
73571
73572         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73573
73574 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73575
73576         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73577         to strerror_r.
73578         Include <ctype.h> for use of isalpha.
73579
73580 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73581
73582         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73583         by allocating a larger buffer. Test the gethostname return value for
73584         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73585         returns an error and ENAMETOOLONG isn't defined.
73586
73587 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73588
73589         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73590         dimension.
73591
73592 2000-07-04  Jim Meyering  <meyering@lucent.com>
73593
73594         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73595         of the deprecated AC_CHECKING.
73596
73597 2000-07-04  Jim Meyering  <meyering@lucent.com>
73598
73599         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73600         Reported by Bruno Haible.
73601
73602 2000-07-04  Jim Meyering  <meyering@lucent.com>
73603
73604         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73605         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73606         lacks mbrtowc.
73607
73608 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73609
73610         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73611         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73612
73613 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73614         and Bruno Haible  <haible@clisp.cons.org>
73615
73616         * lib/quotearg.c (mbrtowc):
73617         Assign to *pwc, and return 1 only if result is nonzero.
73618         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73619
73620 2000-07-03  Jim Meyering  <meyering@lucent.com>
73621
73622         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73623
73624 2000-07-03  Jim Meyering  <meyering@lucent.com>
73625
73626         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73627         This is necessary to get a definition of e.g., UTMP_FILE on
73628         HP-UX 10.20.
73629         From Bob Proulx.
73630
73631 2000-07-02  Jim Meyering  <meyering@lucent.com>
73632
73633         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73634
73635         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73636         AC_LIBOBJ(function_name).
73637         * m4/chown.m4: Likewise.
73638         * m4/fnmatch.m4: Likewise.
73639         * m4/ftruncate.m4: Likewise.
73640         * m4/getgroups.m4: Likewise.
73641         * m4/getline.m4: Likewise.
73642         * m4/group-member.m4: Likewise.
73643         * m4/jm-macros.m4: Likewise.
73644         * m4/lstat.m4: Likewise.
73645         * m4/malloc.m4: Likewise.
73646         * m4/memcmp.m4: Likewise.
73647         * m4/nanosleep.m4: Likewise.
73648         * m4/putenv.m4: Likewise.
73649         * m4/realloc.m4: Likewise.
73650         * m4/regex.m4: Likewise.
73651         * m4/stat.m4: Likewise.
73652         * m4/strftime.m4: Likewise.
73653
73654 2000-07-02  Jim Meyering  <meyering@lucent.com>
73655
73656         * lib/quotearg.c (mbstate_t): Don't define here.
73657
73658 2000-07-02  Jim Meyering  <meyering@lucent.com>
73659
73660         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73661
73662 2000-07-01  Jim Meyering  <meyering@lucent.com>
73663
73664         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73665
73666 2000-07-01  Jim Meyering  <meyering@lucent.com>
73667
73668         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73669         problem.
73670
73671 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73672
73673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73674         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73675
73676 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73677
73678         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73679         per change in ../m4/ls-mntd-fs.m4.
73680         (read_filesystem_list): Ignore symbolic links.
73681
73682 2000-06-29  Jim Meyering  <meyering@lucent.com>
73683
73684         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73685         for declaration of strcmp.
73686
73687         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73688
73689         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73690         Avoid warning by casting result to `char *' to remove `const'.
73691
73692 2000-06-28  Jim Meyering  <meyering@lucent.com>
73693
73694         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73695         included by quotearg.c, for which we perform this test.  From
73696         Bruno Haible.
73697
73698 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73699
73700         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73701         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73702         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73703
73704 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73705
73706         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73707
73708 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73709
73710         savedir now sets errno on failure and invokes xmalloc to get memory.
73711         Fix a couple of other minor bugs while we're at it.
73712
73713         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73714         (NAMLEN): Remove macro.
73715         (malloc, realloc): Remove decls.
73716         (stpcpy): Likewise.
73717         ("xalloc.h"): Include.
73718         (NAME_SIZE_DEFAULT): New macro.
73719         (savedir): Use xmalloc / xrealloc to allocate memory.
73720         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73721         Skip "" directory entries.
73722         Use strlen to calculate directory entry length, since the old method
73723         is rarely used these days and isn't worth supporting.
73724         Don't use a pointer after freeing it.
73725         Check for integer overflow when calculating allocation size.
73726         Use memcpy to copy entries, instead of stpcpy.
73727         Set errno properly when returning NULL.
73728         Check for readdir error.
73729
73730 2000-06-26  Jim Meyering  <meyering@lucent.com>
73731
73732         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73733
73734 2000-06-25  Jim Meyering  <meyering@lucent.com>
73735
73736         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73737         Linux header bug when _XOPEN_SOURCE is defined to 500.
73738
73739 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73740
73741         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73742         deficiency.
73743
73744 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73745
73746         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73747         Include xalloc.h.
73748         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73749
73750 2000-06-24  Jim Meyering  <meyering@lucent.com>
73751
73752         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73753         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73754         for which strerror does return char*, but which lacks a conveniently
73755         accessible declaration of the function.  If the compile-test says
73756         strerror_r doesn't work, then resort to a `run'-test that works on
73757         BeOS and segfaults on DEC Unix.
73758
73759 2000-06-24  Jim Meyering  <meyering@lucent.com>
73760
73761         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73762
73763 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73764
73765         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73767
73768 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73769
73770         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73771         (mbrtowc, mbstate_t): Define substitutes if
73772         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73773         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73774         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73775
73776 2000-06-23  Jim Meyering  <meyering@lucent.com>
73777
73778         * m4/afs.m4: Add missing AC_MSG_RESULT.
73779         Reported by Bruno Haible.
73780
73781         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73782         Suggestion from Bruno Haible.
73783
73784 2000-06-23  Jim Meyering  <meyering@lucent.com>
73785
73786         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73787
73788 2000-06-21  Jim Meyering  <meyering@lucent.com>
73789
73790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73791
73792 2000-06-21  Jim Meyering  <meyering@lucent.com>
73793
73794         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73795         (noinst_HEADERS): Add getstr.h.
73796
73797         * lib/getline.c (getstr): Move into a separate file.
73798         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73799         the following changes: new parameter, delim2; both delim[12]
73800         parameters have type `int', not `char'.  The latter would lose
73801         with 8-bit delimiters.
73802         * lib/getstr.h: New file.
73803
73804 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73805
73806         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73807         than 1024, return a memory chunk of least possible size, instead
73808         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73809         Use free/xmalloc instead of xrealloc to avoid copying for very long
73810         paths.
73811
73812 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73813
73814         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73815         the empty string.
73816
73817 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73818
73819         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73820         address, not strdup.  Include <stdlib.h> and don't declare free().
73821
73822 2000-06-19  Jim Meyering  <meyering@lucent.com>
73823
73824         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73825
73826 2000-06-18  Jim Meyering  <meyering@lucent.com>
73827
73828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73829
73830         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73831         `checking whether...' message to be consistent with that of the
73832         lstat test.
73833
73834 2000-06-18  Jim Meyering  <meyering@lucent.com>
73835
73836         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73837         Besides, these days every porting target provides a mkdir function.
73838
73839         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73840         needed. (this snippet comes from src/system.h).
73841
73842 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73843
73844         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73845
73846 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73847
73848         * lib/human.c (adjust_value): New function.
73849         (human_readable_inexact): Apply rounding style even when
73850         printing approximate values.
73851
73852 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73853
73854         * lib/human.c (human_readable_inexact): Allow an input block
73855         size that is not a multiple of the output block size, and vice versa.
73856         Reported by Piergiorgio Sartor.
73857
73858 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73859
73860         * lib/getdate.y (get_date): Apply relative times after time
73861         zone indicator, not before.  Reported by Todd A. Jacobs.
73862
73863 2000-06-13  Jim Meyering  <meyering@lucent.com>
73864
73865         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73866
73867         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73868
73869 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73870
73871         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73872
73873 2000-06-12  Jim Meyering  <meyering@lucent.com>
73874
73875         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73876         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73877         optional argument.
73878         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73879         the optional argument, `lib'.
73880
73881 2000-06-08  Jim Meyering  <meyering@lucent.com>
73882
73883         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73884
73885 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73886
73887         Rewrite largefile configuration so that we don't need to run
73888         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73889         AC_CANONICAL_HOST in configure.in -- jmm]
73890
73891         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73892         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73893         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73894         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73895         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73896         All uses changed.
73897         Instead of inspecting the output of getconf, try to compile the
73898         test program without and with the macro definition.
73899         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73900         for getconf.  Instead, check for the needed flags by compiling
73901         test programs.
73902
73903 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73904
73905         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73906
73907 2000-06-04  Jim Meyering  <meyering@lucent.com>
73908
73909         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73910         SunOS 4.1.4 for which gid_t is an unsigned type.
73911
73912 2000-06-03  Jim Meyering  <meyering@lucent.com>
73913
73914         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73915         now that autoconf requires that.
73916
73917         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73918         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73919         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73920
73921 2000-06-03  Jim Meyering  <meyering@lucent.com>
73922
73923         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73924
73925 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73926
73927         * m4/glibc21.m4: New file.
73928         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73929
73930 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73931
73932         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73933         newer, don't install charset.alias.
73934         * lib/config.charset: Change the Linux/glibc rules so they become empty
73935         on glibc-2.1 or newer.
73936
73937 2000-06-02  Jim Meyering  <meyering@lucent.com>
73938
73939         * lib/mountlist.c: Back out last change.  Instead, do this...
73940         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73941         me_dummy member using the same `ignore'-testing code.
73942         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73943         fs_type strings.
73944         From Mark D. Roth.
73945
73946 2000-05-29  Jim Meyering  <meyering@lucent.com>
73947
73948         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73949         mounts with the `ignore' attribute.  Based on a patch from
73950         Mark D. Roth.
73951
73952 2000-05-28  Jim Meyering  <meyering@lucent.com>
73953
73954         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73955         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73956         * m4/stat.m4: Likewise.
73957         * m4/lstat.m4: Likewise.
73958         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73959
73960         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73961         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73962
73963 2000-05-26  Jim Meyering  <meyering@lucent.com>
73964
73965         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73966
73967 2000-05-24  Jim Meyering  <meyering@lucent.com>
73968
73969         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73970         autoconf requires that.
73971         * m4/lib-check.m4: Likewise.
73972         * m4/jm-macros.m4: Likewise.
73973         * m4/strftime.m4: Likewise.
73974
73975         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73976         AC_CHECK_DECLS, now that autoconf requires that.
73977
73978 2000-05-22  Jim Meyering  <meyering@lucent.com>
73979
73980         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73981         * m4/lstat.m4: Likewise.
73982
73983 2000-05-22  Jim Meyering  <meyering@lucent.com>
73984
73985         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73986
73987 2000-05-20  Jim Meyering  <meyering@lucent.com>
73988
73989         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73990         (jm_PREREQ): Use it.
73991
73992 2000-05-18  Jim Meyering  <meyering@lucent.com>
73993
73994         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73995         back, too, since it may have been modified by allocate_entry.
73996         (hash_delete): Rewrite to use neither the assignment operator
73997         nor the comma operator in an if-expression.
73998
73999 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74000
74001         * lib/closeout.c:
74002         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74003         Remove; no longer needed.
74004         "quotearg.h": Add include.
74005         (file_name): Do not bother to explicitly initialize to NULL; it's less
74006         efficient on some hosts.
74007         (close_stdout_status): Remove test as to whether stdout was already
74008         closed; it breaks for the case "echo x | sort >&-".
74009         Quote file name colons.
74010         Do not assume that _("write error") lacks format strings.
74011
74012 2000-05-15  Jim Meyering  <meyering@lucent.com>
74013
74014         * lib/version-etc.c (version_etc_copyright): Update the copyright
74015         string used in all --version output.
74016
74017 2000-05-14  Jim Meyering  <meyering@lucent.com>
74018
74019         * lib/closeout.c (close_stdout_set_file_name): New function.
74020         (close_stdout_status): Use new file-scoped global.
74021         Return right away if fstat says the stdout file descriptor is invalid.
74022         * lib/closeout.h (close_stdout_set_file_name): Declare.
74023
74024 2000-05-10  Jim Meyering  <meyering@lucent.com>
74025
74026         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74027         (close_stdout_set_status): New function.
74028         * lib/closeout.h (close_stdout_set_status): Declare.
74029
74030 2000-05-09  Jim Meyering  <meyering@lucent.com>
74031
74032         * m4/gettext.m4: Rename this...
74033         * m4/libintl.m4: ...to this.
74034
74035 2000-05-08  Jim Meyering  <meyering@lucent.com>
74036
74037         * lib/long-options.c: Don't include closeout.h.
74038         (parse_long_options): Don't call close_stdout for --version.
74039
74040 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74041
74042         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74043         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74044         2.1.3 bug.  This avoids a clash when files like regex.c define
74045         _GNU_SOURCE.
74046
74047 2000-05-06  Jim Meyering  <meyering@lucent.com>
74048
74049         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74050         (AC_REPLACE_FUNCS): Add strnlen.
74051
74052         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74053         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74054
74055         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74056         AC_SEARCH_LIBS call for nanosleep.
74057         (LIB_NANOSLEEP): Set and AC_SUBST.
74058
74059 2000-05-06  Jim Meyering  <meyering@lucent.com>
74060
74061         * lib/strnlen.c: Undefine __strnlen and strnlen.
74062         [!weak_alias]: Define __strnlen to strnlen.
74063
74064         * lib/atexit.c: New file, from libiberty.
74065
74066 2000-05-06  Jim Meyering  <meyering@lucent.com>
74067
74068         * lib/closeout.c (close_stdout_status): Also check for errors on the
74069         stderr stream.
74070
74071 2000-05-05  Jim Meyering  <meyering@lucent.com>
74072
74073         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74074         AC_SEARCH_LIBS call for clock_gettime.
74075         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74076
74077         * m4/search-libs.m4: Update from autoconf.
74078
74079         su doesn't work on Solaris 2.6.
74080         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74081         <shadow.h>.  Reported by Dragos Harabor.
74082
74083 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74084
74085         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74086         memcpy instead of xmalloc, xrealloc, path_concat.
74087         (locale_charset): Treat empty environment variables as absent.
74088         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74089
74090 2000-05-04  Jim Meyering  <meyering@lucent.com>
74091
74092         * lib/getopt.c: Update from glibc.
74093         * lib/obstack.c: Likewise.
74094         * lib/obstack.h: Likewise.
74095         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74096         file
74097
74098         * lib/regex.h: Likewise.
74099         * lib/strndup.c: Likewise.
74100         * lib/strnlen.c: New file, from glibc.
74101
74102 2000-05-03  Jim Meyering  <meyering@lucent.com>
74103
74104         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74105
74106 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74107
74108         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74109         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74110         compile-time test, rather than inspecting host and OS, to
74111         decide whether to define _LARGEFILE_SOURCE.
74112
74113 2000-05-01  Jim Meyering  <meyering@lucent.com>
74114
74115         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74116
74117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74118         Based on a patch from Bruno Haible.
74119
74120 2000-05-01  Jim Meyering  <meyering@lucent.com>
74121
74122         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74123
74124 2000-04-29  Jim Meyering  <meyering@lucent.com>
74125
74126         * lib/path-concat.c: Declare strdup only if it's not defined.
74127         * lib/canon-host.c: Likewise.
74128
74129 2000-04-28  Jim Meyering  <meyering@lucent.com>
74130
74131         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74132         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74133         is included first, then limits.h is included by locale.h by libintl.h.
74134         From John David Anglin.
74135
74136 2000-04-25  Jim Meyering  <meyering@lucent.com>
74137
74138         * lib/makepath.c (S_IRWXUGO): Define.
74139         (make_path): Always perform explicit chmod if MODE specifies any
74140         of the `special' permission bits.  Prompted by a bug report against
74141         install from Mate Wierdl and Joost van Baal.
74142
74143 2000-04-18  Jim Meyering  <meyering@lucent.com>
74144
74145         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74146         (jm_PREREQ): Use it.
74147
74148 2000-04-18  Jim Meyering  <meyering@lucent.com>
74149
74150         * lib/README: New file.
74151
74152         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74153         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74154
74155 2000-04-17  Jim Meyering  <meyering@lucent.com>
74156
74157         Get it right :-)
74158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74159         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74160         Suggestion from Akim Demaille.
74161
74162 2000-04-17  Jim Meyering  <meyering@lucent.com>
74163
74164         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74165         the definition of it to rpl_strftime also defined-away the system's
74166         declaration.
74167
74168 2000-04-15  Jim Meyering  <meyering@lucent.com>
74169
74170         Use `C' to denote so-called `contiguous' files, the same way
74171         that tar does.
74172         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74173         (ftypelet): Use S_ISCTG.
74174         From Michael Deutschmann.
74175
74176 2000-04-14  Jim Meyering  <meyering@lucent.com>
74177
74178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74179         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74180         clobbered.
74181
74182 2000-04-14  Jim Meyering  <meyering@lucent.com>
74183
74184         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74185
74186 2000-04-13  Jim Meyering  <meyering@lucent.com>
74187
74188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74189         AH_VERBATIM to insert required #ifndef into config.h.in.
74190         Suggestion from Akim Demaille.
74191
74192 2000-04-12  Jim Meyering  <meyering@lucent.com>
74193
74194         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74195         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74196         Christian Krackowizer.
74197
74198         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74199         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74200         (AC_SYS_LARGEFILE): Require.
74201         (AM_C_PROTOTYPES): Require.
74202
74203 2000-04-08  Jim Meyering  <meyering@lucent.com>
74204
74205         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74206         names don't conflict.  Reported by Eli Zaretskii.
74207
74208 2000-04-07  Jim Meyering  <meyering@lucent.com>
74209
74210         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74211         sys/types.h, to work around system header problems on AIX 3.2.5.
74212         From Bruno Haible.
74213
74214 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74215
74216         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74217         bug.  Deal with the different error behavior of Irix iconv.
74218
74219 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74220
74221         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74222         IRIX if the installer said otherwise.
74223
74224 2000-04-05  Jim Meyering  <meyering@lucent.com>
74225
74226         Portability tweaks required for ultrix4.3.
74227         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74228         (jm_CHECK_DECLS): Add getutent to the list of functions.
74229         (_jm_DECL_HEADERS): Add utmpx.h.
74230         From John David Anglin.
74231
74232         * m4/strftime.m4: Back out the 2000-04-02 change.
74233         Instead of that change, simply undefine putenv in the test program.
74234
74235 2000-04-05  Jim Meyering  <meyering@lucent.com>
74236
74237         Portability tweaks required for ultrix4.3.
74238         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74239         getutent.
74240         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74241         * lib/canon-host.c: Declare strdup.
74242         * lib/path-concat.c: Likewise.
74243         From John David Anglin.
74244
74245 2000-04-04  Jim Meyering  <meyering@lucent.com>
74246
74247         Be more DOS 8.3-friendly.
74248         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74249         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74250         * lib/Makefile.am: Reflect renaming.
74251         Reported by Eli Zaretskii.
74252
74253         Use a temporary file name that won't clash with `charset.alias'
74254         in the DOS 8.3 name space.
74255         * lib/Makefile.am (charset_tmp): Define.
74256         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74257         (uninstall-local): Likewise.
74258         Reported by Eli Zaretskii.
74259
74260 2000-04-03  Jim Meyering  <meyering@lucent.com>
74261
74262         * m4/gettext.m4: Fix typo in comment.
74263
74264         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74265         textutils/configure.in).  Suggestion from Paul Eggert.
74266         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74267
74268 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74269
74270         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74271         variable in the shell rather than using putenv, which isn't
74272         portable.  This avoids the configure-time inter-test dependency
74273         on the potentially-renamed putenv function.
74274
74275 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74276
74277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74278         before checking struct stat.st_blksize, so that
74279         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74280
74281 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74282
74283         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74284         since strftime.c uses HAVE_STRFTIME to decide whether to use
74285         the underlying strftime.
74286
74287 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74288
74289         * lib/time/strftime.c (my_strftime): Make sure we call the system
74290         strftime, not ourselves, when invoking the underlying strftime.
74291
74292 2000-03-24  Jim Meyering  <meyering@lucent.com>
74293
74294         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
74295         (charset_alias): Define.
74296         (install-exec-local): Factor out common code.
74297         (uninstall-local): Split lines longer than 80.
74298         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
74299         (SUFFIXES): Define.
74300         (.sed.in.sed): New rule.  Don't redirect directly to $@.
74301         (CLEANFILES): Add ref-add.sed and ref-del.sed.
74302
74303 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
74304
74305         * lib/config.charset: Output a line containing "Packages using this
74306         file".
74307         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
74308         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
74309         ref-del.sed): New rules.
74310
74311 2000-03-17  Jim Meyering  <meyering@lucent.com>
74312
74313         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
74314         Otherwise, include <strings.h>
74315
74316 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
74317
74318         * lib/unicodeio.c (utf8_wctomb): New function.
74319         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
74320         format instead of in UCS-4 with platform dependent endianness.
74321
74322 2000-03-10  Jim Meyering  <meyering@lucent.com>
74323
74324         * m4/lib-check.m4: Look for getspnam in -lgen, too.
74325         From Marco Franzen.
74326
74327 2000-03-07  Paul Eggert  <eggert@twinsun.com>
74328
74329         * lib/savedir.c (savedir): Work even if directory size is
74330         negative; this can happen with some screwy NFS configurations.
74331
74332 2000-03-06  Jim Meyering  <meyering@lucent.com>
74333
74334         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74335         if it's NULL (because we ran out of memory).  From Bruno Haible.
74336
74337 2000-03-05  Jim Meyering  <meyering@lucent.com>
74338
74339         * lib/localcharset.c ("path-concat.h"): Include.
74340         (get_charset_aliases): Use path_concat instead of ANSI string
74341         concatenation.
74342
74343         * lib/unicodeio.h (PARAMS): Define.
74344         Use it to guard prototype.
74345
74346 2000-03-04  Jim Meyering  <meyering@lucent.com>
74347
74348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74349         for lib/localcharset.c.
74350
74351 2000-03-04  Jim Meyering  <meyering@lucent.com>
74352
74353         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74354         installing into it.
74355         (uninstall-local): Uncomment this rule so `make distcheck' works
74356         once again.
74357
74358         * lib/unicodeio.c (<errno.h>): Include it.
74359         (errno): Declare if not defined.
74360
74361         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74362
74363         * lib/config.charset: New version, incorporating remarks from a linux
74364         i18n mailing list.  From Bruno Haible.
74365
74366 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74367
74368         * m4/codeset.m4: New file.
74369         * m4/iconv.m4: New file.
74370         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74371
74372 2000-03-03  Jim Meyering  <meyering@lucent.com>
74373
74374         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74375
74376 2000-03-02  Jim Meyering  <meyering@lucent.com>
74377
74378         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74379         the messages come out on separate lines.
74380
74381         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74382         rather than jm_CHECK_DECLARATIONS.
74383         * m4/decl.m4: Remove now-unused file.
74384
74385         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74386         geteuid.
74387
74388 2000-03-02  Jim Meyering  <meyering@lucent.com>
74389
74390         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74391
74392 2000-03-01  Jim Meyering  <meyering@lucent.com>
74393
74394         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74395         * lib/unicodeio.c: Likewise.
74396
74397 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74398
74399         * lib/config.charset: New file.
74400         * lib/localcharset.c: New file.
74401         * lib/unicodeio.h, lib/unicodeio.c: New files.
74402         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74403         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74404         (noinst_HEADERS): Add unicodeio.h.
74405         (all-local, install-exec-local, charset.alias): New targets.
74406
74407 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74408
74409         * lib/quotearg.c (ALERT_CHAR): New macro.
74410         (quotearg_buffer_restyled): Use it.
74411
74412 2000-02-27  Jim Meyering  <meyering@lucent.com>
74413
74414         * m4/check-decl.m4: Add getenv to the list.
74415
74416 2000-02-27  Jim Meyering  <meyering@lucent.com>
74417
74418         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74419         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74420
74421         * lib/backupfile.c: Guard inclusion of stdlib.h with
74422         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74423         Declare malloc if needed.
74424
74425         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74426         `#ifndef HAVE_DECL..'
74427         now that autoconf always defines the HAVE_DECL_ symbols.
74428         * lib/human.c: Likewise.
74429         * lib/same.c: Likewise.
74430         * lib/strtoumax.c: Likewise.
74431
74432         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74433         declaration check was not run.
74434         * lib/hash.c: Likewise.
74435         * lib/human.c: Likewise.
74436         * lib/same.c: Likewise.
74437         * lib/strtoumax.c: Likewise.
74438
74439         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74440         `.', then first look up the entire `.'-containing string as a login
74441         name.
74442
74443 2000-02-23  Jim Meyering  <meyering@lucent.com>
74444
74445         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74446         in place of my hack.
74447
74448 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74449
74450         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74451         (textint): New typedef.
74452         (parser_control): Member year changed from int to textint.
74453         All uses changed.
74454         (YYSTYPE): Removed; replaced by %union with int and textint members.
74455         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74456         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74457         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74458         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74459         (date, number, to_year): Use width of number in digits, not its value,
74460         to determine whether it's a 2-digit year, or a 2-digit time.
74461         (yylex): Store number of digits of numeric tokens.
74462         Reported by John Kendall.
74463
74464         (parser_control): Changed from struct parser_control to typedef (for
74465         consistency).  All uses changed.
74466
74467         (tID): Removed; not used.
74468         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74469
74470 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74471
74472         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74473         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74474
74475 2000-02-12  Jim Meyering  <meyering@lucent.com>
74476
74477         * lib/userspec.c (ISDIGIT): Define it.
74478         (isdigit): Remove definition.
74479         (is_number): Use ISDIGIT, not isdigit.
74480         <libintl.h>: Include.
74481         (_ and N_): Define.
74482         (parse_user_spec): Mark translatable strings.
74483
74484 2000-02-10  Jim Meyering  <meyering@lucent.com>
74485
74486         With these changes, nanosleep.[ch] are finally enough like the other
74487         lib/* replacement files to compile on a few more losing systems.
74488
74489         * lib/nanosleep.h: Don't include config.h.
74490         Remove prototype from declaration of nanosleep.
74491         (PARAMS): Remove now-unneeded definition.
74492         * lib/nanosleep.c: #undef nanosleep.
74493         (rpl_nanosleep): Rename from nanosleep.
74494
74495 2000-02-10  Jim Meyering  <meyering@lucent.com>
74496
74497         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74498         gnu_nanosleep to rpl_nanosleep.
74499
74500 2000-02-09  Jim Meyering  <meyering@lucent.com>
74501
74502         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74503         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74504
74505 2000-02-08  Akim Demaille  <akim@epita.fr>
74506
74507         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74508         `[' and `]' and remove uses of `changequote'.
74509         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74510         (AC_SYS_LARGEFILE): Likewise.
74511         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74512         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74513         of changequote.
74514         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74515         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74516         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74517         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74518
74519 2000-02-05  Jim Meyering  <meyering@lucent.com>
74520
74521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74522         Remove explicit use of AC_HEADER_TIME.  It is required by
74523         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74524         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74525         in autoconf whereby the expansion of the latter ended up preceding
74526         the expansion of its prerequisite, AC_HEADER_TIME.
74527         Reported by Volker Borchert.
74528
74529 2000-02-03  Jim Meyering  <meyering@lucent.com>
74530
74531         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74532
74533 2000-02-03  Jim Meyering  <meyering@lucent.com>
74534
74535         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74536         rather than with `#if HAVE_UTMPNAME'.
74537
74538 2000-02-02  Jim Meyering  <meyering@lucent.com>
74539
74540         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74541         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74542         Reported by Eli Zaretskii.
74543
74544 2000-02-01  Jim Meyering  <meyering@lucent.com>
74545
74546         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74547
74548 2000-01-31  Jim Meyering  <meyering@lucent.com>
74549
74550         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74551         functions.  Add the time.h and sys/time.h headers along with the
74552         AC_REQUIRE'ment of AC_HEADER_TIME.
74553
74554 2000-01-31  Jim Meyering  <meyering@lucent.com>
74555
74556         * lib/nanosleep.h (nanosleep): Guard declaration with
74557         `#if ! HAVE_DECL_NANOSLEEP'.
74558         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74559         the declaration in that vendor's sys/timers.h.
74560         Reported by Christian Krackowizer.
74561
74562         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74563         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74564         (ISPRINT): Likewise.
74565         Reported by Tom Tromey.
74566
74567 2000-01-30  Jim Meyering  <meyering@lucent.com>
74568
74569         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74570
74571         * m4/prereq.m4 (utmp_includes): Define.
74572         Check for ut_user and ut_name members in both struct utmpx
74573         and struct utmp.
74574
74575 2000-01-30  Jim Meyering  <meyering@lucent.com>
74576
74577         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74578         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74579         header files where only utmpx.ut_user is declared.
74580
74581         * lib/readutmp.h (UT_USER): Define.
74582
74583 2000-01-29  Jim Meyering  <meyering@lucent.com>
74584
74585         * m4/lib-check.m4: New file containing library-related checks from
74586         fileutils and sh-utils (textutils had none).
74587
74588 2000-01-28  Jim Meyering  <meyering@lucent.com>
74589
74590         * m4/perl.m4: Change format of warning message to look more like that
74591         from the missing script.  Suggestion from François Pinard.
74592
74593 2000-01-25  Jim Meyering  <meyering@lucent.com>
74594
74595         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74596         well as time.h in the compile check.
74597         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74598         Fix typo in cross-compiling case: s/yes/no/.
74599
74600 2000-01-23  Jim Meyering  <meyering@lucent.com>
74601
74602         * m4/jm-macros.m4: Move df-related tests here from
74603         fileutils/configure.in
74604
74605         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74606         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74607
74608         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74609         s/space/ac_fsusage_space/.
74610         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74611
74612         * m4/ftruncate.m4: New file (derived from part of
74613         fileutils/configure.in).
74614         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74615         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74616
74617         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74618         AC_SUBST these here, rather than just in sh-util/configure.in, so
74619         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74620         all the same.
74621         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74622         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74623         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74624         (AC_SUBST(POW_LIBM)): Likewise.
74625         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74626
74627 2000-01-23  Jim Meyering  <meyering@lucent.com>
74628
74629         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74630         obstack.c.
74631
74632 2000-01-22  Jim Meyering  <meyering@lucent.com>
74633
74634         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74635
74636         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74637
74638         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74639         configure.in
74640         (AC_CHECK_HEADERS): Likewise for sh-utils.
74641         (AC_CHECK_HEADERS): Likewise for textutils.
74642         Merge the three lists of headers.
74643
74644         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74645         from fileutils' configure.in.
74646
74647         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74648         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74649         check-decl.m4.
74650
74651         * m4/check-decl.m4: Use #if rather than #ifdef.
74652         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74653         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74654         (_jm_DECL_HEADERS): Define new function.
74655         (jm_CHECK_DECLARATIONS): Require it.
74656
74657 2000-01-22  Jim Meyering  <meyering@lucent.com>
74658
74659         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74660         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74661         Required for some AIX systems.  Reported by Christian Krackowizer.
74662         [TESTING] (main): New function.
74663
74664         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74665         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74666         letters.
74667
74668         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74669         iswprint.
74670
74671         * lib/strverscmp.c (ISDIGIT): Define.
74672         (strverscmp): Use ISDIGIT, not isdigit.
74673
74674 2000-01-19  Jim Meyering  <meyering@lucent.com>
74675
74676         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74677         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74678         defines `struct timespec' in <sys/time.h>
74679
74680         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74681         Thanks to Akim for explaining.
74682
74683 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74684
74685         * lib/nanosleep.c (nanosleep):
74686         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74687         POSIX.1 doesn't require SA_INTERRUPT and some systems
74688         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74689         it's been part of POSIX.1 since day 1 (in 1988).
74690
74691 2000-01-17  Jim Meyering  <meyering@lucent.com>
74692
74693         * lib/interlock: Remove unused file.  Reported by François Pinard.
74694
74695 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74696
74697         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74698         alert, backslash, formfeed, and vertical tab unnecessarily in
74699         shell quoting style.
74700
74701 2000-01-16  Jim Meyering  <meyering@lucent.com>
74702
74703         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74704         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74705         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74706         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74707
74708 2000-01-16  Jim Meyering  <meyering@lucent.com>
74709
74710         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74711         because the latter didn't work.
74712
74713 2000-01-15  Jim Meyering  <meyering@lucent.com>
74714
74715         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74716         (AC_REPLACE_FUNCS): Add memcpy and memset.
74717         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74718         Add strpbrk.
74719         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74720
74721 2000-01-12  Jim Meyering  <meyering@lucent.com>
74722
74723         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74724         (jm_PREREQ): Use it.
74725         (jm_PREREQ_READUTMP): New macro.
74726         (jm_PREREQ): Use it.
74727
74728 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74729
74730         Quote multibyte characters correctly.
74731         * m4/c-bs-a.m4: New file.
74732         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74733         (jm_PREREQ): Use it.
74734
74735 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74736
74737         * m4/uintmax_t.m4: Port to autoconf 2.13.
74738
74739 2000-01-08  Jim Meyering  <meyering@ascend.com>
74740
74741         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74742         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74743
74744 2000-01-04  Jim Meyering  <meyering@ascend.com>
74745
74746         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74747         jm_STRUCT_DIRENT_D_TYPE.
74748         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74749         jm_STRUCT_DIRENT_D_INO.
74750         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74751         jm_STRUCT_UTIMBUF.
74752         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74753         renamings.
74754         * m4/utime.m4: Likewise.
74755
74756         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74757         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74758
74759 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74760
74761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74762         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74763
74764 2000-01-02  Jim Meyering  <meyering@ascend.com>
74765
74766         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74767         remember if this is necessary.
74768
74769 1999-12-26  Jim Meyering  <meyering@ascend.com>
74770
74771         * m4/jm-macros.m4: Use it here.
74772         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74773
74774 1999-12-23  Jim Meyering  <meyering@ascend.com>
74775
74776         * m4/jm-macros.m4: Check for clock_gettime (moved from
74777         fileutils/configure.in)
74778         Check for gettimeofday.
74779
74780 1999-12-20  Jim Meyering  <meyering@ascend.com>
74781
74782         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74783         autoconf-2.14a-1999-12-20.
74784
74785 1999-12-19  Jim Meyering  <meyering@ascend.com>
74786
74787         * m4/lstat-slash.m4: New file.
74788         * m4/jm-macros.m4: Use the new macro:
74789         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74790
74791 1999-12-07  Jim Meyering  <meyering@ascend.com>
74792
74793         * m4/perl.m4: Require that File::Compare be available, too.
74794         Too many systems seem to lack it.
74795
74796         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74797         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74798
74799 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74800
74801         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74802         problem with the QNX 4.25 shell, which doesn't propagate exit
74803         status of failed commands inside shell assignments.
74804
74805 1999-11-17  Jim Meyering  <meyering@ascend.com>
74806
74807         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74808
74809 1999-11-07  Jim Meyering  <meyering@ascend.com>
74810
74811         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74812
74813 1999-11-06  Jim Meyering  <meyering@ascend.com>
74814
74815         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74816         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74817
74818 1999-11-05  Jim Meyering  <meyering@ascend.com>
74819
74820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74821         configure.in of textutils, fileutils, and sh-utils into this one
74822         (shared between those packages) file.
74823         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74824         AC_STRUCT_ST_BLKSIZE.
74825
74826 1999-11-03  Jim Meyering  <meyering@ascend.com>
74827
74828         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74829         of AC_CHECK_TYPE checks includes unistd.h.
74830         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74831         Suggestion from Akim Demaille.
74832
74833 1999-10-30  Jim Meyering  <meyering@ascend.com>
74834
74835         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74836         m4-quoted string.
74837         * m4/ls-mntd-fs.m4: Likewise.
74838         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74839         * m4/jm-winsz1.m4: Likewise.
74840
74841         * m4/const.m4: Remove file, since the fix made it into the experimental
74842         version of autoconf.
74843         * m4/mktime.m4: Likewise.
74844
74845         * m4/check-type.m4: Remove file, now that the latest version of
74846         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74847
74848         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74849         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74850         AC_CHECK_TYPE.
74851
74852 1999-10-04  Jim Meyering  <meyering@ascend.com>
74853
74854         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74855
74856 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74857
74858         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74859         2.95.1 bug with HP-UX 10.20.
74860
74861 1999-09-17  Jim Meyering  <meyering@ascend.com>
74862
74863         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74864         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74865         due to missing strdup (against sh-utils-2.0).
74866
74867 1999-08-29  Jim Meyering  <meyering@ascend.com>
74868
74869         * m4/jm-macros.m4: Require jm_BISON.
74870         * m4/bison.m4: New file.
74871
74872 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74873
74874         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74875         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74876
74877 1999-08-05  Jim Meyering  <meyering@ascend.com>
74878
74879         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74880         to avoid conflicts with `conftest' on 8+3 filesystems.
74881         Suggestion from Eli Zaretskii.
74882
74883 1999-08-04  Jim Meyering  <meyering@ascend.com>
74884
74885         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74886         fileutils and sh-utils (textutils's getline test was inadequate).
74887         (AM_FUNC_GETLINE): Run this test.
74888         (AC_CHECK_FUNCS): Check for getdelim.
74889         Reported by Bob Proulx.
74890
74891 1999-08-02  Jim Meyering  <meyering@ascend.com>
74892
74893         * m4/jm-macros.m4: Add a comment.
74894
74895 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74896
74897         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74898         <inttypes.h> defines strtoumax as a macro (and not as a
74899         function).
74900
74901 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74902
74903         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74904         that we can shift, multiply and divide unsigned long long
74905         values; Ultrix cc can't do it.
74906
74907 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74908
74909         * m4/mktime.m4: New file, which is a preview of what should appear
74910         in the next public autoconf release.
74911
74912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74913
74914         * m4/lfs.m4: Remove this file.
74915         * m4/largefile.m4: New file.  It contains the old contents of
74916         lfs.m4, except that all names with prefix AC_LFS have been
74917         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74918         compatible with future autoconf versions.  Also, some minor m4
74919         quoting problems have been fixed.
74920
74921 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74922
74923         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74924         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74925         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74926         and simplify the shell code.
74927
74928 1999-08-01  Jim Meyering  <meyering@ascend.com>
74929
74930         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74931         m4.
74932
74933 1999-07-20  Jim Meyering  <meyering@ascend.com>
74934
74935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74936
74937 1999-07-15  Jim Meyering  <meyering@ascend.com>
74938
74939         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74940
74941 1999-05-22  Jim Meyering  <meyering@ascend.com>
74942
74943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74944
74945 1999-05-20  Jim Meyering  <meyering@ascend.com>
74946
74947         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74948         Add a colon after each `then' in case $4 is empty.
74949
74950 1999-05-16  Jim Meyering  <meyering@ascend.com>
74951
74952         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74953
74954 1999-05-10  Jim Meyering  <meyering@ascend.com>
74955
74956         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74957
74958         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74959         AC_FUNC_MKTIME.
74960
74961 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74962
74963         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74964
74965 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74966
74967         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74968         not CPPFLAGS, so that linking works correctly in IRIX.
74969
74970 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74971
74972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74973
74974 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74975
74976         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74977         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74979         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74980         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74981
74982         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74983
74984 1999-04-20  Jim Meyering  <meyering@ascend.com>
74985
74986         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74987         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74988         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74989
74990 1999-04-18  Jim Meyering  <meyering@ascend.com>
74991
74992         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74993         * m4/jm-macros.m4: Use it.
74994
74995 1999-04-06  Jim Meyering  <meyering@ascend.com>
74996
74997         * m4/strftime.m4: Remove test for %f.
74998
74999 1999-03-29  Jim Meyering  <meyering@ascend.com>
75000
75001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75002         superset of the AC_TYPE_* checks in the textutils, fileutils,
75003         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75004         AC_TYPE_PID_T.
75005
75006 1999-03-28  Jim Meyering  <meyering@ascend.com>
75007
75008         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75009         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75010         replaced e.g., in the *.sh files of the sh-utils.
75011
75012 1999-03-20  Jim Meyering  <meyering@ascend.com>
75013
75014         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75015         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75016         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75017
75018 1999-03-19  Jim Meyering  <meyering@ascend.com>
75019
75020         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75021
75022 1999-03-12  Jim Meyering  <meyering@ascend.com>
75023
75024         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75025
75026 1999-03-07  Jim Meyering  <meyering@ascend.com>
75027
75028         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75029         declared.
75030
75031 1999-02-17  Jim Meyering  <meyering@ascend.com>
75032
75033         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75034         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75035
75036 1999-02-07  Jim Meyering  <meyering@ascend.com>
75037
75038         * m4/group-member.m4: New file -- extracted from sh-utils'
75039         configure.in.
75040
75041         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75042         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75043
75044 1999-02-06  Jim Meyering  <meyering@ascend.com>
75045
75046         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75047         * m4/fnmatch.m4: Likewise.
75048         * m4/getgroups.m4: Likewise.
75049         * m4/lstat.m4: Likewise.
75050         * m4/malloc.m4: Likewise.
75051         * m4/putenv.m4: Likewise.
75052         * m4/realloc.m4: Likewise.
75053         * m4/regex.m4: Likewise.
75054         * m4/stat.m4: Likewise.
75055         * m4/strftime.m4: Likewise.
75056         Suggestion from Alain Magloire.
75057
75058         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75059         * m4/fnmatch.m4: Likewise.
75060         * m4/getgroups.m4: Likewise.
75061         * m4/getline.m4: Likewise.
75062         * m4/lstat.m4: Likewise.
75063         * m4/malloc.m4: Likewise.
75064         * m4/memcmp.m4: Likewise.
75065         * m4/putenv.m4: Likewise.
75066         * m4/realloc.m4: Likewise.
75067         * m4/regex.m4: Likewise.
75068         * m4/stat.m4: Likewise.
75069         * m4/strftime.m4: Likewise.
75070         Suggestion from Alain Magloire.
75071
75072         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75073         an argument.
75074
75075         * m4/regex.m4: Add a run-time Test for proper operation of
75076         re_compile_pattern.
75077
75078 1999-01-31  Jim Meyering  <meyering@ascend.com>
75079
75080         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75081
75082 1999-01-30  Jim Meyering  <meyering@ascend.com>
75083
75084         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75085
75086         * m4/jm-mktime.m4: Make this a wrapper around the official
75087         AM_FUNC_MKTIME rather than my private copy, now that the official one
75088         is up to date.
75089         * m4/mktime.m4: Remove file.
75090
75091         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75092         * m4/uptime.m4: Likewise.
75093         * m4/uintmax_t.m4: Likewise.
75094
75095 1999-01-28  Jim Meyering  <meyering@ascend.com>
75096
75097         * m4/jm-macros.m4: Use jm_AFS.
75098         * m4/afs.m4: New file (from fileutils' configure.in).
75099
75100         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75101         * m4/chown.m4: Likewise.
75102         * m4/d-ino.m4: Likewise.
75103         * m4/d-type.m4: Likewise.
75104         * m4/fnmatch.m4: Likewise.
75105         * m4/getgroups.m4: Likewise.
75106         * m4/gettext.m4: Likewise.
75107         * m4/jm-mktime.m4: Likewise.
75108         * m4/jm-winsz2.m4: Likewise.
75109         * m4/lcmessage.m4: Likewise.
75110         * m4/ls-mntd-fs.m4: Likewise.
75111         * m4/malloc.m4: Likewise.
75112         * m4/memcmp.m4: Likewise.
75113         * m4/putenv.m4: Likewise.
75114         * m4/realloc.m4: Likewise.
75115         * m4/st_mtim.m4: Likewise.
75116         * m4/strftime.m4: Likewise.
75117
75118 1999-01-16  Jim Meyering  <meyering@ascend.com>
75119
75120         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75121         (ARGMATCH_DIE_DECL): Define.
75122
75123 1999-01-12  Jim Meyering  <meyering@ascend.com>
75124
75125         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75126         Reported by Lars Hecking.
75127
75128 1999-01-10  Jim Meyering  <meyering@ascend.com>
75129
75130         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75131         gross kludge.
75132         * m4/inttypes_h.m4: Likewise.
75133         * m4/lstat.m4: Likewise.
75134         * m4/malloc.m4: Likewise.
75135         * m4/readdir.m4: Likewise.
75136         * m4/realloc.m4: Likewise.
75137         * m4/st_dm_mode.m4: Likewise.
75138         * m4/stat.m4: Likewise.
75139         * m4/utimbuf.m4: Likewise.
75140         * m4/utimes.m4: Likewise.
75141
75142         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75143         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75144         comments in config.h.in are meaningful.
75145
75146         * m4/jm-macros.m4: Require autoconf-2.13 here.
75147
75148         * m4/regex.m4: By default, don't use the included regex.c on systems
75149         with glibc 2.  Suggestion from Uli Drepper.
75150
75151 1999-01-02  Jim Meyering  <meyering@ascend.com>
75152
75153         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75154
75155 1998-12-18  Jim Meyering  <meyering@ascend.com>
75156
75157         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75158         Based on a suggestion from Lars Hecking.
75159
75160 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75161
75162         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75163
75164 1998-11-16  Jim Meyering  <meyering@ascend.com>
75165
75166         * m4/lfs.m4: Double-quote the `uname...` expression.
75167
75168 1998-11-14  Jim Meyering  <meyering@ascend.com>
75169
75170         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75171         * m4/stat.m4: Likewise.
75172
75173 1998-11-03  Jim Meyering  <meyering@ascend.com>
75174
75175         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75176         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75177
75178 1998-10-18  Jim Meyering  <meyering@ascend.com>
75179
75180         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75181
75182 1998-10-17  Jim Meyering  <meyering@ascend.com>
75183
75184         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75185         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75186         calls for those previously hard-coded headers.  Instead, take a new
75187         parameter.
75188         (jm_CHECK_DECLARATIONS): Reflect interface change.
75189         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75190         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75191
75192         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75193
75194 1998-10-14  Jim Meyering  <meyering@ascend.com>
75195
75196         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75197         instead of "TZ=America/Vancouver".  From Paul Eggert.
75198
75199 1998-10-11  Jim Meyering  <meyering@ascend.com>
75200
75201         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75202         This adds a test for a recently added compatibility fix for mktime.c.
75203         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75204
75205 1998-09-27  Jim Meyering  <meyering@ascend.com>
75206
75207         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75208
75209         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75210         ../configure.in, including a change from Gordon Matzigkeit to allow
75211         cross-compiling for the Hurd.
75212
75213         * m4/glibc.m4: New file/macro to test for the GNU C Library
75214         versions 1 and 2.  From Gordon Matzigkeit.
75215         Indent.
75216
75217 1998-09-21  Jim Meyering  <meyering@ascend.com>
75218
75219         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75220
75221 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75222
75223         Port nanosecond-resolution times to UnixWare 2.1.2 and
75224         pedantic Solaris 2.6.
75225
75226         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75227         AC_STRUCT_ST_MTIM.
75228         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75229         Generate name of ns member, instead of just 1 or undef.
75230         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75231
75232 1998-08-15  Jim Meyering  <meyering@ascend.com>
75233
75234         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75235         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75236         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75237         instead of jm_TYPE_SSIZE_T.
75238
75239 1998-08-12  Jim Meyering  <meyering@ascend.com>
75240
75241         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75242
75243 1998-08-02  Jim Meyering  <meyering@ascend.com>
75244
75245         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75246         in acconfig.h manually.
75247
75248 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75249
75250         * m4/st_mtim.m4: New file.
75251
75252 1998-07-28  Jim Meyering  <meyering@ascend.com>
75253
75254         * m4/utimes.m4: Undef stat.
75255
75256 1998-07-25  Jim Meyering  <meyering@ascend.com>
75257
75258         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75259         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75260
75261 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75262
75263         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75264         uid and gid actually remain unchanged.
75265
75266 1998-07-07  Jim Meyering  <meyering@ascend.com>
75267
75268         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75269
75270 1998-07-04  Jim Meyering  <meyering@ascend.com>
75271
75272         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75273         to prove that this macro can be used in packages without regex.c.
75274
75275 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75276
75277         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75278         is to be used.
75279
75280 1998-07-03  Jim Meyering  <meyering@ascend.com>
75281
75282         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75283
75284         * m4/gettext.m4: New file -- from gettext-0.10.35.
75285         * m4/lcmessage.m4: Likewise.
75286         * m4/progtest.m4: Likewise.
75287
75288         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75289         * m4/jm-macros.m4: Require the new macro.
75290
75291 1998-06-29  Jim Meyering  <meyering@ascend.com>
75292
75293         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
75294         for the definition of NGROUPS (used in a system header included
75295         by sys/mount.h).
75296
75297 1998-06-28  Jim Meyering  <meyering@ascend.com>
75298
75299         * m4/ls-mntd-fs.m4: New file.
75300         * m4/fstypename.m4: New file.
75301
75302         * m4/jm-macros.m4: Require the new macro.
75303         * m4/jm-glibc-io.m4: New file.
75304
75305 1998-05-19  Jim Meyering  <meyering@ascend.com>
75306
75307         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
75308         * m4/lchown.m4: New file.
75309
75310         * m4/Makefile.am.in: New file.
75311         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
75312
75313 1998-05-14  Jim Meyering  <meyering@ascend.com>
75314
75315         * m4/Makefile.am (EXTRA_DIST): Add them.
75316         * m4/jm-macros.m4: New file.
75317         * m4/utimbuf.m4: New file.
75318
75319 1998-05-12  Jim Meyering  <meyering@ascend.com>
75320
75321         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
75322
75323 1998-05-11  Jim Meyering  <meyering@ascend.com>
75324
75325         * m4/isc-posix.m4: New file.
75326
75327 1998-05-10  Jim Meyering  <meyering@ascend.com>
75328
75329         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
75330
75331 1998-05-09  Jim Meyering  <meyering@ascend.com>
75332
75333         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
75334         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75335         with automake.
75336
75337         * m4/ssize_t.m4: New file.
75338         * m4/mktime.m4: Remove file -- the new automake has this now.
75339
75340 1998-04-26  Jim Meyering  <meyering@ascend.com>
75341
75342         * m4/assert.m4: New file.
75343         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75344
75345 1998-04-05  Jim Meyering  <meyering@ascend.com>
75346
75347         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75348         (jm_PREREQ): Use it here.
75349
75350 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75351
75352         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75353         in acconfig.h.
75354
75355 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75356
75357         * m4/prereq.m4: New file.
75358         * m4/error.m4: New file.
75359         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75360
75361 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75362
75363         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75364         cache-check for the same variable -- that defeated the purpose of
75365         the test; the test program was never run.  This was a problem only
75366         on systems with losing getline functions -- HP-UX 10.20 is one.
75367         Reported by Bjorn Helgaas.
75368
75369 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75370
75371         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75372
75373 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75374
75375         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75376
75377         * m4/const.m4: New file.  Use an initializer in this declaration
75378         typedef int charset[2]; const charset x;
75379         Reported by Bob Glickstein.
75380
75381 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75382
75383         * m4/chown.m4: Fix reversed types on -1 args to chown.
75384         From Kaveh Ghazi.
75385
75386 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75387
75388         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75389         Add lseek and memchr.
75390
75391         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75392         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75393         have a 20-character limit on names.
75394
75395 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75396
75397         * m4/inttypes_h.m4: New file.
75398         * m4/uintmax_t.m4: New file.
75399         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75400
75401
75402         -----
75403
75404         Local Variables:
75405         coding: utf-8
75406         End:
75407
75408         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75409
75410         Copying and distribution of this file, with or without
75411         modification, are permitted provided the copyright notice
75412         and this notice are preserved.